Jump to content
Server Maintenance This Week. ×

Perform Find in Tab Control Layout


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

Recommended Posts

Try:

Go to Layout [ Notes Day 1 ]

Enter Find Mode [ Pause ]

If [ not isempty ( Notes Day 1 ) ]

Set Variable [ $Notes ]

New Record/Request

Set Field [ Notes Day 2 ; $Notes ]

New Record/Request

Set Field [ Notes Day 3 ; $Notes ]

New Record/Request

Set Field [ Notes Day 4 ; $Notes ]

New Record/Request

Set Field [ Notes Day 5 ; $Notes ]

New Record/Request

Set Field [ Notes Day 6 ; $Notes ]

New Record/Request

Set Field [ Notes Day 7 ; $Notes ]

End If

Perform Find []

...

Link to comment
Share on other sites

There's something fundamentally wrong here with this structure. For one thing, even if the searched string is found, how will it be shown? For another, how do we know which tab panel is active - and consequently into which field did the user input the search string?

Link to comment
Share on other sites

Yes, I think a dedicated search layout and possibly a dedicated result layout would be best. Without the dedicated search layout, you'd need to test the presence of find criteria in each tab panel, and use the one that has stuff, but then deal with the possibility of criteria in more than one tab panel. Not impossible, but it makes it unnecessarily complex and probably confusing for the user.

Link to comment
Share on other sites

SO how do we do "find" in a tab control layout?

I tried the script & you're right it dosen't work.

I cant be the only person that wants to use a tab control layout & needs to do "find" within that layout. How does everyone else get around this problem?

Link to comment
Share on other sites

SO how do we do "find" in a tab control layout?

Same way as any other layout.

I tried the script & you're right it dosen't work.

Can you be more specific?

I cant be the only person that wants to use a tab control layout & needs to do "find" within that layout. How does everyone else get around this problem?

Some developers use dedicated search layouts that don't include tab panels.

Link to comment
Share on other sites

The real problem is that you have used a flat file structure when relational was more appropriate.

That is, you have 7 "notes" fields, one for each day. You should instead have a related table with one "notes" field, and 7 related records.

Link to comment
Share on other sites

This topic is 6682 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.