Last activity: 1 Sep 2015 4:51 EDT
How to create and open new subcase in new tab?
I have a section with link:
And here are the actions of this link:
This action set is creating a new subcase.
But before user start working with new subcase he needs to open it in "Overview and Audit" Section
When user clics this link, system opens a subcase in new tab.
So, the question is:
Is there any suggestion, to open new tab with subcase witout clickin it on "Overview and Audit" Section?
Instead of using the Run Activity action to create the new work object, maybe try the Create Work action and see what happens.
Hi and thank you for your answers, but my activity "CreateNewRating" is creating a Covered WO and initializes data for this subcase.
Using Create Work action I cant specify this data and newly created case is not a covered WO for main WO
Can you try using OpenWorkByHandle function by passing InsKey of sub-case. That should be able to open a sub-case in new tab.
It seems you are intentionally refreshing the tab with the third Action Event:Harness.
Try "Open Work Item" or "Open Work By Handle" instead, if you want to open new covered work object which has been created by the second Action Event: CreateNewRating.
I think either pyID or pzInsKey of the new covered work object is accessible in your "CreateNewRating" activity, so you can add one step in your activity to save pyID or pzInsKey of new covered work object into a transient property defined on its cover work object.
Thank for answers.
This suggwstion works correctly, but sometimes sistem cant open new tab and I cant understand why.
sometimes system opens the same tab with Overview and Audit" section.
I'm saving key of the object in activity like this:
Method = property-set
.SubCaseKey=pyWorkPage.pxCoveredInsKeys(<LAST>) (i'm using "LAST" because i think that this record is actual key of subcase)
maybe i'm doing something wrong?
Can you share the screenshots of the Activity steps to create the sub case?
It seems "CreateCustomSubcase" is a customized Activity. Below is my questions and suggestions.
Why do you need to specify step page as "pyWorkPage"?
Can you add a post activity error handling logic (Jump) at Step 3, to see if there is any error messages after calling the activity?
It is better to use "Call commitWithErrorHandling" instead of simply "Commit" without any error handling.
I just tested on my laptop and there is no problem to open newly created sub cases. Below is my configuration details.
I beed to specify a step page because my activity and activity "CreateCustomSubcase" defined on different classes.
Thank you for your suggestion. It is Working, but here is one more problem.
When I return to the main (Cover) WO and trying to refresh section, the following message appears:
But when I close tab and open it again from Recents, it is working.
I think it is because you have committed the transaction when you create the new covered work object, so the system lock for the cover object has been lost. This is kind of dilemma you will face when you have to fire commit in an activity.
User input on the section are lost after "Update" action?