on 03-06-2012 3:41 AM
Hi all,
I have a problem changing the action name of the custom action block sample. I've changed the content and successfully implemented the action block. But when I changed the action name and uploaded again, the action block cannot display any input parameters and output parameters. In the java console, I can see 3 rows of "Shared Properties Error: No File Defined" error. Can I get a hand on resolving this issue? Thanks.
The From rows are the sample code. To row is what I changed to.
In SimpleActions.java
From:
@Action(name = "AddTwoNumbers", referenceDocumentGenerator = ReferenceDocumentGenSample.class)
To:
@Action(name = "GBarcode", referenceDocumentGenerator = ReferenceDocumentGenSample.class)
From:
public static void addTwoNumbers(
To:
public static void gBarcode(
In catalog.xml
From:
Component Type="Action"
Name="AddTwoNumbers"
To:
Component Type="Action"
Name="GBarcode"
All other code remains the same.
Best regards,
Lawrence
Hi Lawrence,
Not sure if this will work but try to clear the java cache and launch the workbench again.
Thanks,
Suhas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lawrence
Did you remember to change the action name in the catalog xml as well? In the catalog xml the Name field denotes the name of the action. This needs to also change in case the Action Name is changed in the class.
Please check this and change if not already done.
Regards
Partha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
13 | |
7 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.