Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 28 FEB 2012 02:59:01PM Richard Bright wrote:

In the OI 9.2.1 Readme etc -

«The ability to load previous values into controls within a window has been introduced in OpenInsight 9.2.1. This equates to the ARev functionality of :

§ The "Ditto" prompt default. See the Form Designer Property window for details.

§ The "Alt-C" softkey that duplicates the most recently saved form data into the form's controls (All non-key controls are updated)

§ The "Alt-O" softkey that duplicates the most recent saved form data into the form's controls (only a single control is updated)

I have looked thru Help documentation and cant locate the inforation on how to impliment, or how we can access these properties programaticly.

Anyone with pointers?


At 28 FEB 2012 03:38PM Barry Stevens wrote:

[google]This is in the READ ME

A new function OIWin_FormLoadPrev( windowName, controlName) should be called for the ALTC/

ALT-O type processing.

Not much help though.

I remember using ditto, but cant remember how and forgot it existed till now.

I am sure there was a bug with the alt+C Alt+O when it came out and never heard any more, I will keep digging.


At 28 FEB 2012 03:45PM Barry Stevens wrote:

Re Ditto, if you open the properties and look in default you will see PREVVAL


At 28 FEB 2012 03:59PM Barry Stevens wrote:

In the function the 'controlName' is named 'ctrlList' so you can assume multiple controls.

I would assume it is returning the values to the listed controls as there is only a set_property declared in the function.

One control for alt-o

multi controls for alt"c


At 28 FEB 2012 07:02PM Richard Bright wrote:

Thanks Barry - great job.

I had forgotten about OIWin_FormLoadPrev, and trawling thru the help came up with a blank. Yes, had seen the PrevVal in the Default, but again couldnt link with anything useful.

Thanks

Richard


At 29 FEB 2012 04:26AM Carl Pates wrote:

Richard,

The "Ditto" prompt default: This is a default process that loads contents of the current field from the previously saved record. To enable this use a DEFAULT value of PREVVAL when designing the control.

The "Alt-C" softkey: Loaded the contents of the previously saved record into the current one. This can be emulated in OI by using the OIWin_FormLoadPrev() stored procedure like so:


   * // Emulate "Alt-C" - you could put this on a menu item...

   call oiWin_FormLoadPrev( @window )

ALL non-key prompts will be loaded.

The "Alt-O" softkey: Load the contents of a field from the previously saved record into the current one (like the ditto default). This can be emulated in OI by using the OIWin_FormLoadPrev() stored procedure passiing it an @fm delimited list of controls you wish to load, along with the parent window like so:

 

   * // Emulate "Alt-O" - you could put this on a menu item...

   focusID = get_Property( "SYSTEM", "FOCUS" )

   call oiWin_FormLoadPrev( @window, focusID )

Carl Pates

Sprezzatura

The Sprezzatura Blog

World leaders in all things RevSoft


At 29 FEB 2012 04:33AM Richard Bright wrote:

Ta, thanks Carl - and now fully document for dummies like me.

Cheers, Richard


At 01 MAY 2013 11:36AM Warren Auyong wrote:

I just tried this out and it only works if I save or write out the previous record. In ARev I can read an existing record, clear the form (F8), enter a new or existing Key and load data from the previous viewed (and not saved) record.

Maybe make the ARev behavior an option? Or should I consider it a bug and report it?


At 01 MAY 2013 06:18PM Barry Stevens wrote:

See if you can get a response from the RTI writer, looks like the help hasn't been updated in the FormDesigner section (where refered to in the readme)


At 03 MAY 2013 03:25PM Warren Auyong wrote:

I can add it to the tracking list for the 9.4 beta.

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/3a753d25000445b4448b76400.txt
  • Last modified: 2024/01/04 20:57
  • by 127.0.0.1