on 04-18-2008 1:05 PM
Hi Experts,
I need to use the date picker dynamically.
Please let me know how to approach.
Thanks,
Jay.
hi,
i am not clear with ur requirements .
for creating a inputField with date dynamically use the below code in the Domodify method.
IWDInputField input = view.createElement(IWDInputField.class,"inp");
input.setLength(20);
input.bindValue("DynamicNode.input");
here DynamicNode is the ContextNode and input is the Attribute of the Node with type as "DATE".
Thanks and regards,
Fistae
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ayyaparaj
I have created datepicker dynamically using the code
IWDInputField input = (IWDInputField)view.createElement( IWDInputField.class, "input");
input.bindValue( wdContext.getNodeInfo().addAttribute( "Atrib", "ddic:com.sap.dictionary.date"));
IWDTransparentContainer cont = (IWDTransparentContainer)view.getElement( "RootUIElementContainer");
cont.addChild( input);
for this date picker i need to change the date representation
pls help me
Thanks
jay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try
IWDInputField input = (IWDInputField)view.createElement( IWDInputField.class, "input");
input.bindValue( wdContext.getNodeInfo().addAttribute( "Atrib", "ddic:com.sap.dictionary.date"));
*IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute( "Atrib");*
*attributeInfo.getDataAttribute().getScalarType().format("dd/MM/yyyy");*
IWDTransparentContainer cont = (IWDTransparentContainer)view.getElement( "RootUIElementContainer");
cont.addChild( input);
Regards
Ayyapparaj
Modification in representing the value(display format) selected in the date picker.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Jay,
You can solve this problem by setting the browser language setting to en-gb, that will get you to display the date in DD-MM-YYYY
Please try to find any option long date in application that solve the problem of DD-MONTH-YYYY...
You can view the entire format of date from the control panel->Regional and language option, where it shows all the format including long date and short date display for each locale.
Hope this will help you.
Regards
Vinod V
Hi Experts,
I got my problem resolved.
But I need some modification to be done in this.
When we select the any value from the date picker, it is being displayed in YYYY/MM/DD value.
Is there any possibility to display that in DD-MONTH-YYYY fornmat ??
Thanks for your time.
Most Cordially,
Jay.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks all. My issue is closed.
Regards,
Jay.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Try this code in wdDoModifyView
IWDInputField input = (IWDInputField)view.createElement( IWDInputField.class, "input");
input.bindValue( wdContext.getNodeInfo().addAttribute( "Atrib", "ddic:com.sap.dictionary.date"));
IWDTransparentContainer cont = (IWDTransparentContainer)view.getElement( "RootUIElementContainer");
cont.addChild( input);
Regards
Vinod V
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What does that mean?
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.