Subtract dates and have a dropdown box that would reference to it

Hello,
I need help on how to subtract dateField2 from DateField1 in a dynamic flow table.
The table row would increase or decrease depending on how many entry the user wants to input.
I have a table with 4 columns in it. in the first column I have a date from and a date to field and a drop-down list . The drop-down list has list items which i entered in 0,0.5,1,1.5 and so forth up to 10 in increments of 0.5
What I want to do is when I change the "date work from" or DateField2 and the "date work to" or DateField1 the dropdown list would change but will also allow the user to override it as well.
How do i create this drop down?
I tried creating an invisible cell that would have DateField2-DateField1 and hoping that I can have dropdown = that and find ways to tweak from there but have not been successful.

Hello Magus069,
This time I have added it in and I don't get an error message but the field won't calculate. It just shows it as 0 regardless the date entered. By the way, I had to remove the .rawValue because it gives me an error
This is what I have now
var DateFrom = 0
var DateTo = 0
for i = 0 upto Table3._Row1.count - 1 step 1 do
     DateFrom = DateFrom + Date2Num(Table3.resolveNode(Concat("Subform1.Row1[", i, "].DateField1")), "MM/DD/YYYY")
     DateTo = DateTo + Date2Num(Table3.resolveNode(Concat("Subform1.Row1[", i, "].DateField2")), "MM/DD/YYYY")
endfor
DateTo - DateFrom
I am thinking do you think there is something that I need to change in the field properties in order to get it working?
Thanks in advance.

Similar Messages

Maybe you are looking for

  • Catching Fault Messages when using a webservice

    Hi all. We are using a webservice that looks like this. nonSAP-system <-> XI <-> SAP A nonSAP-system asks for some information from a SAP-system. When we get an error of some kind we want to return the errormessage to the nonSAP-system so they will k

  • Iweb, upload pictures for family sharing/exchange

    Before I build my iweb site, will I be able to upload pictures/files that my sister can download from her computer. And can I password protect this activity? I am brand "new" at the web stuff, please be kind. dc MAC Powerbook G4   Mac OS X (10.4.8)  

  • How do I retreive iMessages from a month ago

    I have deleted an important thread by accident. Not realizing how important it would become. I have backed up to the clous as recent as yesterday and pluged my phone into my Mac and connected to itunes.. Please help.

  • Music library duplicate songs

    Anyone know why ios5 duplicates ALL my songs like 2-3 times in the music library> I have itouch 4g white

  • Excise number rage error

    Hi Gurus I am getting following error while posting GR (MIGO) 1)Maintain number range object for object J_1IRG23A1, year 2009, excise group E1 Number range i have maintain in for object start with 01 year no rage from     to (after maintaining number