I'm trying to open readonly preview of an instance of a class by doubleclick on a row of a ListView report, however it shows me an XML markup instead of section I want, which makes me really upset.
On ListView rule Format tab I put a "ListViewSelectorScript" as a Fragment for script functions and call "doOpenRule" for double click event. In my class there is a section RuleFormLayout, which, as far as I understood, should be called by WBOpen activity from @baseclass, but the result is that only new tab with XML of the selected instance opens.
I would really appreciate any suggestions on where I'm making a mistake or some links to resources, as I've managed to find very little information concerning this question.
Thanks in advance!
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
One caveat, I have tried this out on a newer version than 6.2. But in taking a random sample of list views where the rule instance is opening without any issues, they all share the same consistent configuration that you may want to try as a starting point:
In the Double-click event on the Format tab:
Target Frame = DETAILS
On load event call script function = doOnLoad
Fragment for script functions = ListViewSelectorScript
Beyond that, this really isn't my area of expertise, so somebody else would have to pitch in. What I can tell you is that I randomly picked 5 list views, all 5 open the rule form without a problem, and all 5 share the configuration above.
Unfortunately, this did not solve the problem. Interesting thing though that function doOnload in the ListViewSelector.js from Pega-Reporting:06-02-01, which is referenced by ListViewSelectorScript, is present but single line of code inside it is commented... So, it does nothing (with uncommented code as well).
Anyway, thanks a lot for your investigation! I'll continue searching, and maybe someone, who have faced similar problem, will reply.
Posted: 6 years ago
Posted: 25 Aug 2015 12:40 EDT
Pankaj Rawal (rawap)
Senior Software Architect, Low-code
Have you considered using ( or reusing ) the out of the box available listview : RulesByName under Data-Rule-Summary class in Pega-WB Ruleset ?
This listview opens up the list of rules and you can drill down the result and open the rules without any issues .
The activity which plays the key role here is @baseclass- Show which in turn calls an HTML rule ShowFields which opens up a window with OPEN and HISTORY button.
Now coming to the point of displaying " readonly preview of an instance of a class " I am not clear about your exact requirement, Is it like you want to disable checkin , checkout and save as of the rule and just show the rule form with details ?