Modify to-call sequence name in pre-step?

Hi, I have the following problem: I have customized the "Call Sequence" step type, creating a custom step type that calls a sequence dynamically. The name of the sequence to call is represented by a step variable, which is edited in an edit substep.
This works fine.
Now I wanted to modify that step variable in a pre-step substep and found out, that obviously the step module is already "preloaded" (the to-call sequence name is evaluated) before the pre-step is executed. This results in a runtime error, something like "sequence not found".
What can I do?
Best regards,
Martin

This
DECLARE
  nSeq number;
BEGIN
  select loc_seq.nextval
  into nSeq
  from dual;
  loc_change(nSeq, :DATA_BLOCK.VARIABLE);
END;should do the job...
you can also put the fetching of the sequence into the database procedure. if you have DB Version 11g, you can reference the sequence simply by this:
nSeq := loc_seq.nextval;in prior 11g you have to fetch it using select into from dual.
regards

Similar Messages

  • Getting Sequence object from pre-step substep of Sequence Call based step type

    How to obtain reference to Sequence object from within pre-step substep of Sequence Call based custom step type?
    Given: new custom step type which based on NI Sequence Call step type. There is Pre-Step substep exist for this step type.
    How to get reference to Sequence object representing Sequence which will run?
    Although there is possible to examine SequenceAdapter and SequenceCallModule properties, it seems redundant since module (Sequence) is already loaded by TestStand ("NI TestStand Reference Manual. Table 3-4. Order of Actions that a Step Performs"   Action #6, while my code is running as Action #13).
    Thanks.
    Misha

    Could you explain what you want to do ?
    Why do you want to get the sequence object within a pre-step substep ?
    I give you some informations but I don't know if it's the better way to do what you want (because I don't know what you want to do with the sequence object).
    If the substep uses the ActiveX adapter :
    You can get the sequence object but you should save the object reference in a StationGlobals variable.
    And you should release the object reference within your sequence when you don't need it any more.
    If the substep uses another module adapter: 
    Get the step module, then the sequence name (module property).
    Then get the sequence object by the sequence name from the sequence file.
    Here are the paths to use for both methods :
    Sequence Name property path : Step.Module.SeqName
    Sequence Object path : RunState.SequenceFile.GetSequenceByName (seqname)

  • Post Actions: Called Sequence not reporting

    I am using TestStand 2.0. I have a step (that is forced to fail) that has the "Post Actions" set to "On Fail:" "Call Sequence". Unfortunately the steps in the called sequence are not showing up in the test report. I can verify that the called sequence is running by stepping through the steps. Also if I call the called sequence from a "SequenceCall" step then its steps do show up in the report. How do I get the steps of a sequence that is called via "'Post Actions' set to 'On Fail:' 'Call Sequence'" to show up in the test report?

    Kevin -
    See attached sequences with appropriate changes to include PostAction for the TestStand 2.0 sequences. You should be able to diff these with the original 2.0 sequences to see the changes.
    Scott Richardson (NI)
    Scott Richardson
    National Instruments
    Attachments:
    reportgen_txt.seq ‏95 KB
    reportgen_html.seq ‏110 KB

  • Know steps names of called sequence file using sequence call step type in TestStand

    Hi,
        I have a problem in accessing step names in called sequence file using "Sequence call"step type in TestStand 4.0.
    I would list out all step names of called sequence file. Is it possible to do through C#.NET? If, yes, Please explain to me in detail with possible example.
    Thank you,
    regards
    RKK

    Hey RKK,
    I want to first set your expectations for the forums.  This is not a place for people to review and rewrite your code for you; this is a place for specific and general questions.  I am not saying your question in this thread is inappropriate, because it is a good questions.  We should just not post code and ask others to fix it here.  If you are looking for this type of service we have alliance members that can help you write your TestStand Operator Interface (www.ni.com/alliance).
    As for you question about getting the sequence names for a sequence file that is not the currently running sequence file, you will need to open a reference to that sequence files and then use the API calls that I mentioned in my previous posts.  You can use the Enigine.GetSequenceFileEx function to open a reference to sequence file, and you will need to close the reference with the Engine.ReleaseSequenceFile function when you are done using it.  After you have a reference to this external Sequence File, you can use the example dll and sequence I previously sent you.  I also attach a new sequence file (SeqFile2.seq) plus an updated GetNames.seq to illustrate how to use the above mentioned functions.  I hope this helps.  Have a great day!
    Best Regards,
    Software Engineer
    Jett R
    Attachments:
    GetNamesOfSequencesInFile.zip ‏52 KB

  • Get Name of Future Step in TestStand Sequence

    Hello All,
      Working on a sequence of numeric limit tests, and need to set the limits programatically, based on an imported configuration file.  I use a simple action call to set the limits with a code module (TestStand Set Property Value function), but in order to make the code module reusable, I need to pass in the step name for the test step it applies to, each time I call it.  The problem is that the step that each limit applies to is several steps later in the sequence.  I know that I can get the name of the next step (RunState.NextStep.Name) but need to know if it is possible to get names of later steps as well.  I'm guessing it may have something to do with the "NextStepIndex" function, but can't seem to get the context right.  Please advise.  Thanks in advance.
    GSinMN

    Figured it out myself.
    Locals."Variable To Set" = RunState.Sequence.GetStep((RunState.Sequence.GetStepIndex(Step.Name, StepGroup_Main))+"Number of steps in Future",StepGroup_Main).Name
    Where "variable to set" is the name of the variable you are assigning the step name to and "number of steps in future" is an integer that represents the index with respect to the current step (i.e. 2 would mean the second step after the current step).
    GSinMN

  • Modify the Edit Sequence Call dialog

    In TestStand v3.5, and/or v4.x, is it possible to modify the Edit Sequence Call dialog that comes up when using the SequenceCall Step type? If so, where is the source for this?
    What we want to do is add help information to the Edit Sequence Call dialog by either adding a Help button and/or adding the Parameter comments from the selected sequence prototype, along with the Sequence comments, so that we can provide guidance on the sequence usage to the developer at edit time. I've looked everywhere I can think of in the Help and the folders in the TestStand (v3.5) directory (StepTypes).
    Any help here would be greatly appreciated.
    -Jack

    Hi Jack,
    Thats a really good question !
    In the new TS versions there are some "bulid-in" StepTypes. For example if you take a look at "Wait" in TS4.0 there is a buttton "Configure Wait" . In the new TS 4.1
    the hole configure stuff is implemeted in the tab controls view like in the sequence adapter and the code modules. In the old TS 2.0 the sources where available. But in the new versions of TS 4.x
    it looks different for me. Just take a look callexec. The shipped TS 4.0 uir looks completly different than in editor under the tab control.
    Last year did a user step type.  And to modify my stuff i had to click this stuip "Edit" button.  I would like to have the same feature than the "build-In" one. But one change !!
    After some reverse hacking of some TS ini and xml files. TS editor was always crashing with a .net exception. So in my mind all the "build-in" ones are .net components
    like the hole Editor.
    So i am very courius what our NI-Guys here are saying to your question.
    Greetings and waiting for some "blue" anwsers.
    Juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

  • How to get sequence name and pass/fail status?

    HI,
    I need your assistance in order to achieve the following goal:
    I have about 10 sub-sequence steps in the main sequence.
    For those steps only, I'd like to print out in a window the name of the sequence and the resutl.
    I meet dificulties since i have the sub-seq result, only after it ends.  It means that i can print its status only in the following step.
    is there a way around it?
    I wish to be able to write all this information in the clean up of the sub-seq step.
    Thanks
    Rafi

    Hi Rafi,
    You will not be able to print the result of a subsequence call in the same step as the subsequence call, because both post-step substeps and post-expressions are run before the status is evaluated.  As you mentioned, you can do this in the following step, or you can use the SequenceFilePostStep callback to specify some customized behavior to follow your sequence call steps.  This callback will run after every step, so you would have to put some extra logic into this callback if you are using multiple step types.
    So, are you trying to print the result of each subsequence call separately?  How do you intend to display the status?  Let me know if you have any other questions about how to implement this.
    Regards,
    Marty H.
    National Instruments

  • Dynamically get parameters names of a Step Type

    Hello everybody,
    I am coding the ProcessModelPreStep in order to have access to each step of the running sequence, before it has been execute. With the following expression I access to the type name of the step:
    Locals.Type_Name = RunState.Caller.Step.StepType
    But I can't find the expression to get access to all the parameter names of the step type.
    Does somebody know such an expression to do that ?
    Thanks you !

    Ok, the parameters are connected to the code modules, hence to the module adapter.
    The data involved for the adapter is stored in a hidden container called "TS" within the step. In order to see this container, you have to check the "Show hidden properties" option in the preferences of your Station Options. The TS container includes a variable called "SData".
    Depending on the adapter, within the SData container, you can find your parameters.
    hope this helps,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Locals.resultlist elements, calling sequence information?

    Hi,
    When post-processing locals.resultlist, each element contains step data.  I don't see a way to get at what the step name of the calling sequence was.  I see a stepID, is there a function to input this to, that would return what the parent sequence is of the given step result?  Or another way?  Seems like there must be a way because the html report has a tiered heirarchy structure, and that is post-processed.  Any info appreciated, thanks
    David J.

    David,
    You can see all of the results right before MainSequence returns to the process model. So basically the last step of MainSequence in the Cleanup Step Group.  Or you can step back into the model and see it in Locals.ResultList[0].  This will not have anything in it until MainSequence has returned.  In fact, element 0 is the resultlist from MainSequence.
    Hope this helps,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Modifying reportgen_txt.seq Sequence Filepath

    I am attempting to modify the reportgen_txt.seq file to print to a receipt printer, which requires many of the printed lines to be shortened.  I have placed a copy of the reportgen_txt.seq and the SequentialModel.seq in my ...\Components\User\Models\TestStandModels folder to make the required modifications.  My problem is that, while I am able to change the header information, I am not able to change the results information.  I would like to delete the subseqence filepath information from the report.
    This in what I have tried.  In my User reportgen_txt.seq file AddSequenceResultToReport subseqence, had attempted to delete the [Add Sequence File Path] step.   This has no effect on the  displayed report.  I have attempted to step through the sequence, but don't see where or how the sequence infromation gets added to the report.  I only see the header and footer being added.
    Am I missing something??

    Hi,
    In reportgen_txt.seq the sequence file path is added to the report string in the sequence AddSequenceResultToReport at the step in the main called "Add Sequence File Path".
    Hope this helps
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How to find which sequence name is used in a table - Redux

    (The other thread was locked before I could respond, so I'm posting this here as a non-question.)
    Beginning with 12c, there is now a way to associate a sequence with a table.  It's a new feature called an Identity column.
    create table t
    (some_id number generated as identity --< creates a system generated sequence
    ,name varchar2(30)
    insert into t (name) values ('Smith');
    insert into t (name) values ('Jones');
    insert into t (name) values ('Anderson');
    commit;
    select * from t;
            SOME_ID NAME
                  1 Smith
                  2 Jones
                  3 Anderson
    select table_name, column_name, data_default from user_tab_columns where table_name = 'T' and column_name = 'SOME_ID';
    TABLE_NAME COLUMN_NAME DATA_DEFAULT
    T          SOME_ID     "C##SELSE"."ISEQ$$_91955".nextval
    select * from user_sequences;
    SEQUENCE_NAME
    ISEQ$$_91955

    There's nothing stopping you from using the generated sequence for something else, however you can NOT override it when doing an insert (as long as you've specified ALWAYS which is the default).
    SQL> create table t
      2  (some_id number generated as identity
      3  ,name varchar2(30)
      4  );
    Table created.
    SQL> select * from user_sequences;
    SEQUENCE_NAME
    ISEQ$$_91970
    SQL> select ISEQ$$_91970.nextval from dual;
                 NEXTVAL
                       1
    SQL> select ISEQ$$_91970.nextval from dual;
                 NEXTVAL
                       2
    SQL> insert into t values (99,'smith');
    insert into t values (99,'smith')
    ERROR at line 1:
    ORA-32795: cannot insert into a generated always identity column

  • SSRS in SharePoint2013:Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModule

    SSRS in SharePoint2013: There is a report in SharePoint and it contains a sub-report and the sub-report hyperlink. When I click the hyperlink to go to the sub-report, after >10min, I click the "Back to.." button
    on IE to go to the previous page. Then it catch the error as:
    Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
    Details: Error parsing near '
    <!DOCTYPE html PUB'.
    I am using SQL2012 and Sharpoint2013.

    Hi Alisa,
    Thanks for your reply, I changed the web.config, but the issue did not resolved. 
    I add the codes in two parts of the web.config as below, you can find in by keywords “aspnet:MaxHttpCollectionKeys”
    This issue can not reproduce on Chrome only occur on IE.
    So, do you have some details suggestion for me to fix it?
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <configuration>
    <configSections>
    <sectionGroup name="SharePoint">
    </sectionGroup>
    <location path="_layouts/15/TA_AppMonitoringDetails.aspx">
    <appSettings>
    <add key="ChartImageHandler" value="storage=memory;timeout=20" />
    </appSettings>
    </location>
    <location path="_layouts/15/ReportServer/RSViewerPage.aspx">
    <appSettings>
    <add key="aspnet:MaxHttpCollectionKeys" value="10000" />
    </appSettings>
    </location>
    <system.net>
    <defaultProxy />
    </system.net>
    <appSettings>
    <add key="aspnet:MaxHttpCollectionKeys" value="10000" />
    <add key="aspnet:RestrictXmlControls" value="true" />
    <add key="FeedCacheTime" value="300" />
    <add key="FeedPageUrl" value="/_layouts/15/feed.aspx?" />
    <add key="FeedXsl1" value="/Style Library/Xsl Style Sheets/Rss.xsl" />
    <add key="ReportViewerMessages" value="Microsoft.SharePoint.Portal.Analytics.UI.ReportViewerMessages, Microsoft.SharePoint.Portal, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
    </appSettings>

  • Sequence File Hierarchy Sequence Name Resize

    Hello,
    Is there a way to resize the sequence name in the Sequence File Hierarchy Call Graph? I have a need to make the sequence names long and it does not fit in the file hierarchy.
    Thanks.

    There is not a way.  The objects that hold the sequence names are a default size.  The best way to be able to view the whole name is just to scroll over top of the object.
    Jesse S.
    Applications Engineer
    National Instruments

  • Call store procedure from pre-mapping

    Hi,
    I am currently working on OWB client version 10.2.0.4.36.My requirement is to call store procdure from pre-mapping tranformation.How to achieve this & how to pass parameters to the store procedure?
    Please let me know.
    Thanks,
    Siva

    Thanks for the quick reply.I am doing the same way as suggested.But am getting warning,when I validate it and is expecting to synchronize it.What warning you got exactly and i think you have not deployed the procedure.
    The reason for this procedure is to select max value from one of the table and then drop & recreate the sequence with max value + 1.
    Inside the procedure,am doing this all dynamically.which means am passing Columnname,tablename & sequencename to this procedure.
    Do you think is this good approach or any other advisable approach?Can you explain you requirement then only we can suggest the better way .
    Cheers
    Nawneet

  • How to get sequence name in run time.

    hi
    I have several sub sequence called in the main sequence in TestStand. Those sub sequences have different sequence names, which i wanted to display by string indicator on the Labview Operator Interface. Is there a simple way to show the current calling sub sequence name during run time(run main).
    thanks.
    Message Edited by Appledoll on 07-12-2007 10:12 AM

    Hi,
    The easiest way is to use the NameOf() function. In this case where you wish to get the name of the current sequence the syntax NameOf(RunState.Sequence) yields the name. I attach a very simple example also.
    Getting the Name of Any TestStand Property Programmatically in TestStand
    Hope this helps
    Pelle S
    District Sales Manager
    National Instruments Sweden
    Attachments:
    Get sequence name.vi ‏15 KB

Maybe you are looking for

  • Using Runtime exec() to open java on other directory

    HI, I have a little problem and i hope everyone can help me out abit. You see when u use Runtime.exec(), how to you use it so that when the file you want to open is different from your program directory. For example, my program is in c:\windows\deskt

  • HT4241 HDMI displayport

    my hdmi display port was working just fine and then all of the sudden just stopped working. Has this happened to anyone else and if so what do i do to fix it?

  • Can't sync photo's from PC

    I have i-cloud set up on ipad and PC and the photo's box is ticked on both. I am trying to get photo's taken from my camera which I have transferred to my PC onto my ipad. I have copied the required photo's from my PC and pasted into the Photo stream

  • When to press stop on import of HD footage?

    Ok so my iMac G5 previews my importing footage at 3/4 speed, I realize there is alot of caching and bufferring going on but I need to know what the proper method is for completing my import. Do I press stop on the import window when the camera is at

  • Where's Bios Shutdown Option! ! !

    Hi everybody! me again! :P I'd like to know if the MSI 865PE Neo2-LS Bios have Auto Shutdown by Temp...   All actual boards have these option... why MSI doesn't have?   Bios update? i'm using the last one... AMI (2.2)! Thankz!