ResultSet embedded loops

Hello

I have a ResultSet in Idoc Script that contains the reports in a given year. I have to loop through this result set to display all of them. They usually appear in groups (example: 3 for 1 Jan, 2015, 5 reports for Jan. 15, 2015, etc.).

What I would also like to get is the number of reports for a given date. In order to accomplish, I want to loop through the result set again whenever a new date is met.

Here's what I do now:

<!-$innerResultSet = "Search results"->

<!-$previousDate = ""--> ".

<! - $loop SearchResults - >

<!-$currentDate = formatDateWithPattern (release date, "MM/dd/yy")->

<!-not currentDate as previousDate $if->

<! - $reportCount = 0 - >

<!-$rsFirst (innerResultSet)->

<!-$loopwhile getValue (innerResultSet, "#isRowPresent") - >

<!-$if formatDateWithPattern (release date, "MM/dd/yy") as currentDate->

<! - $reportCount = reportCount + 1 - >

    <!-$endif->

<!-$rsNext (innerResultSet)->

<!-$endloop->


...


<!-$endif->


...


<! - $previousDate = currentDate - >

<!-$endloop->


It seems that after the first iteration of the inner loop, that progress on the outer loop is lost (it only iterates on the outer loop).


Thank you very much in advance for any help. I hope that the above code allows, if I need to elaborate please let me know.



Thank you!

Josh

You can... hope you follow the logic.

(create a resultset placeholder for records on the same day and display when the date is changed)

( documents)

( documents)

Tags: Fusion Middleware

