on 06-20-2006 8:29 AM
HI!
I need a radio button for selecting a table row instead of the default column(first column) given by table at run time.
Plz. suggest some hints or code examples.
Thanks and regards,
Why do you need a radio button? If the selection mode is "single" you have radio button behaviour, what's missing?
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Perhaps you can explain your project lead that the visualization of Web Dynpro is theme-based to give a uniform look across applications.
If you want to change the look, you should consider to provide your own theme (corporate identity etc.)
Personally, I consider these view-specific workarounds rather contraproductive.
Armin
Hi,
What I think you can do is:
1. Create a column in table with table cell editor as radio button.
2. Create a attribute node in context with attribute of type boolean and bind that to the created column.
3. To get the checked column just travese through the node element and check the value of the attribute if its true then the perticular row is selected.
Hope this will help you.
Regards,
Rajeev
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Go to table properties and set the selection properties as none.
Then insert a coloum with radio button as UI.
Type this code for adding the radio button elements in the table.
Create node table with attribute KeytoSelect with type string inside the table node and another seperate value attribute Selected key with type string outside the node.
Bind the table node to keytoselect property of radio button and selected key att to the selected key property.
for(int i=0;i<5;i++){
IPrivateRadioButtonAppView.ITableElement t=wdContext.nodeTable().createTableElement();
t.setKeytoSelect("Key"+i);
wdContext.nodeTable().addElement(t);
}
Whatever value ur selecting will be set in the Selected key.
Regards,
Vijayakhanna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The value that u have selected will be there in the
Selected key i.e. u have given some "Key"+i to each and every elements of radio button in the key to select, after the selection of particular radio button example 2nd one then the value Key1 will be stored in the selected key.
U can print and see that..
Hope this helps,
PS: Reward points if it helps u.
Regards,
Vijayakhanna Raman
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.