Skip to Content
0
Former Member
May 07, 2008 at 02:11 PM

Dynamic Creation of Checkboxes!

24 Views

Hi,

i have an RFC which return the following Table:

Parameters

- checked --> DataType Boolean

- name --> DataType Char255

So, after calling the RFC, this table is filled, e.g.:

checked name

-


false ABAPCache

false JAVACache

true DB_DataSize

false ABAPBufferSize

true DB_LogSize

Now, reagarding to this table, i want to create checkboxes which can be set/unset by user! :

[ ] ABAPCache

[ ] JAVACache

[X] DB_DataSize

[ ] ABAPBufferSize

[X] DB_LogSize

Now, how to do that?

I have to "loop" over my table, within this loop i have to create my Checkbox. The visible Label of the Checkbox should be the "name":

Within this loop i have to create the checkboxes:

public static void wdDoModifyView(....)
  {
   if (firstTime) {

     IWDTransparentContainer tCont = (IWDTransparentContainer) view. 
     getRootElement(); 
    
    tCont.createLayout(IWDGridLayout.class);

        for(int i =wdContext.nodeParameters().size()-1; i>=0;i--)
        {

         IWDCheckBox theCheckBox = (IWDCheckBox) view.createElement  (IWDCheckBox.class, wdContext.nodeParameters().getParametersElementAt(i).getName());

theCheckBox.bindChecked( ??? )


        }


Am I on the right way?