Condition on a parameter in application Architech

5 Posts
3 Users
0 Likes
32 Views
(@g.ndao@arcinfo.com)
Posts: 0
New Member Guest
 

hello Ev1,

Does somebody know if Conditions can be use as parameter Value?

Thanks you

🙂

 
Posted : 04/02/2013 8:53 pm
(@g.ndao@arcinfo.com)
Posts: 9
Active Member Guest
 

Hello,

Actually, it's not implemented on current versions. Maybe an evoluton for next version?!!?

 
Posted : 04/02/2013 9:26 pm
LM
 LM
(@l-micaudarcinfo-com)
Posts: 383
Member Admin
 

Can you write an example of what you want to do?
It will help for asking an evolution.

 
Posted : 04/02/2013 11:04 pm
LM
 LM
(@l-micaudarcinfo-com)
Posts: 383
Member Admin
 

Well in fact it seems that it is possible.

It will be documented and we will add an article in the KB.

Bellow is a sample:

= if(Params("pPageNumber") <5, 0, 1)

If the page number is less than 5 then property value equal 0, else propetry value equal 1.

This sample is very simple, just to understand, but we can have very complex expression.

Another interesting thing to know is the possibility to manage empty string inside expression. When you write an expression you can add an empty string with 2 simple quotes ('') but not one double quotes ("). I hope it is understandable...

Ie:
= "SynoName" + if(Params("pPageNumber") = 1, '', Params("pPageNumber"))
The name of the window if the page number is 1 and the name of the syno + page number otherwise.

 
Posted : 06/02/2013 3:00 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
 

Hmmm Ludo, I can see that you are learning fast!
Indeed, you are using already the term Quote :whistle:

 
Posted : 07/02/2013 8:06 am