Hi..all...
Does anyone can guide me:

Situation: i would like to use the palm find function to search for any
string ex. phone number. If the search is succeed, it is allowed to select
the particular record to launch another formA by using the client ID.
Now, the phone DB has its own clientID, and used the ID to call the formA.
i'll be able to call the formA, but fail to pass the ID. since the formA is
not only making use of phoneDB, but also clientInfoDB and other DB as well.

The following snippet code:

global Find function
{
  ------
if(FindStrInStr(Phone->szContact, findParams->strToFind,&outPos))
{
match = true;
fieldNum = clientContactContact1;
fieldNum1 = clientContactClientID1;
}
fieldID = (char*)GetRecordField(Phone, clientContactClientID1);
}

}
static void GoToFindItem(GoToParamsType* goToParams, Boolean launchingApp)
{
UInt16 wForm = 0;

gCurrentRecord = goToParams->recordNum;

switch (goToParams->matchFieldNum)
{

case clientContactContact1:
{
wForm = frmCMGeneral;
FrmGotoForm(frmCMGeneral);
break;
}
case clientContactClientID1:
{
wForm = frmCMGeneral;
FrmGotoForm(frmCMGeneral);
break;
}
default:
break;
}


By the way, how to pass the ID by using the goToParams?? i noticed that the
goToParams only consisted of recordNum, matchFieldNum.....

and i've tried to save the fieldID (global find function) as a global
variable, but it's no avail...

Pls help me this? Do appreciate with your kind assistance!!!

Thank you!!





-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to