Cognos Reprompt button auto runs report - cognos

I have a report that has a reprompt button on the prompt page, which is all cascading prompts, and then a back button on the report page that brings you back to the prompt page. So the idea is you can run the report go back to the prompt page from the report and then select new prompt values, reprompt and rerun the report. The problem is when it runs the first time and you go back to the prompt page and then select new values in the prompt and hit the reprompt button the report automatically runs instead of reprompting and cascading. Not only does it automatically run but it runs the first run done not with the new prompts selected. Any ideas on how i can get this to work properly?

Suggestion, try copying and pasting the prompt from the prompt page onto the top of the report page
Have a radio button (or some simple prompt) that can set a parameter to hide/show the report. Select the content and set the property to render
This way a user can change the prompt values and avoid re-running the report
(and the user does not have to go back to the prompt page)

Related

Set collection to selected values in Power Apps form when opened in edit mode

I have a SharePoint list-integrated Power Apps form.
I have a multi-select combobox called DataCardValue4 (which is hidden) that comes from a choice on the SharePoint list.
I need to put the selected values of this combobox into a collection when the form is edited.
On SharePointIntegration, on Edit, I have:
ForAll(DataCardValue4.SelectedItems, Collect(colVehiclesRequested,ThisRecord.Value));
This works fine when the user opens the form and puts it in edit mode manually. Unfortunately, I have a Power Automate flow which gives a link that opens the form in edit mode directly.
When the form is opened in edit mode, DataCardValue4.SelectedItems is empty at the time of SharePointIntegration on edit.
Is there another way to do this? Is there another place to put this further down the lifecycle so it will work properly?
I guess I'm kind of looking for the document.ready version of a Power Apps-integrated form.
I'd try to put your formula into the Screen.OnVisible property with some conditional wrapping. This would make sure it (also) runs when it is opened directly.
I had the same issue, I added the code in the App.OnStart

How to reset navigation stack each time Tab Bar item is selected?

So, i need to reset navigation stack each time a tab is selected from the tab navigation.
Right now it works like this:
User is on Tab A -> Opened New Screen (i.e. News) on Tab A -> Selected Tab B -> Selected Tab A and came back to last opened screen (News) instead of coming back to Tab A .
I need to change the last step and reset the opened screens each time user selects new Tab.
i know that there are few API items that i can use for it, like pop, popToRoot and resetTo but i have no idea how to use it correctly.
Can someone give me an example that i can use it?
Thanks in advance!
Listen to BottomTabSelected event and call this.props.navigator.popToRoot.

Replicate Add button functionality on FormDetail screen

I need to create the button to replicate when user click "+" button on the top of the screen then populate value of the field.
Base.Insert.Press();
However, I have an issue that code above does not clear the form like when user click "+" button. I need to be able to clear the form after insert like when click Acumatica's "+" button. I have try following code in attempt to clear the form but no luck.
Base.Caches.Clear();
Base.Document.Cache.Clear();
Base.Document.Cache.ClearQueryCache();
Base.Document.View.RequestedRefresh();
The below code works in Sales order extension. What I did is; I cleared the whole graph and then inserted a new header record to the header cache.
this.Base.Clear();
SOOrder head = new SOOrder();
this.Base.Document.Insert(head);

How to replace a page with another page in property sheet without clicking next button?

I am having a property sheet which consists of three pages respectively.In the second page I placed a progress control ,here when the progress control reaches its final position ,it should automatically direct to the next page(final page) and what I did here is I had set this second page wizard button to CANCEL only(no NEXT or BACK is available).After the progress bar reaches it's final point then automatically the next page has to be appeared(Expected behavior).
Actually process is we have to press next button in order to navigate to the next page(usual behavior).As I did not enable any button excluding cancel button .I must be able to navigate to the next page once the progress control reaches it's maximum point automatically without any button press.
Can anyone please let me know whether there exists any way to do this.
Once the progress bar reaches the end, you can call SetWizardButtons to enable the Next button, followed by a call to PressButton to simulate the user clicking on the Next button.

Forced Submit when a tab is clicked

I have a form with several tabs using spry tabbed panels in Dreamweaver CS6. I have a save button on every page which when clicked take the user to the next tab. Invariably they don't click the save button and just click the next tab and lose their changes. Is there a way I can force a submit when they click the tab ?

Resources