| |
| Publicado el 22,julio 2015 - 10:03 |
Hello to all
It is the first time that i'm playing with the Scheduler control on Webdev 17. I have been able to populate the agenda view loading the appointments from the db.
I have seen, Webdev 17 Scheduler hasn't all the possible functions available in V18 and later. The main reason why i can use WB18 is about the Webdev Application Server installed. Now we have the v17 installed on the server.
My problem: I need to click on an appointment listed in the scheduler and open a dialog form with the data read from the corresponding record (ID).
Is there a way to easily retrive the appointment ID and then read data from the db and show them on dialog form?
Any help is appreciated..
Thanks in advance.
Gianni |
| |
| |
| | | |
|
| | |
| |
| Publicado el 22,julio 2015 - 13:14 |
Problem solved.
Each PROCEDURE in the scheduler code has the data corresponding to selected appointment. Just retrieve the associated id loaded and i can read the db passing all the data to a form for delete or modify.
Gianni |
| |
| |
| | | |
|
| | |
| |
| Publicado el 22,julio 2015 - 13:15 |
Hi Gianni,
Yest that is possible. I have made this and way more in webdev , php modus. So no need for wbdev application server for this needed if that is your problem.
The question is what do you need. If you need just a scedular with no fancy stuff then you can create it in half an hour Use databing and you are set.
If However you wnat a scedular for every client then it is not so easy. For with data binding you cannot refres like a table control with the tainit argument.
So refresing withonly the appointments of one client is not going to work properly.
However you can programm it all and if you do so you can do everything you discribed and more .
Ih had a project where SAAS agenda where people could plan in help form nurses household help etc based on the time and hourly rates through the planning of the appointment the billing was calulated. So all those thing are possible even without the application server.
So If you could profide me with a little more info on what you exactly want I can give you an answer it being the fast way through databinding or the programming way.
If you need to programm you have to know what the pc soft guru's had in mind when they made this awsome control. Yo might think that it doesnot work but believe me it is very powerfull. The example will problebly not help you out for it is only a solution of the data binding ( the fast way )
Regards Allard PS Provide me with some more info please. If needed I can give you the coding of my solution. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 22,julio 2015 - 13:36 |
Hello Allard
Thank you for your explanation.
if you want, please, send me your example to :
gmspano at tiscali dot it
Thanks in advance.
Gianni |
| |
| |
| | | |
|
| | |
| |
| Publicado el 23,julio 2015 - 08:22 |
Hello Allard
Thank you for your e-mail. :spos:
Gianni |
| |
| |
| | | |
|
| | |
| |
| Publicado el 23,julio 2015 - 09:06 |
Hello Allard
I'm continuing my test with the Scheduler control on Webdev 17.
My page that contains the agenda is similar to your.
I will try to explain my problem: When the agenda show the appointments, i want to change some data stored on it and to do that i press the cell/hour that contain the appointment. I can see the appointment id as it is stored on the db and decide to store this value on a global variable (gnApptoID is int), then as i did once on Windev, i open the page (with PageDisplayDialog (Page_Appto) ) and in the initialization process i try to read the record, but unfortunately the "gnAppto" variable is EMPTY (=0).
Is it normal that when you use a global variable between two different pages, the receiving page initialize the variable?? I'm a bit confused.
Please, can you tell me which is the right way to pass the "gnApptoID" value from one page to another???
Thanks in advance
Gianni |
| |
| |
| | | |
|
| | |
| |
| Publicado el 23,julio 2015 - 09:23 |
Hi Gianni,
In the "Selection an appointment (browser) event, you can assign the ID of your appointment to a global variable :
AJAXExecute(SetAppointment,LAptSelect.ID)
//Local procedure to assign to selected ID to a global variable PROCEDURE SetAppointment(ID is 8-byte int) GiID=ID
Then, I have a button on my page to open the selected appointment, using de global ID (GiID). I show the details of my appointment in a popup.
Regards, Bart |
| |
| |
| | | |
|
| | |
| |
| Publicado el 23,julio 2015 - 18:34 |
Hi Ginaani . Is use a similar method I'll sent you all the code since now I have some time to do it.
regards
Allard |
| |
| |
| | | |
|
| | |
| |
| Publicado el 23,julio 2015 - 18:50 |
Hi . I sent you a word doc with code
regards Allard |
| |
| |
| | | |
|
| | |
| |
| Publicado el 24,julio 2015 - 10:22 |
HI Allard
Thanks for your e-mail and the enclosed file.
I see only a little difference between your code and mine.
In your window your are using an "Organizer" control (that is not available on Webdev 17) and i'm using a "Scheduler" control. I think they are different in their use.
In your "Knop" button code you can:
- call the "PopupDisplay" function - the Hreadseekfirst to load the appointment record.
If i try to use the same instructions on my invisible button (like Knop) with the same instructions (on server side) as you wrote, the "Hreadseekfirst" function is written in red, that means the function can't be written in this section.
Probably you are using a recent version of Webdev (> v17) otherwise it can't be explained, why it has a different behaviour.
Let me know, if you have further suggestions.
Thanks again for your friendly support.
Regards Gianni |
| |
| |
| | | |
|
| | |
| |
| Publicado el 24,julio 2015 - 23:32 |
Hi Gianni
Indeed I used webdev 18 for this. You might be write on your conclusion. Maybe version 17 has less features. I donnot have version 17 installed anymore so I could not tell but it just might be the case.
regards
Allard |
| |
| |
| | | |
|
| | |