Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    dynamic screen with RPCManager.LoadScreen

    Hi All,

    I have a tabbed screen. Left side of the screen is menu and right side is dynamic content. I want to change right side with RPCManager.LoadScreen("myscreen", callback, globals);

    The problem is RPCManager.LoadScreen always overrides everything. And i can only see loaded screen (i can see other components backside and not accessible..)

    some usefull infos..

    1. using version Smart GWT 3.1 Enterprise Edition
    2. browser Chrome,ie ...
    3.sample ui xml;
    <DynamicForm ID="DynamicForm0" autoDraw="false">
    <fields>
    <FormItem name="TextItem0" constructor="TextItem"/>
    <FormItem name="ButtonItem0" constructor="ButtonItem"/>
    </fields>
    </DynamicForm>


    <DataView ID="DataView0" width="100%" height="100%" overflow="hidden" autoDraw="true">
    <members><Canvas ref="DynamicForm0"/>
    </members>
    </DataView>

    4.sample code to get and load screen

    RPCManager.loadScreen("myscreen", new LoadScreenCallback() {

    @Override
    public void execute() {
    DynamicForm v0 = (DynamicForm) Canvas.getById("DynamicForm0");
    Tab tab = new Tab();
    tab.setID("myscreen_tab");
    tab.setTitle("myscreen");
    tab.setPane(v0);
    tab.setCanClose(true);
    getMainTabSet().addTab(tab);
    getMainTabSet().selectTab(tab);

    }
    });


    thanks for any help..

    #2
    The outermost member of your screen is DataView0. This is the component you need to place in the tab or it will still be filling the screen.

    Comment


      #3
      thats worked. thanks ..

      Comment

      Working...
      X