Calculating difference in Time using Javascript, etc.

I have an employee timesheet application where a clerk occasionally has to manually add a line. In the DB table, there are START_DATETIME and STOP_DATETIME fields (TIMESTAMP datatype) and the difference between these is the number of hours the employee gets paid for (obviously).
Right now, I have two calendar controls on a form (thanks for the updates in APEX 3.0 that improve TIMESTAMP handling BTW) to allow them to input these.
What the clerk wants to be able to do is select a START_DATETIME using the calendar control (easy) and then have the STOP_DATETIME calculated based on a third field - MINUTES. Anyone got any good ideas on how to do this, since (I think) it will have to be done client-side in JavaScript?

OK, here's what I ended up with:
function calc_time()
var oneMinute = 60 * 1000; // milliseconds in a minute
var oneHour = oneMinute * 60;
var oneDay = oneHour * 24;
// Get the IN_TIME value
var fld_in_time = document.getElementById("P27_START_DATETIME");
var var_in_time = new Date(fld_in_time.value);
// Get the Minutes, Calculate a new time
var fld_mins = document.getElementById("P27_MINS");
var var_new_time = var_in_time.getTime() + fld_mins.value * oneMinute;
var var_out_time = new Date(var_new_time);
// Debugging
//var fld_test_time = document.getElementById("P27_NEW_TIME");
//fld_test_time.value = var_out_time;
// Concatenating the OUT_TIME value
var fld_out_time = document.getElementById("P27_STOP_DATETIME");
var v_mm = var_out_time.getMonth();
if(v_mm < 10){
v_mm = "0" + v_mm
var v_dd = var_out_time.getDate();
if(v_dd < 10){
v_dd = "0" + v_dd
var v_yyyy = var_out_time.getFullYear();
var v_date = v_mm + '/' + v_dd + '/' + v_yyyy;
var v_hh24 = var_out_time.getHours();
if(v_hh24 < 10){
v_hh24 = "0" + v_hh24
var v_mm = var_out_time.getMinutes();
if(v_mm < 10){
v_mm = "0" + v_mm
var v_time = v_hh24 + ':' + v_mm;
fld_out_time.value = v_date + ' ' + v_time;
}

Similar Messages

  • How to upload a document with values related to document properties in to document set at same time using Javascript object model

    Hi,
          Problem Description: Need to upload a document with values related to document properties using custom form in to document set using JavaScript Object Model.
        Kindly let me know any solutions.
    Thanks
    Razvi444

    The following code shows how to use REST/Ajax to upload a document to a document set.
    function uploadToDocumentSet(filename, content) {
    appweburl = decodeURIComponent(getQueryStringParameter('SPAppWebUrl'));
    hostweburl = decodeURIComponent(getQueryStringParameter('SPHostUrl'));
    var restSource = appweburl +
    "/_api/SP.AppContextSite(@target)/web/GetFolderByServerRelativeUrl('/restdocuments/testds')/files/add(url='" + filename + "',overwrite=true)?@target='" + hostweburl + "'";
    var dfd = $.Deferred();
    $.ajax(
    'url': restSource,
    'method': 'POST',
    'data': content,
    processData: false,
    timeout:1000000,
    'headers': {
    'accept': 'application/json;odata=verbose',
    'X-RequestDigest': $('#__REQUESTDIGEST').val(),
    "content-length": content.byteLength
    'success': function (data) {
    var d = data;
    dfd.resolve(d);
    'error': function (err,textStatus,errorThrown) {
    dfd.reject(err);
    return dfd;
    Then when this code returns you can use the following to update the metadata of the new document.
    function updateMetadataNoVersion(fileUrl) {
    appweburl = decodeURIComponent(getQueryStringParameter('SPAppWebUrl'));
    hostweburl = decodeURIComponent(getQueryStringParameter('SPHostUrl'));
    var restSource = appweburl +
    "/_api/SP.AppContextSite(@target)/web/GetFolderByServerRelativeUrl('/restdocuments/testds')/files/getbyurl(url='" + fileUrl + "')/listitemallfields/validateupdatelistitem?@target='" + hostweburl + "'";
    var dfd = $.Deferred();
    $.ajax(
    'url': restSource,
    'method': 'POST',
    'data': JSON.stringify({
    'formValues': [
    '__metadata': { 'type': 'SP.ListItemFormUpdateValue' },
    'FieldName': 'Title',
    'FieldValue': 'My Title2'
    'bNewDocumentUpdate': true,
    'checkInComment': ''
    'headers': {
    'accept': 'application/json;odata=verbose',
    'content-type': 'application/json;odata=verbose',
    'X-RequestDigest': $('#__REQUESTDIGEST').val()
    'success': function (data) {
    var d = data;
    dfd.resolve(d);
    'error': function (err) {
    dfd.reject(err);
    return dfd;
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • How do I get the difference in time using 2 ttl pulses

    Hi everyone,   I have a question using the delay time.  What I need to find the time interval between 2 incoming TTL pulses and fire the output TTL pulse precisely the same time interval after the second TTL pulse.  I have been using Labview 7.1 with real time module and FPGA module (I think 1.0 because I can not find wait for rising edge vi).  I am using NI 7830R card.  The length of each TTL pulse is about 1-5 microsec.  Second pulse comes in at about 1 millisec after the first one.  So I need to fire aboyut 1 millisec after the second incoming TTL pulse.  Because of the non constant TTL pulse length, I would like to reference at rising edge of incoming ttl pulses.  Can anyone give me a help on this?
    Thank you very much.
    Hideya 

    Hi Hideya,
    As is the case with many programming questions, there are several ways to go about solving this one.  The solution I have in mind is to poll the digital input line for a transition from low to high.  The simplest way to do this would be to use a loop with a shift register to store the previous digital input value.  When the current digital input value is greater than the previous value, you can get the tick count (microsecond resolution sounds like it would be sufficient).  You can then do that sequence of operations a second time.  The difference between these two tick counts can be used as the input to the wait (microsecond) function.  After that you can send your digital output pulse.
    Best regards,
    David H.
    Systems Engineer
    National Instruments

  • Add fields, buttons, etc. using JavaScript?

    Is there a way to dynamically add or delete subforms and form fields (text fields, numeric fields, drop down fields, etc.) using a JavaScript function in a button click event? I'm not talking about visibility, but actually creating them from scratch or deleting them from the page completely using JavaScript? I know this can be done typically using a combination of JavaScript and CSS, but I'm wondering if there is a way to accomplish this in LiveCycle Designer.

    Yes, it's possible. You'd use the addField method to add a field to the page and then set up its properties to what you want. Unfortunately, there's no direct way to copy a field from one location to another, so you have to do it this way.
    Here's a link tothe documentation for the addField method that includes some sample code: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.435.html

  • Any prerequisites for using javascripts (JS) in SAP BPC 7.5NW (SP5)

    Hi,
    I keep getting evalution and parsing errors, every time I use a JS in my conversion files. It simple standard JS, like:
    js:parseInt(%external%)
    js:%external%.substring(2,5)
    etc
    Are there any prerequisites for using javascripts ??
    Is there anywhere I can debug these JS withing SAP BW ?
    Thank you,
    Joergen

    Gersh,
    It works now. I have implemented the below code (ENTITY needed to contain the variable as well). The relationship profitcenter and entity is very important as it derives the relevant profitcenters from the profit center hierarchy (e.g. all profitcenters under the legalentity node).
    //ALLOCATION PROCEDURE CONVERSION RATE
    //=====================================
    *FOR %ENT% = %ENTITY_SET%
    *RUNALLOCATION
    *FACTOR=1
    *DIM SEBACCOUNT WHAT=CONV_RATE; WHERE=<<<; USING=<<< ; TOTAL=<<<
    *DIM PROFCENT WHAT=DUMPC; WHERE=BAS(BPC_%ENT%);USING=<<<; TOTAL=<<<
    *DIM CATEGORY WHAT=FCSTCUR; WHERE=<<<; USING=<<< ; TOTAL=<<<
    *DIM ENTITY WHAT=%ENT%; WHERE=<<<; USING=<<<; TOTAL=<<<
    *ENDALLOCATION
    *NEXT
    Thanks
    Nico

  • Overhead calculation not happening after using Overhead key and orgin group

    overhead calculation not happening after using Overhead key and orgin group.
    There was a runtime error earlier related to u201Cdefine credit u201C IMG node under costing sheet component and we have applied SAP note 769946 and that error was gone out of the way
    We want to apply/add Overhead to SFG/FG materials.
    We are using PP order with PCC(product cost collector) as the cost object , i.e costing by period.(system ECC 6)
    But our problem is with material standard cost estimate process.
    We have assigned overhead keys to the percentage rates in costing sheet for material standard costing and assigned the origin groups to the credits of costing sheet. But after running the cost estimate overhead is not taking into account for standard cost calculation.
    In the define credit entry table key field is valid to date strangly and actually system should allow one than one entry with same valid to date and same sec.Cost element(type-41) for different cost centers.
    But if we without using overhead key and origin group, the entire cost in that supporting cost center will come to all materials (SFG/FG) and we can not distinguish between different product materials(SFG /FG).
    We have checked all things as mentined below.
    Firstly that the correct costing sheet is assigned to the valuation
    variant.
    That the costing sheet is entered for the appropriate material type:
    Finished and semi finished or material components.
    All of the above can be checked and verified via transaction OKKN.
    In addition make sure that the base value maintained is present in the
    costing, for example the base may include an Origin group, is that
    origin group part of the materials being costed?
    Similarly if the base is found and values exist how is the overhead
    rate of the costing sheet set up, is it valid etc.
    And finally do a similar check for the credit.
    we doubt this as a programm error...
    So, request all experts to have ur feedback..

    Dear,
    Check your origin group & material unit of mesaurement is same.
    some time in costing sheet origin group is maintain in different unit & for materail it's maitain in other unit of mesaurement.
    You can see unit of measure for material in Additional data - unit of measure.
    Check BOM component material unit also.
    Check same  unit of measure is maintain in KZS2
    I hope above will useful.
    GOPAN

  • Overhead calculation not happening after using orgin group.

    overhead calculation not happening after using orgin group.
    There was a runtime error earlier related to u201Cdefine credit u201C IMG node under costing sheet component and we have applied SAP note 769946 and that error was gone out of the way
    We want to apply/add Overhead to SFG/FG materials.
    We are using PP order with PCC(product cost collector) as the cost object , i.e costing by period.(system ECC 6)
    But our problem is with material standard cost estimate process.
    We have assigned overhead keys to the percentage rates in costing sheet for material standard costing and assigned the origin groups to the credits of costing sheet. But after running the cost estimate overhead is not taking into account for standard cost calculation.
    In the define credit entry table key field is valid to date strangly and actually system should allow one than one entry with same valid to date and same sec.Cost element(type-41) for different cost centers.
    But if we without using overhead key and origin group, the entire cost in that supporting cost center will come to all materials (SFG/FG) and we can not distinguish between different product materials(SFG /FG).
    We have checked all things as mentined below.
    Firstly that the correct costing sheet is assigned to the valuation
    variant.
    That the costing sheet is entered for the appropriate material type:
    Finished and semi finished or material components.
    All of the above can be checked and verified via transaction OKKN.
    In addition make sure that the base value maintained is present in the
    costing, for example the base may include an Origin group, is that
    origin group part of the materials being costed?
    Similarly if the base is found and values exist how is the overhead
    rate of the costing sheet set up, is it valid etc.
    And finally do a similar check for the credit.
    we doubt this as a programm error...
    So, request all experts to have ur feedback..

    Dear,
    Check your origin group & material unit of mesaurement is same.
    some time in costing sheet origin group is maintain in different unit & for materail it's maitain in other unit of mesaurement.
    You can see unit of measure for material in Additional data - unit of measure.
    Check BOM component material unit also.
    Check same  unit of measure is maintain in KZS2
    I hope above will useful.
    GOPAN

  • Using Javascript to calculate monthly payments on form

    I have a single page form where I would like to be able to
    allow the user to choose between making a one time payment or
    monthly payments for a user defined amount. I could easily break
    the form into two pages and calculate the value of the monthly
    payments and display it on the second page if the user selected the
    monthly payment option. What I would like is a single page where
    the monthly payment is determined on the fly when either the user
    selects the monthly payment radio button or when the user defined
    dollar amount is entered.
    I think I have the function determined to do the calculation
    for the monthly payment but I'm unsure as to how to get cf to read
    or display the value. I was trying to use the following with no
    luck:
    <input type=radio name=Installments value="Yes" tabindex=1
    onClick="calculatemonthlypayment(document.forms[0].DonationAmount)">
    <script type="text/javascript">
    function calculatemonthlypayment(donation)
    monthlypayment=(donation/12)
    return monthlypayment
    </script>
    Then trying to output the result like this:
    <cfoutput><input type="text" readonly="yes"
    value="#dollarformat(monthlypayment)#"></cfoutput>
    Any idea what I'm doing wrong or missing? Or is there a much
    better way to accomplish this?

    > <cfoutput><input type="text" readonly="yes"
    value="#dollarformat(monthlypayment)#"></cfoutput>
    You cannot do that. CF code is executed on the server
    (first). The resulting javascript (html, css, ...) code is then
    sent to the browser where it is executed. Since javascript code is
    executed in the client browser,
    after the CF code is already finished, the variable
    "monthlypayment" doesn't exist as far as CF is concerned.
    You can use javascript to both read the donation text field
    amount and calculate the "monthlypayment" amount to display. Here
    is a simple example. You'll need to add validation and number
    formatting.

  • Trouble using Javascript getElementById

    hello,
    unfortunately the great comfort of studio creator2 ends, wenn using javascript. I alway debugged it using firefox, but that doesn't seem to work here:
    Document.getElementsById("form1:totalCostTextField").value =
            document.getElementsById("form1:cost1TextField").value+
            document.getElementsById("form1:cost2TextField").value+
            document.getElementsById("form1:cost3TextField").value+
            document.getElementsById("form1:cost4TextField").value+
            document.getElementsById("form1:cost5TextField").value+
            document.getElementsById("form1:cost6TextField").value;as you can see i've got a form of some textfields recieving prices and i have to calculate the total price. A perfect job for javascript i thought. At first i discoverd that i have to integrate the form-Name (form1 here) to the id i specified, as Creator seems to put it in front of the elements id. I also found out, that using readonly turns an inputfield to a span-tag ( why so ever); i turned off readonly therefore ( as the ID will be appended "_readOnly").
    Well my problem is, that the onBlur-Event IS called ( proved by a simple alert). But nothing will be calculated. Normally FireFoxes Javascript-Console will show any errors. In this case it doesn't. Where am i wrong here. Are my Identifiers incorrect? Why can't i see any recalculating ?
    thank you
    wegus

    Hmmm..
    some errors here.
    - The method you have to call is getElementById, without the 's'.
    - The first Document must be with a lowercase 'd'
    - In JavaScript you have to explicitly convert an input text to number with parseInt() if you want to make some calculation
    Therefore, if I understand what you want to do, for example define a javascript function like:
    function sumValues(){
         var temp1 = parseInt(document.getElementById("form1:cost1").value);
            if (isNaN(temp1)) return;
            var temp2 = parseInt(document.getElementById("form1:cost2").value);
            if (isNaN(temp2)) return;
            var temp3 = parseInt(document.getElementById("form1:cost3").value);
            if (isNaN(temp3)) return;
            document.getElementById("form1:totalCost").value = temp1+temp2+temp3;
    }then add the function call to each text field's onBlur event.
    Any time that a field will lost its focus, then the sum will be recalculated.
    Ciao,
    Fabio

  • How do you calculate difference in time (hours and minutes) between 2 two date/time fields?

    Have trouble creating formula using FormCalc that will calculate difference in time (hours and minutes) from a Start Date/Time field and End Date/Time field. 
    I am using to automatically calculate total time in hours and minutes only of an equipment outage based on a user entered start date and time and end date and time. 
    For example a user enters start date/time of an equipment outage as 14-Oct-12 08:12 AM and then enters an end date/time of the outage of 15-Oct-12 01:48 PM.  I need a return that automatically calculates total time in hours and minutes of the equipment outage.
    Thanks Chris

    Hi,
    In JavaScript you could do something like;
    var DateTimeRegex = /(\d\d\d\d)-(\d\d)-(\d\d)T(\d\d):(\d\d)/;
    var d1 = DateTimeRegex.exec(DateTimeField1.rawValue);
    if (d1 !== null)
        var fromDate = new Date(d1[1], d1[2]-1, d1[3], d1[4], d1[5]);
    var d2 = DateTimeRegex.exec(DateTimeField2.rawValue);
    if (d2 !== null)
        var toDate = new Date(d2[1], d2[2]-1, d2[3], d2[4], d2[5]);
    const millisecondsPerMinute = 1000 * 60;
    const millisecondsPerHour = millisecondsPerMinute * 60;
    const millisecondsPerDay = millisecondsPerHour * 24;
    var interval = toDate.getTime() - fromDate.getTime();
    var days = Math.floor(interval / millisecondsPerDay );
    interval = interval - (days * millisecondsPerDay );
    var hours = Math.floor(interval / millisecondsPerHour );
    interval = interval - (hours * millisecondsPerHour );
    var minutes = Math.floor(interval / millisecondsPerMinute );
    console.println(days + " days, " + hours + " hours, " + minutes + " minutes");
    This assumes that the values in DateTimeField1 and DateTimeField2 are valid, which means the rawValue will be in a format like 2009-03-15T18:15
    Regards
    Bruce

  • Calculating Round Trip Time from Non-Spatial Log Data

    Hi,
    I have a log table which holds the vehicles' "entrance" an "exit" dates (dd.mm.yyyy) to/from regions like that:
    VEHICLE_ID REGION IN_TIME OUT_TIME
    1001 CUST_A 01.01.2007 03.01.2007
    1001 CUST_B 05.01.2007 06.01.2007
    1002 CUST_C 04.01.2007 06.01.2007
    1001 BASE_A 08.01.2007 11.01.2007
    1002 CUST_D 11.01.2007 12.01.2007
    1001 CUST_A 15.01.2007 15.01.2007
    1001 CUST_F 18.01.2007 19.01.2007
    1001 CUST_A 19.01.2007 20.01.2007
    1002 CUST_E 16.01.2007 19.01.2007
    in fact, this table was created for reporting "average wait time on each customer" but then i calculated "round trip time" by assigning "base region" ( vehicle round trip starts from "base region" then comes back to here, etc.. ) and creating some rules like "if it passes from CUST_A and CUST_D, it is 'ROUND TRIP A'"..
    vehicles' voyage report is like that :
    TRIP STARTDATE ENDDATE
    TRIP_A 01.01.2007 13.01.2007
    UNDEFINED 13.01.2007 16.01.2007
    TRIP_B 16.01.2007 02.01.2007
    now, trips are more complicated and i want to use spatial mechanism. any advise?
    thanks,
    Cihan.

    Stephen Rodriguez wrote:You don't need to worry about the round trip between the AP and WLC.  Just make sure the phone to phone is goodHTH,
    Steve
    Please remember to rate useful posts, and mark questions as answered
    Thanks Steve,
    That makes Sense, as post authentication the phone to phone would be ofcourse less than 150ms when the traffic is locally switched.
    But I dont understand why the recommendation in the D&D guide "Roundtrip latency must not exceed 300 milliseconds  (ms) for data and 100 ms for voice and data between the access point  and the controller"
    I think it is applicable if the traffic is centrally switched?? or is there more to it, for roaming perhaps?
    Thanks
    Jino

  • How to set style !important using javascript??

    i can set an items width using js
    page_item.style.width = "400";
    how do i incorporate the "!important" flag in this statement?

    Hi Craig,
    Here's the only blurb I could find on this:
    http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/important.asp
    Notice the "Scripting: N/A" bit at the top.
    I use this site a lot - not because I'm particularly keen on MS/IE but because at the bottom of each entry you get confirmation of whether or not the setting/attribute/etc is standard or not and the pages are kept up to date.
    I have to say that this is only the second time I've come across someone trying to use this. The first time we just decided to leave it. I can see the importance of using it to stop someone overriding styling, but as I mentioned above, it is possible to create an entire script tag using javascript and, therefore, you can override it. Seems silly to me, but there you go!
    It would also be better, in my view, if they had used a better word for this setting - something like java's "final" - as, the first time I saw it I took it to mean "make more bolder" or "highlight it" or somesuch thing.
    Regards
    Andy

  • Javascript errors - Summing columns using Javascript

    Hi
    I have two regions on a page which are tabular forms that I have manually setup using APEX_ITEMS that I would like to use some JavaScript to pick up the values entered and sum that row up. I used Vikas example for tabular form calculation and it works perfectly for 1 region however if I have two regions it seems to give me the following error message in Firefox:
    g_table.rows[rownum].cells[getCellPos(g_table, html_GetElement("COL05"), "column")] has no properties
    Which I gather is because there are two columns on the page named COL05 and idea how I could get around this problem.
    I've put an example here: http://apex.oracle.com/pls/otn/f?p=35414:4

    Hello,
    It could be a bit difficult to auto sums a row, as
    usually rows include non-numeric columns. In any
    case you can always use a computation column in your
    select statement, or build a derived column in the
    report attributes tab. The problem is to update these
    columns in real-time, after a specific cell has been
    changed, and for that you need JavaScript.I realised this thats why I wanted to pickup the column and Row and then I would be able to replace the value in the specified column ie. total column using javascript for each row.
    I’m not sure I’m following you, but if you mean the
    current (active) rownum per displayed report page,
    you can use the #FIRST_ROW_FETCHED# and
    #LAST_ROW_FETCHED# substitution strings, in the
    footer of the report region.
    If you meant something else, please elaborate a bit
    more.Look at the revised demo app http://apex.oracle.com/pls/otn/f?p=35414:4 as you can see in this particular example each region returned 15 rows of data. I wondered if there was a way to pick up the last row returned so that I could use the same javascript function I use to calculate the rows I could update that specific column/total row. Example, in my demo app you will see a null row returned I would like to find this row then update the values.

  • Benchmark response times using BIA.

    Hi all
    I ran some queries using BIA and logged their processing times. Now, I want to compare these processing times with "benchmark response times using BIA" just to make sure that these queries are performing optimally. Could you pls provide pointers/links to the same.
    Regards
    Niranjana

    Following are the steps we do in order to get the benchmark data.
    Assume you have Indexed a cube in BIA.
    Without BIA:
    1. Goto transaction RSRT2-->Select the query and click "Execute + Debug"
    2. Under section "BIA Server"-->Check "Donot user BIA Index"
    3. Under section "Others"--> Check "Display statistics data" and "Do not user cache"
    4. Execute....After query complete click on Back button to see the statistics
    5. Sum up the "Duration column" and Subtotal by column "Event Text"
    6. We are interested on the item "datamanager" - note down the value
    With BIA:
    7. Goto transaction RSRT2-->Select the same query and click "Execute + Debug"
    8. Under section "BIA Server"-->DONOT Check "Donot user BIA Index"
    9. Under section "Others"--> Check "Display statistics data" and "Do not use cache"
    10. Execute....After query complete click on Back button to see the statistics
    11. Sum up the "Duration column" and Subtotal by column "Event Text"
    12. We are interested on the item "datamanager" - note down the value
    13. Click on "Aggregation layer"-->You should note the on the "aggregation" column the cube name should be suffixed with "$X" ( which indicates it uses BIA)
    14. Here "viewed at" is sum of other two front columns...
    In the above way you can benchmark between non-BIA vs BIA query performance. if you see even with BIA the performance is slow...then it could be bcoz of OLAP time...lot of calculation in the frontend etc...
    In general we see the performance of BIA is fantastic...except sometimes the numbers are not matching between BIA and non-BIA queries...where we need to rebuild the indexes.
    Hope it helps
    Gopi

  • Is array-referencing syntax allowable when using javascript?

    Is the array-referencing syntax notation allowable when using javascript as the calculation language?  My hierachy looks like the following:<br /><br />    . form1<br />        . Area[0]<br />            . numHeight<br />            . numWidth<br />            . numDepth<br />        . Area[1]<br />            . numHeight<br />            . numWidth<br />            . numDepth<br />        . <etc><br /><br />Without getting into too many details, my need is for fields in the "Area[2]" container to access fields in the "Area[0]" container.  E.g. "this.rawValue = form1.Area[0].numHeight.rawValue;".  With this syntax, I received the following report:<br /><br />Generating PDF Document...<br />Script failed (language is javascript; context is xfa[0].form[0].form1[0].Area[2].numHeight[0])<br />script=this.rawValue = form1.Area[0].numHeight.rawValue;<br />   Error: Invalid property get operation; subform doesn't have property '0'<br />PDF generated successfully.<br /><br />1 warnings/errors reported.

    You can use resolveNode on basically anything, so yes you can access the record nodes within the xml data source. The function assist does not have anything when you do record but the nodes are created under record to match the nodes in your XML data source.
    I am not sure of what you are trying to do with your example - if you want to return a list of nodes match some expression, then there is another version of resolveNode method which does just that called resolveNodes()
    For example if you want to find all conditions_item nodes you would have:
    xfa.resolveNodes("xfa.record.conditions.conditions_item[*]")
    This returns a collection of Nodes and you can then use .length to see how many are returned. Make sure conditions is a child node of the root element. I am not sure, I think you do not specify the root node when accessing the record nodes.

Maybe you are looking for

  • Installing OMS 10.2.0.5 on server with Oracle 11.1.0.7

    IBM w/AIX 6.1 I am wondering if there would be any expected issues to download and install the latest version of OMS (Oracle Management Server for Grid Control), 10.2.0.5 onto a server that already has Oracle 11.1.0.7 running on it. I intend to use t

  • Creation of Contact Person for a vendor in SUS, MM SUS scenario

    Hi All,   We are working on EBP for bidding with SRM 5.0 and ECC6.0 as the backend. When we do BBPGETVD for the vendor root we have to create a contact person for the vendor to logon. Our clients requirement is that all the data in the R/3 has to com

  • Purchase order user exit

    Hello Firends, I am unable to find suitable user exit. My requirement is whenever a new PO is created from Preq,the system should check a Z table where certain material/Sloc combinations are allowed. If combination is not maintained in z table, error

  • Java update not working

    Java is not working. Already tried downloading Java 7 update. Java (Oracle) cannot verify that I have Java installed. Java does not show up in system prefrences even after download success screen, and shutting down all apps and computer. I checked co

  • What is the significance of jserv.properties, jserv.conf & zone.properties?

    EOM