NetTalk Central

Author Topic: NT12 locate placeholder  (Read 1679 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1846
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
NT12 locate placeholder
« on: August 06, 2021, 04:28:09 AM »
Hi,
In Webserver/NT Extension/ Advanced tab you can set the Locate Translations for the Locate Prompt.
This prompt has different length to explain how the locator will work.
This different length makes some pages to look weird because of its length, mostly when used in a small screens.
The think a solution is to set the Prompt only to the column name, as now, and use the placeholder to inform 'Contains', 'Begin',etc
Now if you want to do this you need to write a PlaceHolder in each locate tab of each browse.
Is there any chance to add this feature to the template?
I imagine this: add a check in the webserver to always suggest the translation text as a placeholder
Then if this check is checked, in the browse, set automatically the placeholder depending on the type of locator selected.
Move the Locator Type selection before the placeholder in the locate tab of the browse.
When the type is selected you get the placeholder set in the webserver.
See pics

Thanks

PD it fits better as a feature request, feel free to move it
« Last Edit: August 06, 2021, 08:20:35 AM by michelis »
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11179
    • View Profile
Re: NT12 locate placeholder
« Reply #1 on: August 09, 2021, 06:57:06 PM »
Sorry Alberto, I don't understand what you are trying to do here.
Please explain some more?

Alberto

  • Hero Member
  • *****
  • Posts: 1846
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: NT12 locate placeholder
« Reply #2 on: August 10, 2021, 09:51:53 AM »
Sorry Bruce!
Will try again...
When NT sets a locator it makes its prompt as:
NameOfTheColumnField & TranlationOfTheLocatorType & ':'
This can be a long prompt which can push the locator to the right or even need 2 rows.
I think it can be better if NT sets the prompt as:
NameOfTheColumnField & ':'
and the placeholder as:
TranlationOfTheLocatorType

Regards
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11179
    • View Profile
Re: NT12 locate placeholder
« Reply #3 on: August 11, 2021, 04:38:39 AM »
>> I think it can be better if NT sets the prompt as:
>> NameOfTheColumnField & ':'

To get this set the global translations (in the WebServer procedure) to
''
(all of them)

>> and the placeholder as:  TranlationOfTheLocatorType

Set the "PlaceHolder" setting on the Browse to
GetPlaceHolder(loc:LocatorType)

loc:LocatorType is a LONG and can be one of the following equates;

Net:Position
Net:Date
Net:Contains
Net:Search
Net:Begins
Net:NoLocator

then make a source procedure called
GetPlaceHolder (Long pLocatorType),String
 
which returns the text you want in the placeholder.

cheers
Bruce




Alberto

  • Hero Member
  • *****
  • Posts: 1846
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: NT12 locate placeholder
« Reply #4 on: August 11, 2021, 10:24:10 AM »
Thanks, good idea, but..
Go for all browses and set the function in the placeholder is the same as write the pleceholder for each browse.
Thats for I was thinking in the template for solve this for all browses.
Regards

-----------
Regards
Alberto