Home » Developer & Programmer » Forms » when button pressed (little issue)
when button pressed [message #312553] Wed, 09 April 2008 04:14 Go to next message
bluerratiq
Messages: 22
Registered: March 2008
Location: Bucharest
Junior Member
so i am trying to call some procedures when pressing a button(getting the parameters from the user), then clear all the fields entered (not to be entered twice) and then change to block.
i don't know what is happening exactly, because when the button is pressed, normally all the procedures should be called and then go to main menu ... but it does not happen anything when the button is pressed ... anyone knows why ?
please check the image attached
any tip is greatly appreciated
thanks guys
  • Attachment: ISSUE.JPG
    (Size: 75.44KB, Downloaded 606 times)

[Updated on: Wed, 09 April 2008 04:17]

Report message to a moderator

Re: when button pressed [message #312555 is a reply to message #312553] Wed, 09 April 2008 04:22 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Quote:
it does not happen anything when the button is pressed

How would you know that "something" happened? I mean, how would the screen look like? What do these procedures do? Is there any error message? If so, which one?

A blind guess: you forgot to COMMIT changes after these procedures have been executed (use "standard.commit").
Re: when button pressed [message #312556 is a reply to message #312555] Wed, 09 April 2008 04:29 Go to previous messageGo to next message
bluerratiq
Messages: 22
Registered: March 2008
Location: Bucharest
Junior Member
at least it should change the block ...
i've checked in the tables and no changes were made (these procedures update some fields in some tables if a certain condition is met)
calling them from toad, the procedures are ok, but here I guess that is a conflict when assigning those bind variables to the parameters ... but I cant figure out what is exactly
Re: when button pressed [message #312823 is a reply to message #312556] Wed, 09 April 2008 20:01 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Please post 'code', not an image of the code.

Remove the quotes, you are currently passing a literal containing a colon and the item name not the contents of that item.

Good coding practice directs that you to use 'blk.itm' notation. Using just 'itm' will cause conflicts when two blocks have the same item level name for a subordinate item.

Place 'message / pause' pairs to show you what data you are passing to your routines.

David
Re: when button pressed [message #312920 is a reply to message #312823] Thu, 10 April 2008 02:15 Go to previous messageGo to next message
bluerratiq
Messages: 22
Registered: March 2008
Location: Bucharest
Junior Member
i used to assign the parameters without the ' ' but it returned bad bind variables ...
thanks david for the blk.itm tip
my issue is solved now
thanks again, cheers Smile
Re: when button pressed [message #312930 is a reply to message #312920] Thu, 10 April 2008 02:50 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Please post the 'new' code.

David
Re: when button pressed [message #312987 is a reply to message #312930] Thu, 10 April 2008 04:53 Go to previous message
bluerratiq
Messages: 22
Registered: March 2008
Location: Bucharest
Junior Member
DATE_UPDATER(:CHECKOUT_BOOK.COD_CARTE,:CHECKOUT_BOOK.COD_CLIENT);
DATE_REFRESHER(:CHECKOUT_BOOK.COD_CARTE);
UPDATE_STOC_EXISTENT(:CHECKOUT_BOOK.COD_CARTE);
CLEAR_BLOCK(NO_VALIDATE);                
GO_BLOCK('MAIN_MENU');
Previous Topic: to create views from forms
Next Topic: Time taken during Next Navigation field
Goto Forum:
  


Current Time: Tue Mar 11 13:06:56 CDT 2025