This topic is locked

Change Editformat at runtime

1/21/2010 5:54:35 AM
PHPRunner General questions
W
wpl author

Hi all,
I would like to change the Editformat (and behaviour, of course) of controls on the Advanced Search page. For the respective Add and Edit pages the Editformat is "Lookup wizard" which should be changed to "Text field" at runtime (to leave Editformat untouched for Add/Edit) to give the possibility of searching for fragments of field contents (contains etc) and not only "equals". I tried to change the respective array elements of "$tdatatablename" in "BeforeProcessSearch", but with no success. Any hint to go further?
thanks

W
wpl author 1/21/2010



http://www.asprunner.com/forums/topic/11995-how-to-set-up-different-settings-for-one-field-on-the-addedit-pages/


Thanks Jane,
this was also my first shot because Sergey pointed me to this direction when I came up with a similar question concerning different Editformats on Add and Edit pages. Well, it works - almost. Unfortunately, there is no AJAX-suggest functionality with this approach. And that's what I'm in need of. I would like to keep AJAX lookup wizard on Add and Edit Pages and a plain textbox

with AJAX suggest in Advaned search (I need it for several fields). Maybe I am missing some basic thing?

J
Jane 1/22/2010

Hi,
unfortunately PHPRunner do not support Ajax suggest on the add/edit pages.

As workaround you can set up these fields as Edit box with Ajax popup on the "Edit as" settings dialog. But you can't change selected value in the lookup field.

W
wpl author 1/22/2010



Hi,
unfortunately PHPRunner do not support Ajax suggest on the add/edit pages.

As workaround you can set up these fields as Edit box with Ajax popup on the "Edit as" settings dialog. But you can't change selected value in the lookup field.


Jane,
thanks for your answer - this will do the trick ;-). But one thing remains to be done - how would I change the labels of the fields on the Advanced search page (which is the alias from the SQL select) to match the labels of these fields on the other pages?
TIA

J
Jane 1/25/2010

I recommend you to use Label Editor on the Miscellaneous tab to edit labels.

W
wpl author 1/26/2010



I recommend you to use Label Editor on the Miscellaneous tab to edit labels.


Thanks Jane,
although this is a little cumbersome. Will there be support for different edit formats of the same field on different pages?

W
wpl author 1/26/2010



I recommend you to use Label Editor on the Miscellaneous tab to edit labels.


Jane,
one more thing: the labels in the Label Editor are already the same as for the original fields (the fields just show up two times) because the aliases do not appear as fieldnames in the editor. So this would have to be done in Visual Editor, I guess.

J
Jane 1/26/2010

Hi,
you can edit labels directly in teh Label Editor on the Miscellaneous tab.