Home » Developer & Programmer » Forms » CALENDER PROBLEM
CALENDER PROBLEM [message #271078] Sat, 29 September 2007 01:16 Go to next message
fam_bila
Messages: 43
Registered: August 2007
Location: pakistan
Member
i 'm using calender on form , it is working correctlly.

but Now i want that from calender, sunday should not be selected as it is a non working day .

No data against sunday is retreived, so if any one select sunday then a message should be shown that

Choose another day,it is a non working day sunday

how this should be done.
Thanks
Re: CALENDER PROBLEM [message #271248 is a reply to message #271078] Mon, 01 October 2007 00:50 Go to previous messageGo to next message
fam_bila
Messages: 43
Registered: August 2007
Location: pakistan
Member
Embarassed two days earlier i p[ut my query here,but no one seems to answer me....

plz anyone help me to solve this problem.

any solution plz?

regards
Re: CALENDER PROBLEM [message #271796 is a reply to message #271248] Wed, 03 October 2007 00:28 Go to previous messageGo to next message
Frank
Messages: 7901
Registered: March 2000
Senior Member
anything you tried yourself in the meantime?
So, what trigger(s) fire upon selection of a day? How can you check the selected day? How do you know if a given date is a sunday? How do yo display an error-message in Forms?
If you can answer all these questions, combine the answers and you got your problem solved.
If you can't work it out, show us what you tried and where you failed. Then we can help you; not based on some vague description
Re: CALENDER PROBLEM [message #271799 is a reply to message #271796] Wed, 03 October 2007 00:43 Go to previous messageGo to next message
fam_bila
Messages: 43
Registered: August 2007
Location: pakistan
Member
i'm attaching my form .
so u can check what trigger i used for day selection.
now will u please help me.
i have no idea about this.
  • Attachment: cal.fmb
    (Size: 96.00KB, Downloaded 1061 times)
Re: CALENDER PROBLEM [message #271837 is a reply to message #271799] Wed, 03 October 2007 02:11 Go to previous messageGo to next message
Frank
Messages: 7901
Registered: March 2000
Senior Member
No, you got me wrong.
I don't care what trigger is fired. YOU answer that, so YOU know what trigger you have to put your code in.
If you have no idea about Forms-triggers, you should read up on them and stop coding Forms until you do understand them.
Re: CALENDER PROBLEM [message #272402 is a reply to message #271837] Thu, 04 October 2007 22:21 Go to previous messageGo to next message
fam_bila
Messages: 43
Registered: August 2007
Location: pakistan
Member
I know what are froms triggers and when it use .

But as i say i'm using calender which is bulit-in in developer.
so i just use not make it. i have no idea about making calender.

Now i want to know whether is there any bulit-in function for calender by which we can select non-working days.

Now will u get my point?

Thanx
build-in calender function available in developer6i [message #272838 is a reply to message #271078] Mon, 08 October 2007 00:09 Go to previous messageGo to next message
sams
Messages: 100
Registered: August 2007
Senior Member
i want to ask that how to make a non working day(like if user select any date of sunday, system will not allow selection) in this calender form ,that u attached. Actually i used it in my forms and working properly.i tried but procedures written in library are very difficult ,i tried to understand but didn't understand fully.

plz help me
if any idea
thanks
Re: CALENDER PROBLEM [message #272854 is a reply to message #272402] Mon, 08 October 2007 01:15 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Go to the place in the form where you are calling the 'calendar', in the line following that call test for whether it is a Sunday, if it is a Sunday either throw a message or an alert, and then do 'raise form_trigger_failure'.

David
Re: build-in calender function available in developer6i [message #272898 is a reply to message #272838] Mon, 08 October 2007 02:28 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Interesting, 'sams' and 'fam_bila' have the same IP address and the same question!! How about you people work on this problem together?

David
Re: build-in calender function available in developer6i [message #273043 is a reply to message #272898] Mon, 08 October 2007 22:35 Go to previous messageGo to next message
sams
Messages: 100
Registered: August 2007
Senior Member
David thanks for solution!

may be fam bila is any student from my campus(department) having same problem actutally we are doing projects .so for generating reports ,calender is required for selecting date range.
(sameIP address because computers are connect in network)

anyway i found another solution.this one is also working properly.

In this form where calender is made, i selected all the columns (under sunday) and change them into textboxes (in actual they were display boxes) and from property pallet set "enabled" to "NO" and insersion allowed "NO". now no one can select any date of sunday.

what do u think is it right way?

[Updated on: Mon, 08 October 2007 22:58]

Report message to a moderator

Re: build-in calender function available in developer6i [message #273045 is a reply to message #272898] Mon, 08 October 2007 22:50 Go to previous messageGo to next message
fam_bila
Messages: 43
Registered: August 2007
Location: pakistan
Member
ya we are in same campus.
Mostly we get the different assignments but this time a same assignment is given to us ,so both of us have send u same problem.
Is their any rule in ur forum that two person having same IP adress can't make their different login?


Re: build-in calender function available in developer6i [message #273107 is a reply to message #273045] Tue, 09 October 2007 02:10 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
No, but there have been a couple of times where multiple logins appeared to be being used by the same person.

I believe that learning Forms should be considered a non-competitive exercise and that people should work together as much as possible.

David
Previous Topic: connectivity
Next Topic: Scroll bar problem
Goto Forum:
  


Current Time: Tue Dec 10 03:11:27 CST 2024