Abhishek Singh 7 Posted September 23, 2015 Share Posted September 23, 2015 Hi Everyone , A question about Configuration Block. Can we only pass values in the setFilter or we can also pass expressions. like i am trying the below and its not working SetFilter(columnName = "BUSINESS_DATE", lowValue = Max([bUSINESS_DATE]), highValue =Max([bUSINESS_DATE])); what if i want to select the max value in the filter as the default value for the initial state of analysis Any other idea to achieve this , please share. Thanks Link to comment Share on other sites More sharing options...
Manoj Chaurasia Posted September 28, 2015 Share Posted September 28, 2015 Thanks for replying jots, Yes i tried the same,i created a calculated column with two fields , 'max date' and 'other dates' , but in this case user will have to look for the calculated column and check 'other dates' to see the data for other dates. the requirement is to set the initial state of the analysis with the max date(default), and then if user wants to see other dates , he can use the range in filter panel . With calculated column the original date filter will also be greyed out. that was the reason i was looking into conf block , trying to set the max date as the default filter value as the initial state of the analysis. Link to comment Share on other sites More sharing options...
Manoj Chaurasia Posted September 28, 2015 Share Posted September 28, 2015 I have seen few discussions around this topic earlier(set the analysis to the max date initially), let me search for those posts. Don't know if they had answer in it, but you can also give a try at searching those posts. Link to comment Share on other sites More sharing options...
Manoj Chaurasia Posted September 28, 2015 Share Posted September 28, 2015 Check this : https://tibbr.tibcommunity.com/tibbr/#!/messages/137744 Link to comment Share on other sites More sharing options...
Manoj Chaurasia Posted September 28, 2015 Share Posted September 28, 2015 Thanks Jots , it gave me a couple of options ,let me try them and will update the post . Link to comment Share on other sites More sharing options...
Manoj Chaurasia Posted September 29, 2015 Share Posted September 29, 2015 Thanks Kevin for replying , i did the same , created a script to change the value of the filter and some other things :P,attaching that with a doc prop, and changing its value in Conf block , It worked. Link to comment Share on other sites More sharing options...
Abhishek Singh 7 Posted October 23, 2015 Author Share Posted October 23, 2015 Any thoughts on this Link to comment Share on other sites More sharing options...
Surekha Kasar 3 Posted October 23, 2015 Share Posted October 23, 2015 I couldn't get that to work but how bout creating a calculated column Which checks the max business_date and sets those rows to true or false. And use that column in the config block Not sure how complex integration you are having with these config blocks, may be if you could share some context around it, we can think of more ideas. Link to comment Share on other sites More sharing options...
Surekha Kasar 3 Posted October 23, 2015 Share Posted October 23, 2015 To launch the script while opening the analysis itself : https://tibbr.tibcommunity.com/tibbr/#!/messages/149859 Link to comment Share on other sites More sharing options...
Kevin Flynn Posted October 23, 2015 Share Posted October 23, 2015 You can pass a document property value. Then use Iron python to create it on the document property change. Link to comment Share on other sites More sharing options...
Raziya Fort Posted April 14, 2020 Share Posted April 14, 2020 Could you please share the script or the dxp file. I am looking for this option. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now