Sequence as a target

Hi,
I may be going around this wrong way so I am looking for a little advice, what I am trying to do is write into a table a number, this number is incremental and must start after the last number in the table.
Now I know in Oracle it is pretty easy to use sequences but the target in this case is sql server table
This is what I have tried I created a sequence which basically retrieves the last value in a table by using a view.
In my interface I have the source sql server table with "SUNOPSIS_MEMORY_MANAGER" as the staging table (LKM SQL to SQL) and then target datastore is a sql server table (IKM SQL to SQL append).
Now for the mapping on the target I have added the sequence e.g. :NextID_NEXTVAL
If I remove the sequence and just put something like 1 in the mapping then interface works fine, if I add the sequence in then the error is.
com.sunopsis.sql.SnpsMissingParametersException: Missing parameter
So it looks like the sequence is not passing anything across.
Maybe I am doing something wrong or there is a quick solution as it is nothing complex I am trying to achieve.
Cheers
John

Hi,
I have also the same issue. you just have a look into this link .
I have done the same way watever in tat conversion mentioned.
Steps:
1.Created variable - historize.
In Definition Tab:
SELECT NVL (MAX(STATUS),5000) FROM Table Name
2.Procedure:
Created a procedure in that
First step :
Drop sequence sequence Name ( enabled Ignore Errors- while u r running for the first time u might get Error - I had the Error) :)
Second:
CREATE SEQUENCE SEQUENCEname
MINVALUE #REFRESHING_VARIABLE
MAXVALUE 999999999999
START WITH #REFRESHING_VARIABLE
INCREMENT BY 1
CACHE 20
Package:
Created a package
Steps:
Drag and Drop the following;
Declare the created Variable.
Refresh Variable
Procedure
ur Interface
Then run the package it will work fine
Thanks
AK

