Programming Guide |
Generates a list of fields for the WHERE clause of a SELECT or VIEW operation
char *sm_tp_gen_sel_where(char *tv, int scope);
tv
- The name of the first table view to traverse. Supply
NULL
pointer or an empty string to use the screen's root table view.scope
- Specifies which part of the table view tree to use:
TM_TV_AND_BELOW
- Build the argument list for the fields from
tv
and all table views below it on the tree.TM_SV_ONLY
- Build the argument list for the table views on the server view only.
JetNet, TUXEDO; C only
- · A pointer to a string that contains a list of comma-separated fields for the
WHERE
clause of aSELECT
orVIEW
operation.
sm_tp_gen_sel_where
returns a list of fields that can be used as an input argument for a service request implementing aSELECT
. orVIEW
operation. The fields are on the current screen and are used in theWHERE
clause.The list is returned in a temporary buffer whose contents remain valid until the next call to a
sm_tp_gen_
function. So, you should use or save the return data immediately. When the lastsm_tp_gen_
function is called, free the memory allocated for the buffer with sm_tp_free_arg_buf.
sm_tp_free_arg_buf, sm_tp_gen_sel_return