Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public PageReference editDynamicProperties() {
- PageReference editpr = Page.AnotherPage;
- Map<string, string> params = editpr.getParameters();
- params.put('oppId', opportunityFromController.Id);
- // Attempt to remove the &inline query string parameter, but it isn't present yet.
- if(params.containsKey('inline')) {
- params.remove('inline');
- }
- editpr.setRedirect(true);
- System.debug(LoggingLevel.Info,'editDynamicProperties() redirecting to ' + editpr);
- return editpr;
- }
- public PageReference editDynamicProperties() {
- PageReference editpr = Page.AnotherPage;
- Map<string, string> params = editpr.getParameters();
- params.put('oppId', opportunityFromController.Id);
- editpr.setRedirect(true);
- return editpr;
- }
- public Component.Apex.OutputPanel getDynamicPropertyControls() {
- //...
- Component.Apex.PageBlockButtons pbButtons = new Component.Apex.PageBlockButtons();
- pb.childComponents.add(pbButtons);
- Component.Apex.CommandButton editCommandButton = new Component.Apex.CommandButton();
- editCommandButton.value='Edit';
- //editCommandButton.expressions.action = '{!editDynamicProperties}';
- editCommandButton.expressions.action = '{!stubAction}';
- editCommandButton.rerender= new Set<string>{'dynamicForm'};
- editCommandButton.oncomplete= 'window.top.location.href = ''+editDynamicProperties().getUrl()+''';
- pbButtons.childComponents.add(editCommandButton);
- //...
- }
- <apex:outputLink value="{!$Page.somePage}?oppId={!opportunityFromController.Id}" target="_top">click here</apex:outputLink>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement