Тёмный

PHP Runner Show Hide Buttons 

PHP Runner Tips And Tricks
Подписаться 3,2 тыс.
Просмотров 6 тыс.
50% 1

Опубликовано:

 

25 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 29   
@amadiosacripanti5293
@amadiosacripanti5293 3 года назад
tips on how to transfer values from PHP to Javascript? will there be a way to access the proxy from the custom button click PHP event? apparently in the PHP part of the click event of the custom button the following expression is not legal: $ pageObject-> setProxyValue ($ name, $ value) ... is a major lack of functionality ... don't you think?
@PHPRunnerTipsAndTricks
@PHPRunnerTipsAndTricks 2 года назад
I will look into this.
@amadiosacripanti5293
@amadiosacripanti5293 2 года назад
@@PHPRunnerTipsAndTricks Great!!!
@spatialmanager-de
@spatialmanager-de 5 лет назад
Thanks for the tutorial. Yes, V10 was a great step forward!
@PHPRunnerTipsAndTricks
@PHPRunnerTipsAndTricks 4 года назад
Indeed it was
@amadiosacripanti5293
@amadiosacripanti5293 3 года назад
A lot of things in general are still unclear ... are PHP trigger parameters (e.g. $ data ["FieldName"]) usable and convenient? I doubt...
@PHPRunnerTipsAndTricks
@PHPRunnerTipsAndTricks 3 года назад
IF $data array is available you can and should use it. A common mistake I saw is where developers try to access a field, but the field is excluded from the main query.
@alsindahuda9050
@alsindahuda9050 2 года назад
for example, in a list, I want to hide a button when the confirmation value is yes, and show it when it is no. How do I do this? Thanks in advance.
@PHPRunnerTipsAndTricks
@PHPRunnerTipsAndTricks 2 года назад
Yes, you can do that.
@kaudio
@kaudio Год назад
muy bien explicado me ayudo bastante
@PHPRunnerTipsAndTricks
@PHPRunnerTipsAndTricks Год назад
De nada
@sherceria9113
@sherceria9113 3 года назад
How Can i hide the Dropdown(search option ) in search page?
@PHPRunnerTipsAndTricks
@PHPRunnerTipsAndTricks 3 года назад
Are you referring to search suggestions? Where suggestions of the search appear as you type in the all-field search?
@ASawyerInAZ
@ASawyerInAZ 4 года назад
I really like the colors in your template that you use. Is that an existing one that's in phprunner or is it custom?
@PHPRunnerTipsAndTricks
@PHPRunnerTipsAndTricks 4 года назад
I think the theme was spacelab
@amadiosacripanti5293
@amadiosacripanti5293 3 года назад
Ok! it's very intriguing but... what if you want hide or show a Custom Button depending on the value of one or more fields on the same record? Can PageObject help with one of its properties or methods?
@PHPRunnerTipsAndTricks
@PHPRunnerTipsAndTricks 3 года назад
It depends where the button is. But the first is to use: $pageObject->hideItem("custom_button1")
@amadiosacripanti5293
@amadiosacripanti5293 3 года назад
@@PHPRunnerTipsAndTricks ok... but if I want decide wether hide or show based on some fileld values belonging in the same row/record of the custon_button may I use $data (or $rs). By an example : if ($data["Numero"]>=6) $pageObject->hideItem("button_prenota"); else $pageObject->showItem("button_prenota"); is correct? Thanks a lot!
@PHPRunnerTipsAndTricks
@PHPRunnerTipsAndTricks 3 года назад
@@amadiosacripanti5293 I think your button is in the grid. This will work in the "after record processed" event. Use $data. $row is an array representing a row on the page. If the field Numero is on the page, then you can use $row. But if the field is not on the page then use $data.
@amadiosacripanti5293
@amadiosacripanti5293 3 года назад
@@PHPRunnerTipsAndTricks Yes! custom buttom belongs into a grid row: further, in the grid as in the underlying database table there is an integer field named "Numero" (italian of Number in english...). So I would want see or not the button based on then "Numero" field value... as it was already clear I think. Thanks for patience and kind attention...
@amadiosacripanti5293
@amadiosacripanti5293 3 года назад
evidently there are several versions (overloads) of hideItem: with and without $ recordId. Does the version without $ recordId affect the whole page and that one with $recordId only on the current row (the one identified by $ recordId to be precise)? Either way, this code seems to work: function BeforeMoveNextList($data, $row, $record, $recordId, $pageObject) { // Place event code here. // Use "Add Action" button to add code snippets. if ($data["Numero"] >= 6) {$pageObject->hideItem("button_dosomething", $recordId);}; return true; } in event: List page: After record processed Version 10.2 pro
@Tokando002
@Tokando002 4 года назад
how i can hide field in detail page based on value on master page ?
@PHPRunnerTipsAndTricks
@PHPRunnerTipsAndTricks 4 года назад
You would use getMasterRecord() class
@amadiosacripanti5293
@amadiosacripanti5293 3 года назад
autocompletion in event editors is instable?
@PHPRunnerTipsAndTricks
@PHPRunnerTipsAndTricks 2 года назад
I am not 100% sure what you mean.
@kaydues
@kaydues 5 лет назад
This is a good tutorial, too :D
@PHPRunnerTipsAndTricks
@PHPRunnerTipsAndTricks 4 года назад
thanks