Page 1 of 1
Modal dialogue for lookup propagate selection to lookup
Posted: Sat Jan 13, 2018 3:28 pm
by drmovi
Hi
when using Modal dialogue for lookup with a lookup field and then make a selection from the modal , value will be filled in lookup field while link field value is not propagated. is it normal ?
Re: Modal dialogue for lookup propagate selection to lookup
Posted: Fri Jan 19, 2018 4:36 pm
by mobhar
Did you mean the display field value will be displayed back to the lookup field, instead of the link value itself?
Re: Modal dialogue for lookup propagate selection to lookup
Posted: Sat Jan 20, 2018 11:22 pm
by drmovi
yes but the logic is also the link field value will be propagated to the hidden field created by system that used to save the link field. this does not occurs. only the displayed selection is propagated to displayed field and also to the hidden link field generated by system
Re: Modal dialogue for lookup propagate selection to lookup
Posted: Sat Jan 20, 2018 11:27 pm
by drmovi
to illustrate there is 2 fields generated by system when you use look up, one to carry the display filed value which may be text or dropdown as you wish. the other is hidden and is used to store the link field value, what happens when you enable modal lookup is that when you make a selection the display field will be propagated to both displayed field "text or dropdown" and also to the hidden field. i expect that link field value will be propagated to the hidden field but this never happens. so my question is: is this a normal or intended behavior ? or this need some fixes ?
Re: Modal dialogue for lookup propagate selection to lookup
Posted: Sun Jan 21, 2018 6:56 am
by sangnandar
No. The hidden input should contain the actual value.
What happen when you submit the record? Does the value inserted as expected?
Re: Modal dialogue for lookup propagate selection to lookup
Posted: Fri Jan 26, 2018 7:13 am
by drmovi
The display field value is saved into database and not the link field value
Re: Modal dialogue for lookup propagate selection to lookup
Posted: Fri Jan 26, 2018 1:20 pm
by sangnandar
You need to provide more information (codes, settings, etc) to solve this problem.
The default behavior is the link field fired into database.
Try to start a new project and keep settings as simple as possible to track down the possible problem.
Re: Modal dialogue for lookup propagate selection to lookup
Posted: Sat Jan 27, 2018 10:11 pm
by drmovi
I figure out why this happens. this because the i choose a text input instead of dropdown. it seams like modal lookup only work for dropdown field in case you need to link with parent field