Similar Messages

  • Loading the different result sets in the same sequence for the target table

    Dear all,
    I have 5 tables say A,B,C,D as my source and i made 3 joins P,Q,R .the result sets of these 3 joins are loading into a target table X but with 3 different targets with same table name.
    I created one sequence say Y as my target table has primary key and mapped to three different targets for the same target table which i need to load.
    But after deployed and executed successfully ,i am able to load the data from three join result sets with differeent sequence numbers.
    I am looking to load data like this.
    If First Result set P has 10 Records,SEcond Result Set Q Has 20 and the third result set has 30 records then while loading data into first target it creates the seq for the 10 records from 1..10 and while loading the data for second result set ,it creates the sequence from 11 ...20 and while loading the third target with the third result set it creates the sequence from 21 ----30.
    But i am looking to load the three result sets in the sequence 1to 10 but not like creating fresh sequence for each result set.
    how can we achieve this in owb?
    any solution for this will be appreciated.
    thank you
    kumar

    My design is like following
    SRC1
    ---->Join1--------------------------->Target1( Table X)<-----Seq1
    SRC2
    SRC3
    ----> Join2----------->Target2(Table X)<----Seq1
    SRC4
    -----> Join3 -------> Target3(Table X)<-----Seq1
    SRC5
    Here the three 3 targets are for the same Table X as well sequence is same i.e seq1
    If the First Join has 10 rows ,Seq1 generates sequence in 1 to 10 while loading target1
    But while loading second target,Same Seq1 is generating new sequence from 11 but i am looking to load target2 and target 3 starting from sequence 1 but not from 11 or so.
    As per your comments :
    you want to load 3 sources to one target with same sequence numbers?
    yes
    Are you doing match from the other two sources on first source by id provided by sequence (since this is the primary key of the table)?
    No
    can you please tell me how to approach for this?
    Thank You
    Kumar

  • Goldengate replicat slow to process sequence.nextval

    GGS replicat takes 45 minutes to process this statement. Tracing the replicat session shows that replicat is continuously altering the sequence on the target. The statement completes on the source in less than 1 minute. Any ideas on how I can speed this up.
    Thanks,
    Lynn
    insert into test_tab2
    select MYSEQ_ID.nextval,OR_DATETIME_ID,LOCATION_ID, CLINIC_ID ,ACCESSION_COUNTS
    from
    (select * from summary.CLINIC_MV
    where order_datetime_id >
    (select mor_datetime_id) - 40 from summary.CLINIC_MV))

    Identified OS issue. Not a GGS issue.

  • Colour Correcting lots of clips in a Multicam Sequence

    I have a problem with Premier CS6,
    I have a timeline with a Multicam camera sequence, 2 camera's only and i want to reveal a camera in a sequence like in FCP7 so that i can apply a color correction to only 1 of the cameras, i am aware of selecting the clips by holding down the shift key and copying the attributes to the clips but this isn't convenient when you have hundreds of clips because 1 maybe missed and it would take forever, i have watch loads of videos on the web but i cant find the answer,

    I've done this for taped classes using two cameras. All shot in a class room with unchanging lighting, so a single color correction works for two hours of video capture. Of course each camera needed separate and different color corrections (I applied just a luma curve and three way color corrector effects to each video feed, keeping it simple).
    What I ended up doing was color correcting on the source sequence in PPro. Each camera feed corrected separately, and just a handful of clips, so easy to copy the color correction to them. I then nested this source sequence into a multi-cam edit sequence where I did the slice-'n-dice camera switching that is multi-camera editing.
    The color correction done at the source sequence carries through to subsequent nested sequences. So the mulit-cam edit sequence gets the color corrections. No matter how many cuts you make going back and forth between cameras, the color correction is always true. If you then nest the multi-cam edit sequence into a target sequence (I use target sequences to edit the multi-cam edit into trailers, portions of the classes for short web videos, full class videos for DVD, etc.), the color corrections flow down to them also.
    Sorta stands the conventional workflow (color correction last) on it's head. But it works well and seems to be almost fool proof (at least for this fool). Now of course this only works if you need a single color correction applied to a huge long video capture that you'll subsequently slice-'n-dice in a multi-cam edit sequence. But if this is what you need, this might be a method worth considering. Clearly, YMMV.

  • Sequence value missing

    Hello Gurus,
    I'm loading data from staging table to target and need to generate sequence while loading target. Using below tables.
    Table 1 SRC (staging table) Table 2 : TGT ( target table)
    ID name Sal           Seq ID name Sal
    10 ‘abc’ 200 1 10 ‘abc’ 200
    20 ‘sdf’ 300
    30 'ghr' 400
    40 'ghk' 500
    My query is :
    select t.ID,t.name,t.sal,decode(t.seq,0,SEQUENCE.nextval,1,NULL) as seq
    from
    (select src.ID ,src.name ,src.sal ,decode(tgt.seq,NULL,0,1) seq
    from SRC
    left outer join TGT
    on src.id = tgt.id ) t
    1st RUN :
    ID name Sal seq
    10 ‘abc’ 200 NULL
    20 ‘sdf’ 300 1
    30 'ghr' 400 2
    40 'ghk' 500 *3*
    2nd RUN :
    ID name Sal seq
    10 ‘abc’ 200 NULL
    20 ‘sdf’ 300 *5*
    30 'ghr' 400 6
    40 'ghk' 500 7
    Every time i execute the same query there is gap in sequence ( after 3 , 4 is missing. ).
    Please let me know what im missing here.
    or how to avoid the gap in sequence.
    Using Oracle 10g Release 10.2.0.1.0
    Thanks !

    My query is :
    select t.ID,t.name,t.sal,decode(t.seq,0,SEQUENCE.nextval,1,NULL) as seq
    from
    (select src.ID ,src.name ,src.sal ,decode(tgt.seq,NULL,0,1) seq
    from SRC
    left outer join TGT
    on src.id = tgt.id ) tTake a look...
    DECODE (t.seq,  0, SEQUENCE.NEXTVAL,  1, NULL)When it executes, whenever t.seq is 0 or 1, SEQUENCE.NEXTVAL executes and sequene is incrementing...
    SQL> select test_seq.nextval from dual;
       NEXTVAL
             1
    SQL> select decode(1,1,test_seq.nextval,2,2) from dual;
    DECODE(1,1,TEST_SEQ.NEXTVAL,2,2)
                                   2
    SQL> select decode(1,1,test_seq.nextval,2,2) from dual;
    DECODE(1,1,TEST_SEQ.NEXTVAL,2,2)
                                   3
    SQL> select decode(1,1,test_seq.nextval,2,2) from dual;
    DECODE(1,1,TEST_SEQ.NEXTVAL,2,2)
                                   4
    SQL> select decode(2,1,test_seq.nextval,2,2) from dual;
    DECODE(2,1,TEST_SEQ.NEXTVAL,2,2)
                                   2
    SQL> select decode(2,1,test_seq.nextval,2,2) from dual;
    DECODE(2,1,TEST_SEQ.NEXTVAL,2,2)
                                   2
    SQL> select decode(1,1,test_seq.nextval,2,2) from dual;
    DECODE(1,1,TEST_SEQ.NEXTVAL,2,2)
                                   7

  • Load distinct rows with sequence

    Hi All
    I have requirement at my client where we need to load distinct rows from the source TABLEA into TABLEB and add sequence in target TABLEB.
    As we know in Oracle we cant use sequence with distinct keyword, one of the solution is to use the sequence in target so ODI will capture
    distinct rows from source and use the sequence only in target table but if the source and target are on same schema then ODI doesn't create
    C$ table but it load data directly into target table and we get the error of invalid use of sequence.It wors fine if source and target table on different
    schema. I like to know if there is any way force ODI to create C$ table with distinct rows and load the sequence in target table only even source and
    target are on same schema. Otherwise I have create two interface to capture the distinct rows firct and then update the same table with sequence
    in second step. I really wanna avoid creating 2 interface for this simple job.Let me know if you have better solution.
    Thanks
    Kashif

    user634784 wrote:
    But is there any way to get the same outcome without using the subquery.In reality... No.
    You can hide the fact that you have to generate a row_number for the records by using a view... ;)
    SQL> ed
    Wrote file afiedt.buf
      1  create table t as select 1 as Empid, to_date('01-jan-2008','DD-MON-YYYY') as startdate, null as enddate, 'O1' as organisation from dual union all
      2                    select 2, to_date('2-jan-2008','DD-MON-YYYY'), to_date('31-jul-08','DD-MON-YYYY'), 'O1' from dual union all
      3                    select 3, to_date('2-jan-2008','DD-MON-YYYY'), to_date('31-jul-08','DD-MON-YYYY'), 'O1' from dual union all
      4                    select 4, to_date('5-jan-2008','DD-MON-YYYY'), to_date('31-jul-08','DD-MON-YYYY'), 'O2' from dual union all
      5                    select 5, to_date('2-jan-2008','DD-MON-YYYY'), to_date('31-jul-08','DD-MON-YYYY'), 'O2' from dual union all
      6                    select 6, to_date('2-jan-2008','DD-MON-YYYY'), to_date('31-jul-08','DD-MON-YYYY'), 'O2' from dual union all
      7                    select 7, to_date('2-jan-2008','DD-MON-YYYY'), to_date('31-jul-08','DD-MON-YYYY'), 'O3' from dual union all
      8*                   select 8, to_date('2-jan-2008','DD-MON-YYYY'), to_date('31-jul-08','DD-MON-YYYY'), 'O3' from dual
      9  /
    Table created.
    SQL> ed
    Wrote file afiedt.buf
      1  create view vw_x as
      2* select empid, startdate, enddate, organisation, row_number() over (partition by organisation order by empid) rn from t
    SQL> /
    View created.
    SQL> select * from vw_x where rn = 1;
         EMPID STARTDATE ENDDATE   OR         RN
             1 01-JAN-08           O1          1
             4 05-JAN-08 31-JUL-08 O2          1
             7 02-JAN-08 31-JUL-08 O3          1
    SQL>

  • Data Migration: Sequence Check

    i have a database (target) that i am transfering data to from another database (source)
    I need to write a script to check if the sequence on the target will be ok...in a sense, I need to check the max value of the target dababase sequence and see if it is ok to add the new data.
    i cant transfer data over if the sequence numbers overlap...like if i have a sequence # of 200 on the source and target...we run into problems. is this logic correct?
    how do i write this sql check?
    any help would be wonderful. im a novice.
    thanks.

    It may be easier to ensure up front that the sequences won't overlap. i.e.
    CREATE SEQUENCE system1_seq
      START WITH 1
      INCREMENT BY 2
      CACHE 100
    CREATE SEQUENCE system2_seq
      START WITH 2
      INCREMENT BY 2
      CACHE 100This way, one system will generate odd numbers, the other will generate even numbers, and you won't have to worry about overlaps.
    Alternately, you can add a source id to the primary key on the target system or you can renumber the rows (obviously fixing the relationships) when the data is migrated.
    Justin
    Justin

  • Sequencing in functions

    I have a function that hides a horizontal rule, moves it
    relative to the currentTarget, and makes it reappear. The
    showEffect on the HR is an instance of the WipeRight effect, and
    the hideEffect is an instance of the WipeLeft effect. So, in
    essence, when a user clicks on a button, a line "grows" out of that
    button to the right. When a user clicks another button, the line
    "shrinks" from its current position, moves to the new position, and
    "grows" from there. At least, that was the plan. The problem is the
    the move occurs faster than the effect, and the line ends up EITHER
    turning visible or invisible, but not both, as planned. Here's the
    code for the function:
    quote:
    public function moveHideHRule(event:Event):void {
    myLine.visible = false;
    myLine.x = event.currentTarget.x + 135;
    myLine.y = event.currentTarget.y + 10;
    myLine.visible = true;
    here's where I call the event:
    quote:
    <mx:LinkButton id="addBtn" x="10" y="50" label="Add a New
    Resource"
    click="theWindow.selectedChild=myAdd; moveHideHRule(event);"
    />
    <mx:LinkButton id="updateBtn" x="10" y="80" label="Update
    a Resource"
    click="theWindow.selectedChild=myUpdate;
    moveHideHRule(event);"/>
    <mx:LinkButton id="searchBtn" x="10" y="110"
    label="Search for a Resource"
    click="theWindow.selectedChild=mySearch;
    moveHideHRule(event);"/>
    and here's where I create/call the effects:
    quote:
    <mx:HRule width="50" strokeWidth="1" strokeColor="blue"
    x="139" y="60" visible="false" id="myLine"
    showEffect = "{myRightWipe}" hideEffect="{myLeftWipe}"/>

    I've been able to create a Sequence effect, as suggested by
    dimpled, but it does not completely solve my problem. You see, I
    don't actually want to see myLine move (right now, I'm using a Move
    effect). I thought I might be able to get around this by embedding
    the move within a sequence in a function, but I can't seem to
    figure out how to embed other, non-effect, actions within a
    sequence. The best I can get is for the sequence to run and then
    myLine appears at the new spot, or vice versa.
    As Screenivas mentions, I could easily create two (or more)
    HRules and forget about the moving, but I'd like to figure out if
    there's a way to include non-effect actions within a sequence.
    Here's the new code (in it's entirety, as Greg asked for). You see
    that I can get a sequence to work, but I don't actually want to see
    the HRule move.
    quote:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" xmlns:ns1="*">
    <mx:Script>
    <![CDATA[
    private function moveLine(e:Event):void {
    myLine.visible = true;
    myMove.end();
    myMove.xTo = e.currentTarget.x + 145;
    myMove.yTo = e.currentTarget.y + 10;
    myMove.play();
    myLineMove.play();
    ]]>
    </mx:Script>
    <mx:Sequence id="myLineMove" target="{myLine}" >
    <mx:WipeLeft id="myWL" duration="500"/>
    <mx:Move id="myMove" />
    <mx:WipeRight id="myWR" duration="500"/>
    </mx:Sequence>
    <mx:Panel x="10" y="0" width="100%" height="90%"
    layout="absolute" title="Intro Panel" id="P_intro">
    <mx:Text x="10" y="24" text="What would you like to do?"
    width="229"/>
    <mx:LinkButton id="addBtn" x="10" y="50" label="Add a New
    Resource"
    click="theWindow.selectedChild=myAdd; moveLine(event);"
    />
    <mx:LinkButton id="updateBtn" x="10" y="80" label="Update
    a Resource"
    click="theWindow.selectedChild=myUpdate;
    moveLine(event);"/>
    <mx:LinkButton id="searchBtn" x="10" y="110"
    label="Search for a Resource"
    click="theWindow.selectedChild=mySearch;
    moveLine(event);"/>
    <mx:ViewStack x="173" y="10" id="theWindow" width="100%"
    height="95%">
    <mx:Panel id="starterPanel" borderColor="blue">
    <mx:Text text="Welcome!" id="welcomeMsg" x="45"
    y="78"/>
    </mx:Panel>
    <ns1:addRecord id="myAdd" />
    <ns1:searchForm id="myUpdate" />
    <ns1:updateRecord id="mySearch" />
    <mx:Canvas label="Add" width="100%" height="100%">
    </mx:Canvas>
    </mx:ViewStack>
    <mx:HRule width="50" strokeWidth="1" strokeColor="blue"
    x="139" y="60" visible="false" id="myLine" />
    </mx:Panel>
    </mx:Application>

  • Expdp/impdp: update sequences

    I'm trying to use impdp to copy database from A to B. I want the sequences to match on both A and B. However, since the sequences already exists in B, the sequences will not update on B compared to A. Thanks.

    Import cannot resolve your problem. You should do it manually, sequence by sequence on your target db. Recreate with the expected start value.
    By the way, who cares the value of Oracle sequence, they are nothing, but unique value.
    Nicolas.

  • Sequence decompose

    Hello-
    Is there a function for a sequence similar to an avid "decompose"?
    I have an old project I'm trying to re-conform so that I can make some revisions. It's a 2 min video and I don't want to reload several hours of original footage. I want to digitize just the 2min of footage plus handles.
    I've tried exporting an aaf & omf and when I import those files they refer to the original source clips. an edl didn't work either. and the media manager wasn't helpful b/c there is no media that is online. I'm sure this has to be operator error. Anybody have suggestions on how they would rebuild this sequence?
    Thanks in advance, Dominic.

    select the sequnece
    choose File menu > Media Manager
    in the Media Manager window choose
    Media > Create Offline
    Set Sequence to : (choose target capture codec)
    Uncheck "Include master clips..."
    Check "Delete unused media..."
    Check "Use handles" and specify handle length wanted
    Uncheck 'Include affiliate clips...'
    in fact Uncheck everything/anything else
    Click OK and specify new project name and save loaction
    Open the newly created project
    Select all the offline master clips and choose File > Batch Capture

  • Script to drop/re-create sequences is generated with errors

    Hello,
    I'm migrating an Oracle 10g instance running on Solaris 10 to an Oracle 11g instance running on RedHat Linux. I'm following the "Platform Migration" White Paper ( URLhttp://www.oracle.com/technology/deploy/availability/pdf/maa_wp_11g_platformmigrationtts.pdf ).
    In the appendix, there's the code for a script that's supposed to generate an SQL script that drops and re-creates the sequences on the target machine:
    set heading off feedback off trimspool on escape off
    set long 1000 linesize 1000 pagesize 0
    col SEQDDL format A300
    spool tts_create_seq.sql
    prompt /* ========================= */
    prompt /* Drop and create sequences */
    prompt /* ========================= */
    select regexp_replace(
    dbms_metadata.get_ddl('SEQUENCE',sequence_name,sequence_owner),
    '^.*(CREATE SEQUENCE.*CYCLE).*$',
    'DROP SEQUENCE "'||sequence_owner||'"."'||sequence_name
    ||'";'||chr(10)||'\1;') SEQDDL
    from dba_sequences
    where sequence_owner not in
    (select name
    from system.logstdby$skip_support
    where action=0)
    spool off
    I have run it on my Solaris machine, and it generates a file that looks like this:
    /* ========================= */
    /* Drop and create sequences */
    /* ========================= */
    CREATE SEQUENCE "MDSYS"."TMP_COORD_OPS" MINVALUE 1000000 MAXVALUE 2000000 INCREMENT BY 1 START WITH 1000000 NOCACHE NOORDER CYCLE
    CREATE SEQUENCE "MDSYS"."SDO_TOPO_TRANSACT_SUBSEQ" MINVALUE 1 MAXVALUE 999999999999999999999999999 INCREMENT BY 1 START WITH 1 NOCACHE ORDER NOCYCLE
    I don't have any "drop sequence" commands, and there is no semicolon (;) at the end of the "create sequence" lines, so those are not executed.
    I'm not at all familiar with PL/SQL, could somebody point me to the error?
    Thank you,
    Adrian

    Why do you need the "REGEXP_REPLACE ()" function?
    This would be simpler:
    SET long 32000 longc 80 pages 0 lin 80 trims on
    COL ddl wor
    SELECT    'DROP SEQUENCE "'
           || sequence_owner
           || '"."'
           || sequence_name
           || '";'
           || CHR (10)
           || DBMS_METADATA.get_ddl ('SEQUENCE', sequence_name, sequence_owner)
           || ';'
           || CHR (10) DDL
      FROM dba_sequences
    WHERE sequence_owner NOT IN (SELECT NAME
                                    FROM SYSTEM.logstdby$skip_support
                                   WHERE action = 0);
    /:p

  • Troubles with Sequences

    I have tried unsuccessfully to use different methods in gumbo to replace tweenmax and had very little success the closest I have come is with parallel sequences but still not really achieving what I was hoping to do , targeting objects is the first issue(even with sequencing) as the only way I have suceeded so far is to target an object before playing a sequence as below, but I want to include multiple targets within a series of effects and declaring the target within a sequence just fails.
    PageL.rotationY=180;
    flipper.target=paperMod;
    flipper.play();
    TweenMax.to(PageL,2,{rotationY:1, delay:0.100});   <------ I really don't want this here
    this is the sequence
    <mx:Sequence id="flipper">
    <mx:Parallel duration="500">
    <mx:AnimateProperty property="force" fromValue="0" toValue="1.8"/>
    <mx:AnimateProperty property="angle" fromValue="-1.00" toValue="-0.25"/>
    <mx:AnimateProperty property="offset" fromValue="1" toValue="0.3"/>
    </mx:Parallel>
    <mx:Parallel duration="750">
    <mx:AnimateProperty property="force" toValue="0" fromValue="1.8"/>
    <mx:AnimateProperty property="angle" toValue="-1.00" fromValue="-0.25"/>
    <mx:AnimateProperty property="offset" toValue="1" fromValue="0.3"/>
    </mx:Parallel>
    </mx:Sequence>
    this is the tweening I want to replace
    protected function button2_clickHandler(event:MouseEvent):void
    PageL.rotationY=180;
    paperMod.force = 0;
    paperMod.offset = 0.95;
    paperMod.angle =  0;
    rev=true;
    myTween = new TweenMax(paperMod, 0.75, {force:1.7, offset:0.22, angle:-0.35, bezier:[{offset:1.2, angle:-0.7, force:1}],
    onComplete:reverseMe});
    TweenMax.to(PageL,2,{rotationY:1, delay:0.100});
    private function reverseMe():void
    if (rev==true)
    rev=false;
    myTween.reverse(false,true);
    http://gumbo.flashhub.net/flip/  - my test bed app
    So am I totally off-track or is there a way I can replace the tweening cleanly, I've tried motionpaths, animation etc... but nothing seems to work, and the big one is can I have multiple targets in a set of sequences/animations that could rival tweening.
    David

    Hi David,
    You should definitely be able to do this. The effects version is actually simpler than what you have below in Flex 4 beta (because of the new RepeatBehavior functionality and the ability for Animate to target multiple properties) (are you on Flex 4? Or using Flex 3?), but the key thing is that you have to specify the target (or multiple targets) either in the effect declaration or in the play() method when you launch it. Assuming you're okay with declaring the targets in the effects, here's how I'd rewrite your code using Flex4 effects:
    <s:Animate targets="{[paperMod, bezier]}" repeatCount="2" repeatBehavior="reverse"/>
        <s:SimpleMotionPath property="force" valueFrom="0" valueTo="1.8"/>
        <s:SimpleMotionPath property="angle" valueFrom="-1" valueTo="-.25"/>
        <s:SimpleMotionPath property="force" valueFrom="0" valueTo=".3"/>
    </s:Animate>
    If this is a question about Flex 3 effects, then I think the only thing you're missing is the targets. Add 'targets="{[paperMod, bezier]}"' to your Sequence declaration (the targets of composite effects propagate to the children unless the children override the targets).
    Does this help?
    Chet.
    ps: I have various tutorial videos on effects (Flex3 and Flex 4) on my blog at http://graphics-geek.blogspot.com - check it out if you want to get the bigger picture on how this stuff works.
    <mx:Sequence id="flipper">
    <mx:Parallel duration="500">
    <mx:AnimateProperty property="force" fromValue="0" toValue="1.8"/>
    <mx:AnimateProperty property="angle" fromValue="-1.00" toValue="-
    0.25"/>
    <mx:AnimateProperty property="offset" fromValue="1" toValue="0.3"/>
    </mx:Parallel>
    <mx:Parallel duration="750">
    <mx:AnimateProperty property="force" toValue="0" fromValue="1.8"/>
    <mx:AnimateProperty property="angle" toValue="-1.00" fromValue="-
    0.25"/>
    <mx:AnimateProperty property="offset" toValue="1" fromValue="0.3"/>
    </mx:Parallel>
    </mx:Sequence>
    >

  • How do I distribute my station globals to a target machine?

    I am using the deployment tool to distribute my sequences to a target PC. When I ran the sequence on the target machine, it couldn't find the StationGlobals that the sequence uses. How do I include my globals in the StationGlobals.ini on the taget machine so that whenever the sequence gets deployed to any other machine the sequence can read and write to those globals. I realize I could copy the StationGlobals.ini from my development machine to my target machine, but I want it to be done automatically when I deploy the sequence. I also don't want to overwrite a StationGlobals.ini that may be used by some other sequence on that target machine. So, basically I guess I would like to be able to add new station globals to any target machine as part of my deployment.
    ThanksMessage Edited by tman on 03-04-2005 03:23 PM

    The most straightforward way to accomplish this is to include StationGlobals.ini in the workspace file that you are deploying. Of course, this too would overwrite the existing StationGlobals.ini on the target machine.
    From what you have described, it sounds like Sequence File Globals may be sufficient for your needs. Sequence File Globals are global to all of the sequences in a sequence file. StationGlobals are variables that can be accessed by any sequence file run on a station. If you used File Globals, you would not have to be concerned about deploying an INI. The File Globals are included in the SEQ file.
    If your system does require StationGlobals, the ideal way to handle this would be to have the StationGlobals.ini on your development machine have all of the StationGlobals needed by the sequence files on your deployment machine.
    Now, to answer your question, you could use a sequence of ActiveX steps to have your additional StationGlobals programmatically added to the StationGlobals on the target computer. For example, you can have one step check if a particular StationGlobal exists. Then, if it does not exist, you can have a second step run that adds the StationGlobal and sets its value.
    Attached you will find ProgStnGbls.seq that has two ActiveX Action steps. The first step checks for the StationGlobal. A boolean Local is returned by this step. The second step is the step that will, if needed, add the StationGlobal. This second step has a Precondition that checks the boolean Local. If the Boolean is false, a new StationGlobal is added. Then, a Post-Expression sets the value of the new StationGlobal. You would want to Run Main Sequence of this sequence file as a last step after deploying the test system.
    Also, ProgStnGbls.seq is currently saved as version 2.0.1 of TestStand. It has been tested with version 3.1 as well.
    Regards,
    Eric M
    Attachments:
    ProgStnGbls.seq ‏14 KB

  • Issue in Conversion of String to XML (xsd) elements.

    Hi All,
    Please help in resolving the below issue.Please help me ASAP
    I am getting a strng value from Db adapter String= Mike,3453,USA
    I need to convert the data into xml by using below xsd.
    <?xml version="1.0" encoding='UTF-8' ?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.uss.com/htr/IHCM204/MainRec"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="qualified"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    xmlns:tns="http://www.uss.com/htr/IHCM204/MainRec"
    attributeFormDefault="unqualified" nxsd:version="NXSD"
    nxsd:stream="chars" nxsd:encoding="US-ASCII">
    <element name="MainOutput">
    <complexType>
    <sequence>
    <element name="Target" maxOccurs="unbounded">
    <complexType>
    <sequence>
    <element name="name" type="string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <element name="sal" type="string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <element name="add" type="string" nxsd:style="terminated" nxsd:terminatedBy="," />
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    </schema>
    Regards,
    Ana

    Say, for Example
    If you are getting response from db adapter as abc,def,ghi then use an transform activity to split the string.
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
    <xsl:template match="/">
    <ns:StringParsing>
    <ns:Name>
    <xsl:value-of select='substring(/ns:simpleelement/ns:dbString,1.0, oraext:last-index-within-string(/ns:simpleelement/ns:dbString,",") + 0.0)'/>
    </ns:Name>
    <ns:Address>
    <xsl:value-of select='substring(/ns:simpleelement/ns:dbString,oraext:last-index-within-string(/ns:simpleelement/ns:dbString,",") + 2.0)'/>
    </ns:Address>
    </ns:StringParsing>
    </xsl:template>
    </xsl:stylesheet>
    Let me know if it helps you.
    Edited by: BK574 on May 14, 2013 11:31 AM
    Edited by: BK574 on May 14, 2013 11:55 AM
    Edited by: BK574 on May 14, 2013 12:48 PM

  • Doughts on Infoset Joins with Cube and DSO in BI 7

    Dear All,
    I have a droughts on Infoset Joints.
    I am working on a BI Query where I need to take 0Employee from Cube and Employee position time he holds in an Organization is coming form DSO, Apart for this I also have other requirement such as Address fields , Visa Status , are all coming from DSO.
    I have created a Infoset for this where
    1st is Cube and its 0Employee is linked to all DSO Employee and also Employee position I have linked with DSO and all are inner joints.
    1>My doughty is that will this work with inner joins or I have to use other joints.
    2>Is sequence of Data Target is correct
    which is
    1> Cube and in 2> all DSO in Parallel.
    Please guide me on joints and sequence.
    Thanks V V much in Advance,
    Regards,

    Hi,
    Check these links.
    http://help.sap.com/saphelp_nw04s/helpdata/en/ed/084e3ce0f9fe3fe10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2f5aa43f-0c01-0010-a990-9641d3d4eef7
    http://help.sap.com/saphelp_nw04/helpdata/en/9c/6b7538c9a8ee45e10000009b38f8cf/frameset.htm
    if this helpa assign points.
    Thanks.....
    Vasu.....

Maybe you are looking for