home about download purchase support forum contact
FAQ FAQ   SearchSearch   MemberlistMemberlist    RegisterRegister    ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in
Proposed New Hook: Fnd_IO_InputFormButton

 
Post new topic   Reply to topic    Foundation Forum Index -> Beta Testing
View previous topic :: View next topic  

Author Message
Dave Batton
Site Admin


Joined: 14 Sep 2004
Posts: 411
Location: Denver, CO

PostPosted: Wed Oct 13, 2004 3:10 pm    Post subject: Proposed New Hook: Fnd_IO_InputFormButton Reply with quote

A Foundation developer asked how to handle transactions when using the navigation and Save and Cancel buttons you get when you inherit the Fnd_IO_InputForm form. I couldn't figure out a good way to do this, so I'm proposing adding a new hook. Please let me know if you have any suggestions on this new hook. Because hooks aren't updated like other component methods, it's important that I get it right the first time.

Code:

  ` ----------------------------------------------------
  ` Project Method: Fnd_aa_IO_InputFormButton (button)

  ` This hook is called when a button on the inherited Fnd_IO_InputForm is clicked.

  ` Method Type: Public

  ` Parameters:
  `   $1 : Text : The button that was clicked:
  `      "save"
  `      "cancel"
  `      "first"
  `      "previous"
  `      "next"
  `      "last"

  ` Returns: Nothing
  ` ----------------------------------------------------

  ` Call Fnd_Gen_CurrentTable to determine the current table.
  ` Use REJECT to prevent the default action.

C_TEXT($1;$button_t)

$button_t:=$1

_________________
Dave Batton
Author of the Foundation Shell
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Author Message
Dave Batton
Site Admin


Joined: 14 Sep 2004
Posts: 411
Location: Denver, CO

PostPosted: Wed Nov 03, 2004 10:56 pm    Post subject: Re: Proposed New Hook: Fnd_IO_InputFormButton Reply with quote

Okay, I've added the new Fnd_aa_IO_InputFormButton hook. Here's what it looks like:

Code:

  ` ----------------------------------------------------
  ` Project Method: Fnd_aa_IO_InputFormButton (button) --> Boolean

  ` This hook is called when a button on the inherited Fnd_IO_InputForm
  `   is clicked.

  ` Method Type: Public

  ` Parameters:
  `   $1 : Text : The button that was clicked:
  `      "save"
  `      "cancel"
  `      "first"
  `      "previous"
  `      "next"
  `      "last"

  ` Returns:
  `   $0 : Boolean : Allow Foundation to handle the request?
  ` ----------------------------------------------------

  ` Call Fnd_Gen_CurrentTable to determine the current table.
  ` Return False to prevent the default action.

C_BOOLEAN($0)
C_TEXT($1)

$0:=True

This hook is available in the Fnd_IO beta, now available in the betas section.

The following message is a preliminary tip on using this hook to manage transactions. I'll move this into the main forum after the 4.0.5 version is released.
_________________
Dave Batton
Author of the Foundation Shell
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Foundation Forum Index -> Beta Testing All times are GMT - 1 Hours
Page 1 of 1
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB ©2001, 2003 phpBB Group

Style based on BBLite by mTechnik