BCEats
August 7, 2020, 1:23am
7
Hi emre!
This date picker was exactly what I was looking for and I’ve been trying to implement this, but I have run into a problem where the date picker pops-up, but the {:Delivery Date} does not seem to get a value from the date picker.
Here is my setup:
I put this Popup action here to see what {:Delivery Date} is, but it shows up as…nothing.(I’ll show that later on)
When Future Date is clicked the popup browser works fine.
and then the ticket tag is not updated…
Here is the popup:
Meaning, the {:Delivery Date} is null…
I am unsure of where to proceed from here…
Thank you in advance, any help is appreciated!
Jesse
August 7, 2020, 3:11am
8
It’s null because you changed it. You used Pickup Date instead of Delivery Date. Try {:Pickup Date}
It’s very important not to change parts of a tutorial unless your sure what you are doing.
BCEats
August 7, 2020, 4:32am
9
Hmm. I did try {:Pickup Date} as well.
(As well as:
{SETTING:Pickup Date}
{:Pickup Date}
{LOCAL SETTING:Pickup Date}
{SETTING:Delivery Date}
{:Delivery Date}
{LOCAL SETTING:Delivery Date})
I had assumed that because
window.external.SetLocalSettingValue('Delivery Date',this.getMoment().format('DD MM YYYY'))
in the deliverdate.zip was still set as Delivery Date, so I had kept it the same.
ilyas
August 7, 2020, 5:26pm
10
Does not work in version 5.3.0
Jesse
August 7, 2020, 6:02pm
11
Ok I had time to read the entire tutorial now I understand. I would have to test this on windows 10 with 5.3.0 to be sure its still possible. This is an older tutorial and a lot has changed specifically our libraries.
BCEats
August 7, 2020, 6:39pm
12
Ah, the answer that I had sort of thought was…but did not want to accept.
@Jesse Thank you for your help!
Also in continuation, is there something similar to this that I would be able to implement?
Jesse
August 7, 2020, 6:40pm
13
@ilyas how do you know for sure its 5.3.0 that does not work with it? What feature is not working?
Jesse
August 7, 2020, 6:41pm
14
I think I will build this now and see if I can make it work.
ilyas
August 7, 2020, 6:41pm
15
Local Setting and global setting
Jesse
August 7, 2020, 6:41pm
16
Those features work. Do you mean specifically the window.external.SetLocalSettingValue call?
ilyas
August 7, 2020, 6:44pm
18
{:Delivery Date} {GLOBAL SETTING:Delivery Date} {LOCAL SETTING:Delivery Date} not working
Jesse
August 7, 2020, 6:47pm
19
Those are powered by the jscript. Settings work in sambapos 5.3.0 Are you saying the javascript hook is not working? I am about to test this tutorial myself.
ilyas
August 7, 2020, 6:52pm
20
I select the date but it is not saved locally
Jesse
August 7, 2020, 7:05pm
21
It probably has to do with new chromium engine. @VehbiEmiroglu maybe can look at that.
I can confirm that the JS is not working in the browser to pass the localsetting.
I woud like to use this, but doesn’t seem to work.
Jesse
August 24, 2020, 9:09pm
26
Wait for an update we will fix it.
ilyas
January 24, 2021, 2:55pm
27
Didn’t fix on new version 5.3.2
holapos
January 25, 2021, 9:19pm
28
Hi @Jesse
I saw it here and I wanted to use it, but unfortunately it didn’t work. I wonder if there is any progress on this issue ?