Good morning, forum.
I need the assistance of anyone who can help me.
I’m developing with Claion 8 EE. In a “Browse,” I need more than one “Locator.” The search condition is through an “Entry” where I enter a text and a “Combo Box” where I select three possible states. For this, I use two variables. I don’t know how to display the result or relate those variables to the search entered in the File.
If anyone has an example or advice to guide me, I would greatly appreciate it.
Thank you very much.
Best regards.
Not sure about Clarion 8 but I would advise you to go and have a look at the code on an existing window where you have a simple locator, look for code like:
BRW1::Sort0:Locator StepLocatorClass ! Default Locator
BRW1::Sort1:Locator StepLocatorClass ! Conditional Locator
BRW1.AddSortOrder(,CLI:SK_Client_ClientFullName)
BRW1.AddLocator(BRW1::Sort0:Locator) ! Browse has a locator for sort order 1
BRW1::Sort0:Locator.Init(?LOC:Locator,CLI:Client_FullName,1,BRW1)
BRW1.AddSortOrder(,CLI:SK_Client_Address)
BRW1.AddLocator(BRW1::Sort1:Locator) ! Browse has a locator for sort order 2
BRW1::Sort1:Locator.Init(?LOC:Locator,CLI:Client_Address,1,BRW1)
BRW1::SortHeader.QueueResorted PROCEDURE(STRING pString)
If MYFilterChoice = 1
BRW1.ReplaceSort(pString,BRW1::Sort0:Locator)
BRW1.SetLocatorFromSort()
ELSIF MYFilterChoice = 2
BRW1.ReplaceSort(pString,BRW1::Sort1:Locator)
BRW1.SetLocatorFromSort()
END
Are they both supposed to be locators, or are they supposed to be filters, or ??