Time calculation: result field stays empty - InfoPath Dev
in

InfoPath Dev

Time calculation: result field stays empty

Last post 04-13-2011 01:28 PM by Alec Pojidaev. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-13-2011 06:18 AM

    Time calculation: result field stays empty

    Hello to everyone,

    i'm trying to get a time calculation using no code with 3 (text-)fields.

    The first is starttime using the conditions: itself not empty, endtime not empty, starttime is like 00:00:00

    The following rule is implemented:

    (((number(substring(../my:endtime, 1, 2)) * 3600) + (number(substring(../my:endtime, 4, 2)) * 60)) - ((number(substring(., 1, 2)) * 3600) + (number(substring(., 4, 2)) * 60))) div 60

    The second is endtime, containing the similar conditions as starttime and has this rule:

    (((number(substring(., 1, 2)) * 3600) + (number(substring(., 4, 2)) * 60)) - ((number(substring(../my:starttime, 1, 2)) * 3600) + (number(substring(../my:starttime, 4, 2)) * 60))) div 60

    The thrid field (result) is the target for the rules settings.

    The first test was fine, it worked properly. But it only worked for one time! Everytime i enter values in starttime or endtime the result field stays empty - it drives me mad!

    So if anyone as any idea - please do not let my die stupid!

    Best regards 

    Emilio111 

     

     

     

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.