Hi Guys, as some of you have following my project, i was wrote my JS in a single project firstly, that have just a singe page and a few buttons. But in the last week i was transfer my JS to a big iviewer project that have a lot of subpages and buttons. Soon after i have gotten to running the script on a new project, i´ll call so for now, i saw that my tokens that i have wrote on single project is not running. i have left was to see again it on the single project, and i observed:
In a single project:
My Token Call: RecordID
I was set up it on this variable in a serial join S1. This serial join alredy existed on my projet.Its worink very well.
As you gas can see on CF.LOg output below:
> ZB.feedback: The Token value (u16DevAdd or RecordID1) is = 16543
Scritp part:
I using this variable on the body of the script, i didnt use on this part to imput the value on a button for ex.
CF.setToken("s1", "[RecordID]", value);CF.setToken("d3", "[RecordID]", value);
if(ZB.trace) CF.getJoin("s1", function(j,v,t) {CF.log("ZB.feedback: The Token value (u16DevAdd or RecordID1) is = " + t["[RecordID]"]);});
I was observed, that when i using a new serial join, for example S5, that i never would used or setup it, the variable (token defined on this project) was not defined as before. As you guys can see bellow:
> ZB.feedback: The Token value (u16DevAdd or RecordID1) is = undefined ( i just changed the S1 to S5).
A new Project
As i described above, the new project have a lot of subpages and buttons.
I saw other behaivor on this project. Even if i use S1 (seted up on project) my Token was not found as working very well in a single project. I just ported the same script that i using on a single project and is not runnig as the single project.
CF.LOG output in a new project.
> ZB.feedback: The Token value (u16DevAdd or RecordID1) is = undefined
I have a few questions:
a) The token only works on the Join pre-defined on the project, for exemple d1, associated on a specific button or S10 asssociated a specific text box?
b) have a specific or a special definition when we use a project that have a lot of subpages. which may explain why the same script not have worked?