on 04-25-2005 6:57 AM
Hi,
I have the following scenario : My application has an adaptive RFC model. The model is bound to the component controller context which in turn is bound to the view controller context. The entries in model are being shown in the view as a table. All the nodes in the view context are Model nodes.
The table being shown in the view has to be interactive, in the sense that user can insert new rows in it. The updated table then has to be saved back into SAP using another RFC.
The Problem : How to dynamically insert new rows in the table and save the data? I tried using createElement method but it is not working probably because the node is a Model node and NOT value node.
Any suggestions will be very helpful.Thanks.
Hi Kapil,
You can dynamically add the rows as follows
Ex: Let us consider you have customer model.
Create new object of type customer and create an element of the modelnode type and add the element to the modelnode root. This will create a row in the table.
Ex :
Customer cust=new Customer();
wdContext.nodeCustomer().bind(cust);
You can place another button on the table toolbar and call the execute method of the RFCModel to save the rows in the backend system !!
Regards, VIP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
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.