on 05-03-2005 10:00 AM
Hi,
I have a table UI on view. The table binded to a BAPI output table parameter. I want to add a blank row to table after BAPI executed. If BAPI Output table parameter has a 4 rows, table UI element must has a 5 rows. The 5. row dont have data.
How can i do it?
Best regards,
Altug Bayram
Hi,
Please make sure that you have mapped the view context with controller context.
Regards, VIP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Additional info: I modified the code addign to my app. The code is following
Bapiitemex itemex = new Bapiitemex();
IPublicBBSComponent.IOrder_Items_OutElement element = wdContext.createOrder_Items_OutElement(itemex);
//wdContext.nodeOrder_Items_Out().addElement(element);
wdContext.nodeOutput().nodeOrder_Items_Out().addElement(element);
Best regards
Altug Bayram
Hi Altuo
Have you bound the Model Node directly to the Table UI element. What is the structure of the Model.
If your Model looks like the following in your context :
Bapi_Model_Input
|_Output
|_Bapi_Items_Node
|_Bapi_Attr1
|_Bapi_Attr2
If you have bound "Bapi_Items_Node" to the table UI Element then After executing the model move to the Last record.
Then write code like
wdContext.nodeBapi_Items_Node().moveLast();
IPublicBBSComponent.IBapi_Items_NodeElement ele = wdContext.nodeBapi_Items_Node().createBapi_Items_NodeElement();
wdContext.nodeBapi_Items_Node.addElement(ele);
That should add a empty row. As Anil had suggested the code would work but i guess your leadselection should have been in the last row.
Let me know if that helped you.
regards
Ravi
Hi,
Chk this forum
hope this helped you
Regards,
RK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Do one thing.
Go in your controller in which your node resides.
select the output node from which u need to display data in table.
Then change its property "cardinality" to "0..n" and "selection" to "0..1".
It should work.
Regards,
Bhavik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Create an element of the ModelRoot node type and add the sme element to the node again.
Ex : If the Node name is "Customer" and ModelClass name is "Customer"
Customer cust=new Customer();
Iprovate<ViewName>>.ICustomerElement ele=wdContext.createCustomerElement(cust);
wdContext.NodeCustomer().addElement(cust);
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 |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.