Smart CODE
Your on-line guide to the generated code

NAME
ExtraDataProc - access/modify functions for extra group elements

INTRODUCTION
Extra Data gives you full control over what (if any) controls in the user interface group are used to send data to the server. Every extra data element is public (ie visible in the server). The mechanism is intended for situations where there is a mismatch between the data required by the server, and the way the data is presented in the interface. However it can also be used to send unusual user-interface data through to the server, or even to make a transaction that does not involve user interface elements at all.

SYNOPSIS

C

typedef char * (ExtraDataGetProc)( GROUPNAME_t*)
	GROUPNAME_t * mygroup;

typedef void   (ExtraDataSetProc)( GROUPNAME_t*, char*)
	GROUPNAME_t * mygroup;
	char * value;
C++

class ELEMENTVALUE_c: public sc_getset_c
{
	protected:
		char * value;
		GROUPNAME_c * group;
	public:
		ELEMENTVALUE_c( sc_group_c * g);
		char * get();
		void   set( char * val);
};

ELEMENTVALUE_c *
getNew_ELEMENTVALUE_c( sc_group_c * g)
{
	return new ELEMENTVALUE_c( g);
}
Java

public class GROUPNAME_ELEMENTNAME_c extends SCextraControl
{
	public GROUPNAME_ELEMENTNAME_c( String s, SCGroup g) {
		super( s, g);
	}

	public String getValue() { return null; }

	public void setValue( String s) {}
}

Inputs

Returns
Other Notes
GROUPNAME, ELEMENTNAME and ELEMENTVALUE will be replaced in the generated code by the name you have given to your group, and your extra data.

DESCRIPTION

USAGE

EXAMPLES
Preparing an alternative view of the data for a server
LanguageUsageComments
C

     

C++

     

Java

     

SEE ALSO