on 06-11-2007 10:53 AM
Hi All,
How is it possible to know the table column at runtime.I would require this since I am using Abstract Variants for creating table cells and each product represents a
table column and rows represents product properties.I would require to know the
table column in the onLeadSelect Method.Is there a parameter I can source map on lead select which would facilitate this.
Regards
Amit
Hi Amit,
If you want to get the columns at run time try this method,
->First create a reference(object) for the table.
->using that referrence you can access all the properties of the table.
-> use getColumn(int index) or getColumns() methods as per your requirement.
I have given a sample code below, I hope it will be helpfull for you.
<b>IWDTable tabl = (IWDTable)view.getElement("ProductTable");
IWDTableColumn col = tabl.getColumn(wdContext.nodePerson().getLeadSelection());</b>
If you have any more clarifications, please post it here, I will reply you.
regards,
Prabhu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thankyou guys this problem is resolved now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Amit..
Check the below link.... you might get some useful points... If it helps means rewards some points....
http://help.sap.com/saphelp_nw04s/helpdata/en/2d/390e422dfcde2ce10000000a1550b0/frameset.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
This what I tried to do but it does'nt work.
Regards
Amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
onLeadSelect would give you the col under the variable "col".
Create source mapping for this event.. and get the parameter in the event handler.
table.mappingOfOnLeadSelect().addSourceMapping("col","attribute name in the event handler argument");
Regards
Bharathwaj
Message was edited by:
Bharathwaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
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.