[icf-dev] Check all fields in a DynViewer / DynSDO

Posted by LegacyUser on 28-Feb-2003 06:48

Hi,

Is there a possibility to check all values of all fields of a DynViewer

/ DynSDO when saving the record?

The DynSDO contains 1 db-file with several fields. All fields must be

checked by a same function in a General Manager.

Normally you should write the following statements:

def var cReturnValue as char no-undo.

cReturnValue = dynamic-function('checkValueOfField in

gshCustomGeneralManager, cLabelField1, cTypeField1, cValueField1 )

if not isBlank(cReturnValue)

then do:

/* error message */

end.

cReturnValue = dynamic-function('checkValueOfField in

gshCustomGeneralManager, cLabelField2, cTypeField2, cValueField2 )

if not isBlank(cReturnValue)

then do:

/* error message */

end.

...

So we have to retrieve the label, type and value of each field of the

db-file of the DynSDO.

Is there an easier way to do this because every field has to be check by

the same function?

Yves

To unsubscribe, e-mail: dev-unsubscribe@icf.possenet.org

For additional commands, e-mail: dev-help@icf.possenet.org

All Replies

Posted by LegacyUser on 28-Feb-2003 08:17

Could you modify your field check routine to receive a

char string of field handles and then use the handles

to get this info (label/value/type)? If so, then use

the method "getAllFieldHandles" in the viewer CSP and

pass that to the function.

Rick

Yves Van Eester wrote:

Hi,

Is there a possibility to check all values of all

fields of a DynViewer

/ DynSDO when saving the record?

The DynSDO contains 1 db-file with several fields.

All fields must be

checked by a same function in a General Manager.

Normally you should write the following statements:

def var cReturnValue as char no-undo.

cReturnValue = dynamic-function('checkValueOfField

in

gshCustomGeneralManager, cLabelField1, cTypeField1,

cValueField1 )

if not isBlank(cReturnValue)

then do:

/* error message */

end.

cReturnValue = dynamic-function('checkValueOfField

in

gshCustomGeneralManager, cLabelField2, cTypeField2,

cValueField2 )

if not isBlank(cReturnValue)

then do:

/* error message */

end.

...

So we have to retrieve the label, type and value of

each field of the

db-file of the DynSDO.

Is there an easier way to do this because every

field has to be check by

the same function?

Yves

>

To unsubscribe, e-mail:

dev-unsubscribe@icf.possenet.org

For additional commands, e-mail:

dev-help@icf.possenet.org

=====

Rick Terrell

__________________________________________________

Do you Yahoo!?

Yahoo! Tax Center - forms, calculators, tips, more

http://taxes.yahoo.com/

To unsubscribe, e-mail: dev-unsubscribe@icf.possenet.org

For additional commands, e-mail: dev-help@icf.possenet.org

This thread is closed