FoxInCloud
Method wFormCallBack
Gravatar is a globally recognized avatar based on your email address. Method wFormCallBack
  Omar Bellio
  All
  Apr 30, 2020 @ 08:27am

Hi again! I'm making some trial and running some programs in desktop mode. Below there's some code commented and replaced by the adaptation assistant. The purpose is to show a modal selection form which returns an object with 2 properties, one boolean and a second with a numeric value containing the id for a record to be retrieved from the database.

*-FIC- Replaced by FoxInCloud Adaptation Assistant version 2.30 (source mode) on 04/16/2020 21:57 ! Do Form ('MySelectorForm') name loForm linked; ! with .cUserTierClass ; ! to loRetVal noshow

loForm = m.thisform.wFormNoShow(forceext(('MySelectorForm'),"scx"),; 
				'wFormCallBack', thisform.cUserTierClass)

If loForm.lShow
	.wFormShow(loForm, .T.)
Endif

! Some code here to deal with loRetVal which is the original intended result ! (an object)

Ok, this is but one of many ways I've tried, to start with, the wFormNoShow method actually SHOWS the form while instantiating, not one but two times and then it goes invisible. After that I can't figure out how to get my wFormCallBack method to run and (in theory) put there the code to deal with result of my selection. I understand that this method receives I'd appreciate some hint to understand what am I doing wrong. ``

Gravatar is a globally recognized avatar based on your email address. re: Method wFormCallBack
  Omar Bellio
  FoxInCloud Support - Thierry N.
  May 1, 2020 @ 04:27am

Hi Thierry, your answer was absolutely helpfull and I have now running the callback method fine. (A bunch of hours of trial and error may save like 10 minutes reading the manual). Now, wFormNoShow method keeps showing the form while instantiating, tell me if I can read about this anywhere. (Believe me, I've been searching... but I happen to be bad at research)

Cheers!

Gravatar is a globally recognized avatar based on your email address. re: Method wFormCallBack
  FoxInCloud Support - Thierry N.
  Omar Bellio
  May 1, 2020 @ 05:31am

Hi Omar,

If you're asking why you can see the form display in the IDE in Web mode, you don't need to worry about this, it's internal to FoxInCloud and does not affect the way it'll work in production without IDE.

Again, the best is that you post a screenshot or a video showing the behaviour your question is about; easier for us to be sure of what you're asking, saves your and our time. FoxInCloud is a complex system and many similar behaviours can happen, with a meaning depending on the context.

TIA

© 1996-2024