on 10-17-2013 10:26 AM
Hi friends
I'm trying to use the TableRowCreator but without any success.
Can you please show me the basic steps or any other helpfull link.
Thanks a-lot
Shai
Hi
Please see the Link. It might be helpful.
http://help.sap.com/saphelp_nw73/helpdata/en/47/013d23968321bde10000000a114a6b/content.htm
Thank you
Navya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
here you go:
I created a table context:
Then I created a Table UI for it. I also added a RowCreator
I initialized the table this way:
public void wdDoInit()
{
//@@begin wdDoInit()
IPrivateRCCompView.IT1Element tab;
for (int i =0;i<10;i++) {
tab = wdContext.nodeT1().createT1Element();
tab.setA1("text"+i);
wdContext.nodeT1().addElement(tab);
}
}
Then I added this code to the Event (I called it simply "create") of the RowCreator:
public void onActionCreate(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
//@@begin onActionCreate(ServerEvent)
IPrivateRCCompView.IT1Element tab;
tab = wdContext.nodeT1().createT1Element();
tab.setA1("text"+wdContext.nodeT1().size());
wdContext.nodeT1().addElement(tab);
wdComponentAPI.getMessageManager().reportSuccess("elem added");
}
It works this way in runtime:
After invoking the app:
Once I click on the last line the following happens:
I hope this helps.
Regards,
Ervin
Hi,
I am sure there are scenarios where this can be used, for instance when there are many many columns with inputfields of which many can be prefilled once this rowcreator button has been pushed and the rest of the inputfields inside the table can be filled manually. Not sure this is the best example, but I am sure there are other situations when one can make a good use of this feature.
Regards,
Ervin
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.