on 05-08-2006 10:43 AM
Hi guys,
I want to have a popin getting displayed when I click on a toggle button. I don't find an example for the same.
Could you provide any pointer on the same?
Thanks in Advance
Kind Regards
Shahul
Thanks Mahesh. Even I had this idea initially.
But I just want to try with popin, which I never tried
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shahul
Heres an example of Popins in Webdynpro <b>deployed on NW2004s</b>:
Consider this scenario:
You want to have a popin feature for a table for each row. On click of each row, you have to display
the popin under that row. On subsequent clicks on the row, the popin should expand and collapse.
<u><b>Heres what you need to do:</b></u>
1. Say this is your current node:
<b>DataNode</b>
|-Name
|-Age
|-Company
|-Description
Add two attributes to this:
<b>DataNode</b>
|-Name
|-Age
|-Company
|-Description
|-<b>Popin (String)</b>
|-<b>PopinStatus(boolean)</b>
2. Right click on the Table UI element and select Insert Popin. A popin with an ID, say Popin1 is created.
3. Insert Content in Popin1 - a text view and bind the text of this element to DataNode.Description
4. In the table properties, set the value against selectedPopin as Data.Popin
5. In your implementation, set the value of DataNode.PopinStatus to false initially.
6. On click of a row, the corresponding row popin must be displayed and on subsequent click, it must be collapsed.
7. To achieve this, in your action on lead select in the table, give this:
if(wdContext.nodeDataNode().currentDataNodeElement().getPopinOpen())
{
wdContext.nodeDataNode().currentDataNodeElement().setPopin("");
wdContext.nodeDataNode().currentDataNodeElement().setPopinStatus(false);
}
else
{
wdContext.nodeDataNode().currentDataNodeElement().setPopin("Popin1");
wdContext.nodeDataNode().currentDataNodeElement().setPopinStatus(true);
}
8. Deploy your app..it should work just fine.
Regards,
Manoj
Message was edited by: oj
Hi,
Then you can put the message in a Text Edit and make it readonly and then visiblity of that text edit is made visible on button click else keep none. (bind the visibility to a context variable of type wdvisibility)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mahesh,
It's some information which is jst read only. I prefer to use a popin, so that the user can see the info whenever he clicks on the toggle button. I can have a popup. But it wont look nice in the usability perspective.
Kind Regards
Shahul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shahul,
What extactly you want to display?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mahesh,
I dont want to use a popup here. I want to have a popin here, so that the information will be displayed in the same window.
Kind Regards
Shahul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can have popup window or confirmation window for this purpose.
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/tutorial%20on%20creating%20dialog%20boxes%20-%2010.htm">Tutorials</a>
Regards,
Mahesh
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 | |
9 | |
7 | |
6 | |
5 | |
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.