NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: rjolda on August 15, 2010, 05:22:39 AM

Title: EIP - changing how it works for each record
Post by: rjolda on August 15, 2010, 05:22:39 AM
Hi,
I have a Browse and a field that I want to do EIP with - but only if a value is requested -
so first question -  I have the logic so I just need to know how to turn EIP on or off for each record .   Can I set loc:EIP = 0 if no EIP and loc:EIP = 1 if EIP is to be turned on?

Second question.  Sometimes the EIP value is a string and sometimes it comes from a drop list table that is pre filled with choices.  So, once I have turned on EIP for the field for that record, how can I set the EIP for a STRING entry or to use a DROP list?   

Thanks,
Ron Jolda
Title: Re: EIP - changing how it works for each record
Post by: Bruce on August 15, 2010, 10:23:22 AM

hi Ron,
the EIP tab has a place for a conditional - just set the expression here to allow or prevent EIP on that cel..

changing a cell from string to drop though is a little tricky, and would require some embed code. I recommend generating the code for a string, having a look at it, then copying it to the clipboard. Then generate for a drop, and inject the string code as an embed, using a condition around the string & drop.

Cheers
Bruce
Title: Re: EIP - changing how it works for each record
Post by: rjolda on August 15, 2010, 01:45:46 PM
Thanks Bruce,
I did previously generate the code for a drop and a string but it looks like the source is hard coded for the type of field that is in the template.
What would I put in the template for the default EIP field type and where would I put the code for string or drop field type.  It looked to me that if I had the option of Field type of "other" then it would not generate any default code for the field type and then I could put in my embed for the string or drop.
Does that make sense?
Thanks,
Ron
Title: Re: EIP - changing how it works for each record
Post by: Bruce on August 17, 2010, 03:16:08 AM
yes, the template generates for 1 type. So I'm saying you leave it generating 1 type, but you had-code in another type there. To see what the hand code should look like, look at what it generates for a string.

Cheers
Bruce