on 09-15-2006 3:51 PM
I have a master view (Om_webfomView).In this masterview I have 2 viewcontainers which contains 2 other views. all the views have plugs. On an event i want the one viewcontainer to be invisible. The methode and the coding for that are in the custom controler.
I binded the value attribute to the visible property.
Code in viewcontroler of one of the viewcontainers
Event
wdThis.wdFirePlugToOmwebformsview();
wdThis.wdGetOm_Webforms_CustController().InvisibleMenu();
wdThis.wdFirePlugToOrgUnitView();
wdThis.wdGetOm_Webforms_CustController(). VisibleOrgUnitView();
In costum controler
//@@begin InvisibleMenu()
wdContext.currentContextElement().setWDVisibiltyMenuView(WDVisibility.NONE);
//@@end
//@@begin visibleOrgUnitView()
wdContext.currentContextElement().setWDVisibiltyOrgUnitView(WDVisibility.VISIBLE);
//@@end
It is not working, what is wrong.
Message was edited by: S. Dresen
Hi,
Create an action and call the Fireplugs according to your condition. Kindly State your exact need
Regards
Saravanan K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the action is created in the view controler.
What i want is that when the customer presses a button it wil go to the other view and in the masterview (inthis case Omwebforms) should one of the view containers become invisible and the other visible.
The code you see is the event.
So the event needs to do two things:
make a viewcontainer (in)visible in the masterview and navigate to an other view
Hi dresen,
here you need two visible properties. one should be assigned to viewContainerA and another to ViecontainerB. when you click the button, the action triggered and set the visibility property by
wdcontext.currentContextElement().set<visibleofcontainerB>(WDVisibilty.VISIBLE);
wdcontext.currentContextElement().set<visibleofcontainerA>(WDVisibilty.NONE);
Masterview (INBOUNDPLUG VIEW A AND B)
-
viewcontainer A
_________________View 1 (outboundplug to masterview and view2)
_____________________Button (event)
-
viewcontainer B (outboundplug to masterview)
_________________View 2
Code of the button:
wdThis.wdFirePlugToOmwebformsview();
wdThis.wdGetOm_Webforms_CustController().InvisibleMenu();
wdThis.wdFirePlugToOrgUnitView();
wdThis.wdGetOm_Webforms_CustController().VisibleOrgUnitView();
the plugs don't have code
Message was edited by: S. Dresen
Hi dresen,
you have created the method in controller to visible viewcontainer 2 is,
/@@begin visiblePosView()
wdContext.currentContextElement().setWDVisibiltyPosView(WDVisibility.VISIBLE);
//@@end
but you are calling the method
wdThis.wdGetOm_Webforms_CustController().VisibleOrgUnitView();
is it correct?
Hi dresen,
please try the following steps,
in the diagram view, create an outbound plug for the view1 which has the button and create an inbound plug to the another one view2 link these two. also create an empty view in viewcontainer1 then link this empty view with outbound plug of view1.
in your button action write,
wdThis.wdFirePlugTo<OutboundtoView2>();
hope this will work
User | Count |
---|---|
84 | |
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.