> That's great advice. The reason why I used Macro is that I can call
> some API to return needed value dynamically (see complete code).

You can use *evaluated parameter* syntax, {{...js expression here}},
to get the job ID dynamically and then pass it as a substitution
value, like this:

<<tiddler CustomerTabs with:
 
{{config.macros.DatabaseAccess.getActiveJobIdByEngineerName(jobForm,
userName)}}>>

You will also need a slight adjustment to CustomerTabs because the
evaluated param value above is the entire job ID (e.g., job001,
job002, etc) , not just the job # (e.g., 001, 002, etc).  Thus:

<<tabs txtMoreTab "job no" "job no" wikiinthefield_job_$1_jobNo
"customer address" "customer address" wikiinthefield_job_
$1_customerAddress "customer phone" "customer phone"
wikiinthefield_job_$1_customerPhone>>

enjoy,
-e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to