newntui/discovermdi/src/qaparams.cpp
//---------------------------------------------------------------------------------------
// This public function will fill the given variable with the data from the currently 
// selected query results set. It will fill the variable with the nil_set if no set
// available.
//---------------------------------------------------------------------------------------
This public function will fill the given variable with the data from the currently
selected query results set. It will fill the variable with the nil_set if no set
available.
This public function will fill the given variable with the data from the currently selected query results set . It will fill the variable with the nil_set if no set available .
void CQAParams::GetCurrentSet(CString& to) {
CString query;
CString set;
BSTR sysQuery;
CQATree* view;
CString node;
    view=(CQATree* )(((CSplitterWnd *)GetParent())->GetPane(0,0));
    node=(*view->GetCurrentNodeName());
    query.Format("set %s [sev_get {%s} retval]",to,node);
    sysQuery=query.AllocSysString();
    set=DataSourceAccessSync(&sysQuery);
	SysFreeString(sysQuery); 
}
void CQAParams :: GetCurrentSet ( CString & to ) { CString query ; CString set ; BSTR sysQuery ; CQATree * view ; CString node ; view = ( CQATree * ) ( ( ( CSplitterWnd * ) GetParent ( ) ) -> GetPane ( 0 , 0 ) ) ; node = ( * view -> GetCurrentNodeName ( ) ) ; query . Format ( " " , to , node ) ; sysQuery = query . AllocSysString ( ) ; set = DataSourceAccessSync ( & sysQuery ) ; SysFreeString ( sysQuery ) ; }
This public function will fill the given variable with the data from the currently
selected query results set.
This public function will fill the given variable with the data from the currently selected query results set .
// We need the current node name to run the query. // Trying to detect the amount of the elements