Jump to content
Server Maintenance This Week. ×

Extracting part of a layout name to use in a calculation


This topic is 3189 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi there,

I have a database with groups of layouts that share the same keyword - e.g. Registrations is one layout, findRegistrations is another and there is RegistrationsList and editRegistrations. I want to create a conditional that is activated when it detects the keyword in the layout. So if  Get(layoutName) contains the word "Registrations", perform the conditional. I thought Filter or FilterValues might work but i can't seem to get it to do so. How do I extract the keyword? And is it case sensitive?

All advice gratefully received.

Link to comment
Share on other sites

Try:

PatternCount ( Get ( LayoutName ) ; "Registrations" ) 
(is not case sensitive)

I would recommend you make your layouts names based on an Entity - Intent pair

  • Registration - Form
  • Registration - List
  • Registration - Edit
  • Registration - Find


Then you can do  LeftWords ( Get ( LayoutName ) ; 1 ) or RightWords ( Get ( LayoutName ) ; 1 ) for the entity / intent respectively 

 

  • Like 1
Link to comment
Share on other sites

This topic is 3189 days old. Please don't post here. Open a new topic instead.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.