Pages:
Actions
  • #1 by Wez on 15 Jan 2019
  • Hi,
    just playing with Imported selections as a means of conveying whether a selection should be a back or a lay and any staking information.  So I thought a text file along the lines of:

    MightyMeg "B" 3
    Basildon "L" 1

    would suffice, each parameter being separated by a tab character of course.
    What I have found is that the first selection in the list for the first market rightly returns the expected values for imported_1 and imported_2 (as per the screenshot).  However, for the second market, imported_1 and imported_2 are blank as indeed they are for all the following markets (as per the second screenshot).  I have been trying different variable types (chars v numbers) to see if that makes a difference but it doesn't.  So I am completely stumped as to why it only works for the first market and no others thereafter.  The selections themselves are being imported correctly, but not the data that follows.

    Any thoughts as to why?

    regards

    Wez
  • #2 by mcbee on 15 Jan 2019
  • hi
    you need to include the index number when using the variable screen because it does not know what selection you want the info for.
    s_1_imported_1 = index 1
    so for your second screen shot you need to type
    s_2_imported_1 = index 2
    the trigger looks at all selections to find the name etc

    mcbee
  • #3 by Wez on 15 Jan 2019
  • Thanks McBee.

    So a trigger using "all matching selections" can still just use imported_1 and imported_2 in trigger expressions and it will be resolved to the appropriate imported selection, even if there is more than one in a race?  i.e. the s_1_, s_2_, prefix is only needed for the view variables window?

    many thanks

    Wez
  • #4 by mcbee on 15 Jan 2019
  • hi
    yes the trigger will link the name with the imported values.
    if you use the imported a lot then it might be better to have s_1_imported_1 etc to s_12_imported _1 etc or to the max index that your selections use , or you can use the rank in place of index if your system is rank related.
    r_1_  =  rank

    mcbee
  • #5 by pcal72 on 17 Jan 2019
  • Hi

    I use this way and never fails to me

    "2. Try Again"  3   55

  • #6 by mcbee on 19 Jan 2019
  • hi pcal72
    the problem is not the way the import is typed in the list , it is when you want to look at the values in the variable screen as questioned in the first post.

    mcbee
  • #7 by pcal72 on 20 Jan 2019
  • Yes you right mcbee

    pcal72
Pages:
Actions