Adm2 ?

Greetings dude,
You said previously that you would help in my appreciation of ADM2 as I upgrade from the now redundant ADM(1). I have a simple UI that I am trying to configure. I have a Smart Browse, Smart Query (SDO) and a Smart Viewer with widgets. I wish to have a radio set widget that changes my query on value-change. This is in my Smart Viewer. Where do I put my code to alter the Smart Browse data? What code do I require? I know I now need a new FOR EACH with a different WHERE statement, though where do I put it and what syntax do I use? What do I then need to call to display this new data in my Smart Browser?

I know this is very simple stuff, though I am having a hard time adjusting from ADM(1) where everything knew the handles of everything and didn’t require the Row Object method. Thanks for your help, sorry to be a pain.
Regards
 
Who are you talking to?


Dynamic-function ('AssignQuerySelection(new query parameters) in SDOHandle') will rebuild your FOR EACH.

Dynamic-function ('OpenQuery in SDOHandle') will refresh the query.


Put these in your ValueChanged/IWantToRebuildNow procedure/trigger.

Lee
 
I'd also recommend taking a look at the doc's
there's a pretty strait forward explanation and examples
on query manipulations in SmartDataObjects, just a few pages.

ADM and SmartObjects
. Developing your Application Business Logic
.. ADM event procedures and functions in the SmartDataObject
... Dynamic query manipulation

If you don't have a recent copy of the doc's
you can download them off the library section @PSDN.COM.
 
Back
Top