Skip to main content
Level 2
Feb 12, 2021 10:59 PM UTC
Solved

Is it possible to find out what is the filtering dimension on Javascript Code?

I noticed that vars.schema returns the targeting dimension name on Javascript Code, but I would like to know if it is possible to find out which is the Filtering Dimension on Javascript Code. Thank you!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Jonathon_wodnicki
Jonathon_wodnickiAccepted solution
Community Advisor
Feb 16, 2021 6:35 AM UTC

Hi,

 

It's not stored to vars, no.

Crude approach is to search the workflow's xml, looking for query transition target = your activity, then retrieve [query/where/@filteringSchema] from it.

This can be done in 1 line using E4X filtering, doc here:

 

Thanks,

-Jon

5 replies

Jonathon_wodnicki
Community Advisor
Jonathon_wodnickiCommunity AdvisorAccepted solution
Community Advisor
Feb 16, 2021 6:35 AM UTC

Hi,

 

It's not stored to vars, no.

Crude approach is to search the workflow's xml, looking for query transition target = your activity, then retrieve [query/where/@filteringSchema] from it.

This can be done in 1 line using E4X filtering, doc here:

 

Thanks,

-Jon

Translate
vitor_dAuthor
Level 2
Feb 19, 2021 3:56 PM UTC

Thank you! I will try that! One final question, how do I get the workflow's XML in javascript?

 

I wrote down the following code to test some filtering, but it didn't work:

 

 

var test = instance.activities.jumpout.(@name == "jumpout");

 

 

Translate