I need an app to open to the last loaded year and month. Variables created in the load script contain these values. When using OnOpen triggers in the desktop client, it works every time. However, it doesn't work in ajax. I've viewed many threads regarding this and called QV support - who confirmed it. So, I need to create a bookmark to handle the task.
Again, I created two variables in the load script to get the year and month I need. Using the listbox Search and Advanced Search features with these variables, I cannot get the right values selected.
My two variables are: 1) vcFY 2) vmaxFM
vcFY = 2016
vmaxFM = 7
I've entered them as ='$(vcFY)' , =$(vcFY), =vcFY, etc... It simply selects every year. Should variables used in the search be formatted/applied differently?
I added the bookmark to the document OnOpen trigger and tested. It works, but I've found this feature/function to be rather delicate. Reload the document with a different month, then apply the bookmark in the listbox search field (= Month='$(vCurrMonth)') bookmark it and note the bookmark name, enter the bookmark name in Settings > Document Settings > Triggers > Document Event Triggers > OnOpen > Add Action > Bookmark. Save the document and reopen. It should work.