This topic is locked

PHPRunner 10.5 dialog

12/19/2020 3:24:34 PM
PHPRunner General questions
G
Grdimitris author

I thing that in dialog API date-text field type is not working and when i use field type radio in server side the value of radio is transfered but in swl in controls[].val() not working

when i write the following code in button client before the controls[2].val() don`t return anything but in server side the $result['Who_called'] has the right value maybe is not the proper definition of radio field. Can anyone help me.
return ctrl.dialog( {

title: 'Customer Contact',

fields: [{

name: 'remark',

label: 'remarks',

type: 'textarea',

value: ''
},

{

name: 'action_to_do',

label: 'Action',

required: true,

type: 'lookup',

value: 'Υπενθύμηση',

options: ['Act','Reminder','Inform','Cancel']

},

{

name: 'Who_called',

label: 'Who Called',

required: true,

type: 'radio',

value: 'Customer',

options: ['Customer','Third','Our office','Salesman']

},

{

name: 'Date_of_apointement',

label: 'Date of apointement',

type: 'date',

datepicker: true,

value: ''

}],

ok: 'Save',

cancel: 'Cancel',

beforeOK: function( popup, controls ) {

swal('Contact Confirmation', 'Purpose of Communication: \n' + controls[0].val()+'\νCommunication started by :'+controls[2].val()+'\nAction to do : '+controls[1].val(), 'success');

}

});

G
Grdimitris author 12/25/2020

in dialog api

the tate-text and datetime are not working.

I managed to get the values of fields not by controls[x].val() but from controls[x].getValue() where x is the number of field starting with 0.

the checkbox field working but i can`t get the value neither with controls[x].getStringValue()

All field types that work transfer the values to server side.

Waiting the next update to fix that problem

Myr0n 12/26/2020



in dialog api

the tate-text and datetime are not working.

I managed to get the values of fields not by controls[x].val() but from controls[x].getValue() where x is the number of field starting with 0.

the checkbox field working but i can`t get the value neither with controls[x].getStringValue()

All field types that work transfer the values to server side.

Waiting the next update to fix that problem


Yes you are right, I tested and it gave me an error in



Uncaught TypeError: can't access property "getFullYear", date is null formatLocalDate https://localhost/TEST/include/loadfirst.js?36415:1600<br class="clipboard-only">

formatLocalDateTime https://localhost/TEST/include/loadfirst.js?36415:1736<br class="clipboard-only">

setValue https://localhost/TEST/include/runnerJS/RunnerAll.js?36415:2768<br class="clipboard-only">

Dialog https://localhost/TEST/include/runnerJS/RunnerAll.js?36415:2454<br class="clipboard-only">

Dialog https://localhost/TEST/include/runnerJS/RunnerAll.js?36415:2452
Alexey admin 12/29/2020

Dimitris,
use controls[...].getStringValue() instead of controls[...].val() in your code.

That will work with all control types including the checkbox.

Alexey admin 12/29/2020

Dimitris,
use controls[...].getStringValue() instead of controls[...].val() in your code.

That will work with all control types including the checkbox.