Re: [fakeapp] Passing Variables to pop up lists.

259 views
Skip to first unread message

Todd Ditchendorf

unread,
May 18, 2013, 2:43:20 PM5/18/13
to Fake
Hi MIchael,

When reporting bugs, it's always best to reduce the issue to the simplest possible case. If the bug is not producible in the simple case, then it's not a bug in Fake, but an issue with the Workflow.

I can't reproduce that here:


LMK if you can provide a reduced test case that shows this is an issue in Fake (rather than in the Workflow).

thx,
TD



On Fri, May 17, 2013 at 7:56 PM, Michael Powers <michaelp...@gmail.com> wrote:
Todd,

I am able to access a CSV file to retrive variable values and I can pass them to text boxes in Fake. My problem come when I try to set the value of a POP UP selection for time of appointment in the web form. If I use a set value of HTML Element action it will not let me pass a variable. It instead also displays a pop up selection. Do you have any advice on how I might get around this? I am attaching a screen shot to illustrate.

Thank You,
MIchael

--
You received this message because you are subscribed to the Google Groups "Fake" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fakeapp+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Todd Ditchendorf

unread,
May 21, 2013, 2:32:51 PM5/21/13
to Fake
Hi Michael. No, I was definitely responding to your post.

It sounds like you are asking how to assign the value of a Fake variable to an HTML popup (<select>) form element. (It doesn't matter where the variable comes from - A CSV file, from a "Set Value of Fake Variable" Action, etc).

To assign the value of a Fake variable to an HTML popup (<select>) form element, just use the "Set Value of HTML Element" Action (just like any other kind of form input element).

Again, see here: http://imgur.com/2Y8bf2f

You can use "Connecting" to easily do this. Learn more about Connecting : http://vimeo.com/14701789

thanks,

TD




On Tue, May 21, 2013 at 10:38 AM, Michael Powers <michaelp...@gmail.com> wrote:
Todd,

I think you got my post confused with another post. I was not reporting a bug. I am trying to find a way to pass info to a pop up on a web site from a CSV file. I can get the variables into fake and am looking for a way to pass it to this type of HTML element. Also my experience is that as fake reads each line of my CSV file and passes the variables It works the first time then the next time the message undefined variable is displayed in the html. Also the “repeat” action does not stop at the last line. Is there and EOF character that Should be there? Any help would be greatly appreciated. 

On Friday, May 17, 2013 10:56:02 PM UTC-4, Michael Powers wrote:
Todd,

I am able to access a CSV file to retrive variable values and I can pass them to text boxes in Fake. My problem come when I try to set the value of a POP UP selection for time of appointment in the web form. If I use a set value of HTML Element action it will not let me pass a variable. It instead also displays a pop up selection. Do you have any advice on how I might get around this? I am attaching a screen shot to illustrate.

Thank You,
MIchael

Charlie Garrison

unread,
Jun 1, 2013, 9:01:41 AM6/1/13
to fak...@googlegroups.com
Good evening,

On 29/05/13 at 10:07 AM -0700, Michael Powers
<michaelp...@gmail.com> wrote:

>Do you have any idea what might be happening to cause this problem.

What are the line endings in the CSV file? My guess is they are
DOS line endings; try changing them to Unix line endings. There
are plenty of tools to do that; I would use BBEdit.


Charlie

--
Ꮚ Charlie Garrison ♊ <garr...@zeta.org.au>

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
http://www.ietf.org/rfc/rfc1855.txt

Charlie Garrison

unread,
Jun 3, 2013, 8:01:24 PM6/3/13
to fak...@googlegroups.com
Good morning,

On 3/06/13 at 9:22 AM -0700, Michael Powers
<michaelp...@gmail.com> wrote:

>Thank you for taking the time to reply. That is exactly the
>problem I was having. BBedit let me save the document with Unix
>line breaks and my script is working perfectly.

Great, glad to hear it's been solved.

Todd, is that a docco or code bug with Fake? I understand not
supporting DOS breaks; I haven't looked to see if the docco says
anything about it.
Reply all
Reply to author
Forward
0 new messages