on 06-25-2008 1:53 PM
Dear All,
I am trying to create a Form dynamically and for aligment prupose i need to create one InvisbleElement also dynamically.But i dont know why that is not reflecting in the Screen .The code is deploying properly without error but the Invisible Element is not getting created .The code i used is
IWDInvisibleElement Invis1=(IWDInvisibleElement)view.createElement(IWDInvisibleElement.class,null);
Invis1.setEnabled(true);
Invis1.setVisible(WDVisibility.VISIBLE);
thetransparent.addChild(Invis1);
Can anyone please tell me if i need to set any property or if the method i am creating is wrong .Please guide me in the correct way.
Thanks and Regards,
Nishita Salver
Hi,
place the below code where you want the invisible element in layout
IWDTextView t=(IWDTextView)view.createElement(IWDTextView.class,null);
t.setVisible(WDVisibility.BLANK);
i hope this will help you.
Thanks,
RameshBabu.V
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear All,
I am happy to tell you'll that the invisible element are getting effected .
I only set the parent transparent container's width to "200px" and the gap i wanted is getting effected.
Thanks to one and all for your time and effort.
Thanks and Regards,
Nishita Salver
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
Thanks for ur quick respsone.
Armin/Vinod : I am using a Transparent container as the Parent container and i have changed the layout to a "Gridlayout" with column count "3" and the widht as "200px"
Still the inivisible element ,I mean the space which i require between the label and the input field is not appearing.
Thanks and Regards,
Nishita Salver
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your code is right, Try by Changing the default layout (FlowLayout) of the container and set the width property in % ( Eg 20%). Setting the width, will help you to find the difference in Element position.
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.
The code looks ok, you don't need to set "enabled" and" visible" properties to default values. Are you sure the element is not created (it's invisible ;-)? What kind of layout has the parent container? Maybe you need to create non-default layout data for the invisible element?
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
check "Dynamic Programming" part in below library file
http://help.sap.com/saphelp_nw70/helpdata/EN/0f/f08841e3af1609e10000000a155106/frameset.htm
or else,
still you are getting Problem, create any other ui element and set its visibility to false. (dont know how far it will help you)
regards,
Pradeep
Edited by: pradeep bondla on Jun 25, 2008 3:20 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.