Hi all
How can i conver string to object. I have a string-'0901e3068004450b but it is not resolve in the fallowing code
IDfSysObject object=(IDfSysObject)session.getObject(IDfId arg);
plz help me.
Thanks in Advance.
Hello!
It's recommended to use IDfClientX in such cases:
IDfClientX clientx = new DfClientX();IDfId objectId = clientx.getId("0901e3068004450b");
IDfSysObject sysObject = (IDfSysObject) getDfSession().getObject(objectId);
HI
one more question how can i use an objectId which is written in precondition class of my_action.xml to another behaviour class
public boolean queryExecute(String strAction, IConfigElement config, ArgumentList args, Context contxt, Component comp)
{ boolean success = false; String objID = args.get("objectId"); System.out.println("objectId=>"+args.get("objectId")); return success; }
this is the code written in my precondition class how can i use "objectId" in to another class.
Y.RaviTeja, in case if you need to call another component from action precondition you can use:
Calling a component from an action class — You can jump to or nest to a component withinan action class. In the action class execute() method, add your component parameters to theArgumentList object and then the jump or nest. In the following example from EditFormatPrefActionclass, the component name and arguments are added, then the component is nested to:public boolean execute(String strAction, IConfigElement config,ArgumentList args, Context context,Component component, Map completionArgs){args.add("component", "format_pref_attr_selector");args.add(FormatPrefAttributesSelector.EDITING_PARAM_NAME, "true");component.setComponentNested("formatpreferencescontainer",args, context, (FormatPreferencesSummary)component);return true;}
This is from pdf EMC® Documentum® Web Development Kit Version 6.5Development GuideP/N 300007231
I could not understand, i am alearner of documentum i have to use this "objectId" into the class. The class is called from a component which is declered in action.xml file as
<preconditions> <precondition class="com.crimson.precopy"></precondition> </preconditions>
<execution class="com.documentum.web.formext.action.LaunchComponent"> <component>copy</component>
in the component "copy" i wrote a class. In this class i have to use "objectId". I Hope am clear.
yes, clear
then:
void onInit (ArgumentList args) {
String objectId = args.get("objectId");
}
i did that in my void onInit class but am geting objectId=null in my tomcat console
public void onInit(ArgumentList args) { super.onInit(args); String objID = args.get("objectId"); System.out.println("objectId=>"+args.get("objectId")); }
O/P=> objectId=null
Do you have the line
<param="objectId"/>
in your component's xml file?
Post here a component's xml, please.
ok i forget that thanq i got it
Hi
How can i override OK button in my DioalogContainer? I kept seperate button "SUBMIT" to tdo my logic, but i dont want seperate button. I want to use OK button in dialodcontainer. How can i do that plz tell me.
Nice to hear that some advices helped you.
Could you mark correct and helpful answers, please.
Ya i marked it. can u help to above posted question?
Teja, take a look here:
https://community.emc.com/thread/101991?tstart=0