Similar Questions

  • Insert the YouTube embedded video along with loop &amp; autoplay

    How can I Add-in code to remove the youtube video the control, name of the video and the room button?

    YouTube var = $("< iframe/>");

    SYM. $ ("Video") .append (youtube);

    YouTube.attr ('type', ' text/html');

    YouTube.attr('width','500');

    YouTube.attr('height','300');

    youtube.attr ('src','https://www.youtube.com/embed/Kurh2Ave_tI');

    YouTube.attr('frameborder','1');

    YouTube.attr('allowfullscreen','0');

    while adding

    YouTube.attr('autoplay','1');

    YouTube.attr('loop','1');

    does not...

    Found!

    src must be: youtube.attr ('src','https://www.youtube.com/embed/GWhu_sIXhrY?rel=0&autoplay=1;controls=0;showinfo=0;loop=1');

    But now the loop doesn't work...

  • A symbol embedded in infinite loop

    I have a symbol on the main stage

    I want this symbol to turn 360 degrees over x period of time

    When it reaches a full rotation, he repeated to infinity and independent of the chronology of the main stage

    I added a reading on the last frame of the chronology of the coast to return to the 1st section of the timeline of the symbol (creating a loop)

    Problem with this approach is that this main scenario has a duration as well. This symbol fine loops until the main script is coming to an end...

    What Miss me?

    Thank you.

    s

    You must use a timeline Action trigger sym.play(1000) (0); on the last picture IN this symbol and not a reading in the main timeline.

    Hope it makes sense

    Darrell

  • getDefinitionByName for embedded swf symbol not recognized as image.source loop

    Hello

    I do this in Flex, but the code is pure actionscript, so if this isn't the right forum please let me know :)

    I have incorporated symbols swf like this:

    [Embed(source="mySwf.swf", symbol="Symbol0")]
    [Bindable]
    private var myVar0:Class;
    [Embed(source="mySwf.swf", symbol="Symbol1")]
    [Bindable]
    private var myVar1:Class;
    [Embed(source="mySwf.swf", symbol="Symbol2")]
    [Bindable]
    
    private var myVar2:Class;
    

    I want to myVar0, 1 and 2, the source for the image of the objects in a loop. Like this:

    for (i=0;i<2;i++) {                
    var img:Image = new Image;
    var name:String = "myVar" + i;
    var imgSource:Object = getDefinitionByName(name);
    img.source = imgSource;
    }
    

    .. .but this code throws an exception that "myVar0 is not defined. However this code:

    var img:Image = new Image;
    img.source = myVar0;
    

    .. .works great.

    Try this instead of 'myVar' + i

    This ["myVar" + i]

  • How to increase code efficiency in a while loop (using PXI5105 for sampling outside signal digitalizer)

    Theoretically, we want the PXI-5105 (digitizer) have 302 record with each record has a 1260 sample (the save operation is inside a while loop) in approximately 30ms, however we have found that for each period (30ms), the PXI5105 only perform about 10 records. It is so wired. I wonder if the operations inside the while loop consume more time (for example 3MS), so that he cannot have 302 records even the PXI-5105 have 60 M/s speed of sampling. Is it true, you can find my labview code and if possible can you give me some suggestion in the most short time of operation of the loop.

    Please find attached labview code.

    Hi g_l_g_s,

    The digitizer PXI-5105 acquires data at the speed that you specify and stores the data in its memory embedded (up to 512 MB). The data is then sent to your computer when the Multi Fetch Cluster.vi is called. In VI that you posted, you are only fetch record during each while the loop iteration. If you want to retrieve 302 records you will need to specify 302 files in the horizontal Timing.vi to configure. For more information about scanners, you might find the DevZone, hereuseful.

    To determine the amount of time it takes for each while the loop iteration, you can consider using the structure of code in the example comparison community calendar, which is located here.

  • Variables in SubVIs reset on each call to MCB2400 in LV2009 ARM embedded

    Hello

    I have a problem with variables in SubVIs. If I put them on my MCB2400 (ARM) they reset at each call. So it s impossible to build a counter in a Subvi. If I run the same VI on my PC, everything works fine. Just on the ARM it doesn´t work more.

    In my example (see attachment) to build two counters. A hat of the Variable to increment in the mainVI and the other in the Sub - VI. And that, in the mainVI the other not work (on the MCB2400). But if I run the same on the PC, both work without any problem.

    Anyone has an idea where is the mistake of m or is this a bug in the LV2009 ARM embedded?

    Bye & thanks

    Amin

    This isn't a bug.
    When it comes to read the local variable program gets a value of the indicator that is in your PC, not on the target. Control/indicators are not updated continuously, but with the specified period in "Configure the target" of dialogue. In your application you do not give a chance for the indicator update until the next iteration.
    However, it is not recommended to use local variables. You can use something like this:

    As an alternative, you can use 1 iteration loops store this local in a shift register.

  • Notifier / while loop question

    I have a question that has probably a simple answer, but which has been eluding me for a few days.  I have two loops in parallel: one that sends commands to a controller embedded on the series and one who reads the data returned by the controller.  I want the loop 'send' and the 'read' loop to run at their own rates, but I want to only read data in the loop 'reading' for write in an excel file after sending the command "GO" until the "Stop" command is sent.

    I tried to use tax filers of the loop 'send' in the loop 'read' to tell the loop "read" when at the exit of the excel file, but only slowing the loop 'read' to run whenever he gets the notifier.  I want the 'read' to run all the time, but orders for the period of time between "GO" and "Stop" only to write in the file excel duing.  Does anyone have a better suggestion?

    PRCalDude wrote:

    I tried to use tax filers of the loop 'send' in the loop 'read' to tell the loop "read" when at the exit of the excel file, but only slowing the loop 'read' to run whenever he gets the notifier. I want the 'read' to run all the time, but orders for the period of time between "GO" and "Stop" only to write in the file excel duing. Does anyone have a better suggestion?

    You are on the right track, but the function wait on Notification in your 'read' loop can give a zero ms timeout value and it will keep ticking along without waiting for a new notification. You can use the 'timed out?"out to decide to use the last value (that you store in a shift register, output of notification is the default value for the data type when the wait times out) or the last notification. Like this:

    And, although I prefer never to see again a local Variable, I shout Thoric downwards. He meant well

  • ARM Embedded LV: Error: L6218E

    I have a simple program I wrote initially to operate on the cRIO. I'm now the porter to the ARM Keil MCB2300. I created a new project and configure the MCB2300 sucessfully (run several demos of specific LV ARM). I have added the original vi to my library project and deleted all references to the cRIO material. So basically I have a 'stand-alone' vi which may as well work on my host PC (i.e. without reference to any material, just a few loops and before panel buttons/lights)

    When I deploy it in my ARM Board I get the following errors:

    [11: 23:43] status: error
    which connects...
    .\Obj\LabVIEW.axf: error: L6218E: Undefined symbol FreeEventNodeData (called state_machine.o).
    .\Obj\LabVIEW.axf: error: L6218E: Undefined symbol FreeLVEventQ (called state_machine.o).
    .\Obj\LabVIEW.axf: error: L6218E: Undefined symbol LVFrontPanelUnlock (called state_machine.o).
    .\Obj\LabVIEW.axf: error: L6218E: Undefined symbol LVGetNextEvent (called state_machine.o).
    .\Obj\LabVIEW.axf: error: L6218E: Undefined symbol LVUpdateScreen (called state_machine.o).
    .\Obj\LabVIEW.axf: error: L6218E: Undefined symbol RemoveFPEventQ (called state_machine.o).
    .\Obj\LabVIEW.axf: not enough information to generate a file with your COMMENTS.
    .\Obj\LabVIEW.axf: not enough information for image list symbols.
    .\Obj\LabVIEW.axf: not enough information for the plan of the image in the list.
    .\Obj\LabVIEW.axf: finished: 3 information, 0 warning and error messages 6.
    Target not created

    Status: Build failure.

    The name of my vi is 'state_machine' I have no sous-de VI. I know that there are some features limited blocks of LV for the ARMS. I use:

    -While loops

    -structure of the event

    -case of structure

    -arithmetic compoud

    -local variables

    I can't imagine that these would cause the build fails. I don't want to have to re - write my full arm program, if I can avoid it.

    Thank you

    Jason

    Yes, it's the structure of the event. Looks like I'm not the first person to have this problem. The structure of the event is a pretty complicated operation. I guess that LV Embedded for ARM does not support the structure of the event. All these interruptions C nice-code conversion is complicated.

    To resolve this problem, I just rewrote my structure of the parallel event multiple while loops. Inside of each loop is a structure of business T/F. The case is then triggered by what triggered my event.

    Thus, for example, if I had a structure of event with 5 tests, I have 5 simultaneous while loops, each with a structure of T/F case inside of them. Each case structure is then triggered by the Boolean that initially triggered the event.

    Sucks, but...

  • Problem with the acquisition of data on XP Embedded

    Hello

    I'm using LabView 8.5, 8.7 DAQmx. My application is collection of data of NI USB-6009 14bits. I tried to create applications for tablet PC with installed Windows Xp Embedded. I created the installer on tablet with installed Windows 2000.  I solved all the problems that occurs during installation. First version of the program have assistant DAQ in a main VI who collect and process the data. It worked properly on Xp Embedded. Second version was split into two of the Subvi. One is data collection and secondary processing. Each VI have own while loop. Both Subvi is placed in the large loop and they start at the same time. I am writing all the data to global variables. On PC with the windows application created 2000 worked properly. Error occurs when I moved it to Xp embedded. VI, which is the collection of data, the error see the 200361 code and text:

    DAQmx reading (analog 1-d Wfm NChan NSamp) .vi:2
    The task name: _unnamedTask<0>

    I know its something with the sampling and the clock, but I do not see where is the problem. In the main loop and two Subvi I 'wait until the next ms Multiple"block with a value of 200. DAQ Assistant were set as follows:

    Price: 1000

    Number of samples: 1000

    Timeout (s): 10

    Can you tell which can cause this error?

    If you would like more information please write here.

    Problem solved. There was connection between PC and USB-6009. Program works when I connect the USB-6009 housing directly to the PC. Previous connection was through usb hub.

    Thanks anyway.

  • An embedded program can wait for little 13/14/15 of MCS?

    Hello. I want to use a program embarked on a map of NI7344 to wait until it is marked to go ahead of the host machine.

    The function 'flex_wait_on_event' would seem the only logical possibility but documentation implies that bits 8 to 15 MustON and MustOff masks are ignored.

    Is there another function, I don't know?  Without doubt, there is a way to do it from the host can set the MCS registry with "flex_set_status_momo".

    Thanks in advance SDG

    SDG,

    have you already discovered, flex_wait_on_event does not work for you. There are several alternatives to interrupt the execution of a program on board. E. g., you can write to a variable on the host. The program on Board could read this value and use a comparison operation to satisfy the conditional jump surgery ocndition. Then go back to a label before the comparison operation and jump out of this loop, when the host has sent the command to continue (= modified the value of the variable on board).

    Could you please explain what you are trying to accomplish with your program on board? In general there are only very few applications that really require embedded programs. Programs on board only work not significantly faster host programs and they also don't run with better determinism, as they are performed in a low-priority task on the 68331 to the Board of Directors.

    A typical usecase for an integrated program prevents a gesture, if forces become too high by monitoring an entry, but they ar analog rarly used to complete implementation move sequences, as there is almost no real advantage for tasks like this.

    Kind regards

    Jochen

  • REGEXP_REPLACE how to loop through the occurrences of a text string variables

    Hello

    I use a 11.g Oracle procedure. I found an example of REGEXP_REPLACE with only two arguments (input and model) and created a procedure based on this example. The Replace function works, but not optimally. I try to use REGEXP_REPLACE to loop on a variable number of occurrences of a text string in a local variable of CLOB.  The string occurs after the text base64 (base64 comma) and before the text "/ > (double quote space oblique superior - only)."  I can do replace it work for a single occurrence, but I can't do it properly in a loop.  These embedded strings include images that were inserted in a rich Apex text field.  This is a rich text field is assigned to the CLOB p_html.

    Declare p_html clob;
      l_image_clob clob;
      l_image_count number;
    Begin
    p_html := '<p>Some header text base64,one start here and then this is the end one" /></p><p>Some header text base64,two start here and then this is the end two" /></p>';
    l_image_count := REGEXP_COUNT(p_html, 'base64', 1, 'i');
    If l_image_count > 0 Then
      For i In 1..l_image_count Loop
      l_image_clob := REGEXP_REPLACE(p_html, '(.*base64,)|(" />.*)');
      dbms_output.put_line(l_image_clob);
      -- code to process each occurrence individually.
      End Loop;
    End If;
    End;

    What I would like to see results of the data are:

    tenure here and that's the end

    two beginning here and that's the end of two

    The results I get are:

    two beginning here and that's the end of two

    two beginning here and that's the end of two

    Thanks a lot for watching this.

    Hello

    From Oracle 11.1, REGEXP_SUBSTR is better than REGEXP_REPLACE for this sort of thing.

    What produces the output you asked for:

    Declare

    CLOB p_html;

    CLOB l_image_clob;

    number of l_image_count;

    Begin

    p_html: = '

    ' Some header text base64, start here and then it's the end "/ >

    Some header text base64, two start here and then it's the end of two"/ >

    ';

    l_image_count: = REGEXP_COUNT (p_html, 'base64', 1, 'i');

    If l_image_count > 0 Then

    For i In 1... l_image_count loop

    l_image_clob: = REGEXP_SUBSTR (p_html )

    , "base64,(.*?)" / > "

    1

    , I - letter i (loop variable), not number 1

    , 'i'

    1

    );

    dbms_output.put_line (l_image_clob);

    -code to treat each case individually.

    End loop;

    End If;

    End;

    /

    The 4th argument to REGEXP_SUBSTR specifies where desired appearance (starting with 1).

    The 6th argument is a backreference. 1 means you want to return all that match the expression starting with the 1st '('. gauche)

  • Embeded html slows down the entire site

    Hello

    I'm building a gallery video cutom for self-hosted videocontent. For this purpose I use a widget of composition, fill the trigger with some animated text and circles, incorporate an html5 player and finally put it in the area target.

    General, it works fine, but adding more than five instances/target html embedet leads to horrible long time to load. (this may take some minutes!)

    Here's an example where I simply copy the code for the html5 player: I think it is best to start watching this, so that you get an impression how the site should work. (you must scroll down to the video Viewer. IM using a scrolling wink widget, but it does not work correctly until the site is fully charged)

    http://www.jehleproduktion.de/hans3

    Here's the site with embeded html code.

    http://www.jehleproduktion.de/hans2

    Here's the code for html5 embedded player:

    < video id = "MY_VIDEO_1" class = "video-js VJ-skin by default" - speed control

    " preload ="auto"width ="960"height ="540"poster = ' ' http://www.jehleproduktion.de/filme/Weak.jpg '

    data-setup = "{}" >

    " < source src = ' http://www.jehleproduktion.de/Filme/weak.MP4 "type =" video/mp4"> "

    " < source src = ' http://www.jehleproduktion.de/Filme/weak.WEBM "type =" video/webm"> "

    " < class p 'vjs-No.-js' = > to view this video please enable JavaScript and upgrade to a web browser that < a href =" http://VideoJS.com/HTML5-video-support/ "target ="_blank"> supports HTML5 video < /a > < /p > "

    < / video >

    What can I do?

    THX

    Johannes

    Adjust the preload = 'none' rather than 'auto '.

    Auto tells the browser to immediately begin to download the full video. If do you and have a dozen videos on the ready page auto that will try your browser to download all, regardless of whether or not you look at one of them.

    If you have several videos that are more short loops, you're insanely better to use a service such as Vimeo or YouTube to host your video. These services provide a lot of value to match the capabilities of the site visitor network connection performance device and that you do not get when self-hosting.

  • Video loop and the auto play via HTML

    Hello.

    I try to add an automatic start looping video of my folio with HTML code, because the DPS video options still don't allow video loop.

    I tried the following:

    "" < video src = 'movie.mp4 ' AutoPlay loop controls > < / video >

    Video playback, but unfortunately, the Autorun feature does not work in the viewer of content for iPad.


    Because I know that in a HTML video autoplay has been successfully used in the past by Bob Bringhurst in This example , I then tried the old < embed > tag used by Bob y.

    < EMBED SRC = "movie.mp4" AUTOSTART = TRUE LOOP = TRUE > "

    But here too: no autoplay.

    Something changed here? Any ideas?

    By the way: I test first on the iPad, but it also works well on Windows.

    Kind regards

    Toni

    AutoPlay does not work in the video embedded in HTML on iOS.

    Neil

  • dDocName in the resultset object gets a higher than the local variable preference: unable to set dDocName by linking using Idoc Script

    Hello

    I have the following code built using idocScript

    < $dDocName = $NomVariable >

    < $executeService ("DOC_INFO_BY_NAME") $ >

    Note: NomDeLaVariable value contentID for that 'DOC_INFO_BY_NAME' has to be executed.

    When I run this, I see that DOC_INFO_BY_NAME is getting executed for an ID of previous content that he was 'dDocName '. In other words, after allocation

    < $dDocName = $NomVariable >

    Does not take effect.

    I think that the value is not updated in the binder. How can I fix it.

    It is bit urgent, any help would be greatly appreciated.

    Thank you and best regards,

    Steven K.

    rsBlogPostings (copy of results of research) already has dDocName column and when you call executeService in a loop, resultset a preference on the local data. (I faced something similar and had no luck with #local.dDocName)

    (1) you can renmae the dDocname column in the rsBlogPostings using rsRenameField

    (2) if it does not, create your own loop as below

    <$iCountEnd =="" rsnumrows("rsblogpostings"),="" icountstart="1$">

    <$exec rsfirst("rsblogpostings")$="">

    <$loopwhile lcountstart=""><= lcountend$="">

    <$postAuthorImageEntry = ="" ssincludexml(rsblogpostings.ddocname,="" "blog_entry/authorimage/node()")$="">

    ...

    ...

    <$dDocName=authorContentID$>

    <$executeService("DOC_INFO_BY_NAME")$>

    <$exec rsnext("rsblogpostings")$="">

    <$lCountStart =="" lcountstart="" +="" 1$="">

    <$endloop$>

  • Can I create a video background loop of muse?

    I made a legacy .mov file is about 8 seconds in length and about 1 MB. My question is, is it possible to import and to incorporate this video into a page of muse? I can make the file out as, and .mp4. PNG. JPEG sequence, which never muse prefer. My question is how can I take to embed this video muse itself and set up a loop in the bottom of my page?

    Thanks in advance!

    t

    In this case, you can use the code for the embedded video player and add to your site with the 'loop ': attribute

    http://StackOverflow.com/questions/10377453/play-infinitely-looping-video-on-load-in-HTML5

    https://forums.Adobe.com/message/6137964#6137964#6137964

    Thank you

    Sanjit

Maybe you are looking for