I am afraid I do not understand the question.. You have a variable called: variableOnPage declared in Globals in your project, but your do not say what it represents. I defer the answer to someone else who does understand the question.
By the way both the short and long click on the selected date do the same thing in the project you attached in post 23
I still do not undestand why you are using a modified B4XDateTemplate class, instead of simply referencing the library XUI Views. It makes no sense.
Hi Mahares,
You can refer the code.. I have declared it as a string variable in the b4xPage..
All I want is somebody to help me to reference that variable in the DateTemplate class and assign any sample value say 'test' etc. to it..
The issue is that ..I want to make the assignment to that variable in the DateTemplate class... Purpose you do not worry... My basic purpose of attaching the code is to know as to
how you will reference a value of a variable declared in one page in another class /another page... That's all...
And regarding the 'Short and the Long-Click', you can see that I have trapped correctly the 'Click' and the 'Long Click' ... and i
t works fine for me ... It does not do anything in the code that I have given you ... Actually I do lot of different things when a long-click is done and when a click is done while selecting a day of a date in the DateTemplate class.... That part you do not have to worry about...
That part is already done ... I had attached that DateTemplate class code to Agraham only for finding a solution to my earlier 'hanging issue'
which he has already addressed...My intention of sending the 'modified DateTemplate class' to Agraham was my way of saying that 'I have not made any change in the DateTemplate class apart from trapping for the 'click' and the 'long-click' ).. That's all.. I never had any doubts regarding the trapping of the 'Click' and 'Long Click'... It works fine...
Now.. from your earlier posts it appears that 'there is another way to trap the long-click/click in the DateTemplate class apart from the way I have done... You are saying 'referencing the library XUI Views'.. I did not get that..
Summarising,
i) Requesting for showing how to'assign a value to the variable 'variableOnPage' which I have declared as a string variable on the page
in the DateTemplate Class [you can assign any value to it in the DateTemplate class and show as a log entry in the DateTemplate Class..You can show it anywhere in that class.. I just what to know how you will trap that variable in that class and make the assignment..That's all..)...
ii) Can you modify the code in that DateTemplate class suitably and show
me another way (you are saying 'referencing the library XUI Views etc.') to trap the 'Click' and the 'Long-Click'... My purpose is to trap the Click and the Long-Click when I press on a day of a particular date in the DateTemplate class ....
I am just asking if there is another way to do it ...
Thank you for your guidance and views.