How to generate sequence in grid

I have 1 page
and order like this
level 0 MYHeader_table
level1 scroll area MYHeader_table
level2 grid MYDetail_table
How i gerenate sequence to MYDetail_table.seq in RowInsert

you would add code to your rowinsert peoplecode.
example:
MyDetail_table.seq.value=MyDetail_table.seq.value+1;
also why do you have myheader_table in both level0 and level1, thats a bad design.

Similar Messages

  • How to generate sequence lile -1, 1, -1, 1, ...

    How to generate sequence lile -1, 1, -1, 1, ...

    Hi,
    If you can generate a sequence like 1, 2, 3, 4, ... then you can get the results you want by saying
    CASE
        WHEN  MOD (x, 2) = 0
        THEN  1
        ELSE  -1
    ENDTo generate the sequence 1, 2, 3, 4, ... you can use CREATE SEQUENCE and NEXTVAL, or ROW_NUMBER, or ROWNUM, or CONNECT BY and LEVEL, depending on what you want.
    Edited by: Frank Kulash on Jan 27, 2012 6:31 AM

  • How to generate Sequence Diagrams for existing code

    Hi,
    I have a web application written in Java/Jsp's. I am looking to generate sequence diagrams automatically for the existing source code using this tool. I am not sure if this is possible using this tool. Can some one please explain me if that is possible using this IDE tool? If so can you please let me know how this can be done?
    Any response is greatly appreciated.
    Thanks in advance.
    Vijay

    Hi,
    Yes, you can reverse engineer operations and create sequence diagrams using Java Studio Enterprise.
    Just right-click on the operation in the UML model that has the source file associated with it, and select "Create Diagram from Selected elements" or "Reverse Engineer Operation".
    Thanks!

  • How to generate sequence

    hi
    how to generate the sequence ?
    my requirement is like this hp1
    hp2
    hp3
    hp4
    hp5
    regards
    prathyush

    You can still use an Oracle sequence you just have to append the characters you want as shown below:
    SQL> CREATE SEQUENCE TEST_SEQ;
    Sequence created.
    SQL> SELECT 'hp' || TEST_SEQ.NEXTVAL FROM DUAL;
    'HP'||TEST_SEQ.NEXTVAL
    hp1
    SQL> SELECT 'hp' || TEST_SEQ.NEXTVAL FROM DUAL;
    'HP'||TEST_SEQ.NEXTVAL
    hp2
    SQL> SELECT 'hp' || TEST_SEQ.NEXTVAL FROM DUAL;
    'HP'||TEST_SEQ.NEXTVAL
    hp3You could either do this directly in your INSERT code or write a trigger to do it for you.
    HTH!

  • How to generate sequence no increased with an increment in o/p file name

    Hi all,
             I am doing a file to file scenario in which my output file name consists of a sequence number which is increased by fixed increment.i  thought of proceeding with variable substitution by writing one udf involving Dynamic Configuration object (the udf describd in Micheal blog).However my problem is that i am unable to generate the sequence number with a fixed increment .plz guide me how to proceed to achieve the desired output filename with sequence number.
    For ex:o/p file name:chxx.bcdtspd.00000002.<datetimestamp>.dat
                                  :chxx.bcdtspd.00000003.<dattimestamp>.dat           
    The scenario is FTP so we cant use addcounter.Plz help as its urgent.
    Regards,
    Saurabh Sharma

    Hi,
    What you can do is.
    U have to use the counter which increment everytime ur mapping is executed.
    Steps which needs to be followed.
    1) Maintain one table at R3.
    2) Pass the control to R3 and update the table value with one.
    3) For the second time fetch the counter value from the table and add 1 to it and again update the table with the increment value.
    4) pass the incremented value to XI and use that counter value for ur file name.
    Here u have to always pass 1 value to R3.
    The method is called as lookup.
    Just go through the below weblog:
    Lookup - /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    Thnx
    Chirag
    Thnx
    Chirag

  • How to generat sequence number for db in XSLT

    Hello SOA Gurus,
    I have a requirement, Please see below
    I am using SOA 11.1.1.6
    From a webservice call to db insert XSLT,  i have 10 elements at source side and 11 elements at target side.
    From source to target first 10 mappings are done.
    Now requirement is, for the 11th element in target- we need pass a sequence number to the targeted database, means---(sequence number has to be generated for every execution of XSLT execution)
    How to do the last point???
    Can anyone help me plzz

    Hi,
    You can pass the sequence number in the 11th element using "oraext:sequence-next-val("Sequence name as a string", "Datasource as a string") function.
    Regards,
    Anshul

  • How to generate sequence of pulse trains with DAQmx?

    I need to generate a sequence of pulse trains with DAQmx (the card I have is a PXI-6229 card). As an example:
    - 10'000 pulses at 20kHz every 5 seconds with an initial offset of 2 seconds (let's say 10 pulse trains in total).
    If I use the CreateVirtualChannel.vi in "CO pulse ticks" mode, I can only specificy offset, high ticks and low ticks, but not that the sequence of pulses should be repeated after some time. 
    Now I thought that I could solve this problem if it were possible to multiply two counter outputs: the first counter would generate the pulses (continuously) whereas the second one would switch between low and high on a slower timescale in order to gate the first counter, thereby providing an initial offset and the "off" phases between the pulse trains.
    Is it somehow possible to multiply two outputs with DAQmx and the card I have? Or is there another solution to the problem?
    Thanks a lot in advance for any hints!

    Hi dlanger,
    what you want to do requires a little bit more work. 
    First look at the example "Gen Dig Pulse Train-Continuous.vi" from the LV example finder.
    This example generates a continuous* pulse train. As you see, you need a sample clock VI for setting the sample mode. 
    * NOTE: Generating a finite pulse train with a M-series card requires 2 counter.
    With a pause trigger (DAQmx trigger property node) you can gate the output of that counter.
    Now you have to generate a gate-signal with the the 2nd counter. That means, only if  Ctr1-out is high Ctr0-out outputs the 20 kHz-signal. 
    Maybe you have to adjust the times in my example a bit. 
    Unfortunately there is just one "small" problem: "let's say 10 pulse trains in total" 
    This is not possible, because a 3rd counter would be necessary (*). 
    As a workaround you can modify the while-loop that both tasks are cleared after 50s. This is not brilliant, but should work fine for you. 
    A more sophisticated way is to perform a correlated DIO. So you can generate custom pattern for multiple outputs. 
    A good example can you find here: 
    Retrigger and Repeat Finite Digital Pulse Train in LabVIEW
    http://decibel.ni.com/content/docs/DOC-8473 
    or here:  
    Generating More Than 2 Pulse Trains Using CompactDAQ
    http://decibel.ni.com/content/docs/DOC-2167 
    Hope this helps.
    With best wishes,
    Ralf N. 
    Attachments:
    Gen Gated Dig Pulse Train-Continuous.vi ‏38 KB

  • How to generate sequence steps programatically

    I have a list of command strings and expected responses from UUT. With this list I want to create a sequnce file programatically such that each step will send a command and receive a string response from UUT and comapare to the expected value. I think the sequence can be created programatically before I call the sequence from my model sequnce. I know there is a way but I just can't find a good how-to instruction or an example code.

    Hi,
    TestStand is a sequence editor and test executive. As it is shipped, it doesn't "know" how to send your strings to or how to read from ECU. For that, some device drivers must be called from the steps, as in the test system there is such device capable of sending/receiving commands to ECU.
    Thus, an approach is to create/use the drivers in TestStand "Custom Steps" which are calling code modules which are using device drivers to exchange data with the ECU.
    These "Custom Steps" must define a "place" at TestStand level to read/write the ECU commands/responses. Since you have to compare to expected values, the "Custom Steps" may be derived out of the "Tests" built-in NI step types.
    For an example on how to create your own code modules and step types, consult the "TestStand API Reference", "TestStand User Manual", the examples shipped with TestStand located in the "TestStand\Components\NI\StepTypes" and "TestStand\Examples\StepTypes" folders on your harddrive.
    Regards,
    Silvius.
    Silvius Iancu

  • How to generate random sequence numbers

    Hello experts
    Iu2019m writing a custom program and pulling data from VBAK & VBAP. As per requirement I also need to generate a sequence number randomly and finally store all data in text file and upload at server. The hiccup is I donu2019t know how to generate sequence numbers. Can somebody please show me how I can accomplish it?
    Thanks a lot in advance

    Find the below code,
      data: lv_range type datatype-char0128.
      call function 'RANDOM_C'
        exporting
          len_min   = 20
          len_max   = 20
          char_min  = 1
          char_max  = 20
        importing
          rnd_value = lv_range.
    LV_RANGE param will have a random value..
    If you need number you can use the FM "RANDOM_I4"
    Thanks,
    Prathap

  • How to generate addm report using grid

    Hi,
    how to generate addm report using grid, please provide any relevant doc/links etc.
    Thanks in advance.

    how to generate addm report using grid, please provide any relevant doc/links etc.When you start with the wrong question, no matter how good an answer you get, it won't matter very much.
    what is best way to divide board into 2 pieces using a hammer?
    Edited by: sb92075 on Oct 25, 2010 7:22 AM

  • How to generate PN sequence?

    Thank you in advance.
    Now I'm converting Matlab codes into a LabVIEW code. While doing it, I don't know how to generate a PN sequence that I generated on Matlab using 'commsrc.pn' or 'seqgen.pn' function. I searched some threads, and found out that the Binary MLS VI can generate it, but I'm not sure it will generate the same sequence or not. Can anyone help me with this?

    Does the PN sequence need to follow a particular distribution or constrain?  
    Kudos and Accepted as Solution are welcome!

  • How to generate a  number sequence for a column of a Z*table?

    Hi ,
    How to generate a  number sequence for a column of a Z*table?
    plz guide me.
    thanks
    Albert

    1) Use SNRO for defining a number range.
    2) Use FM NUMBER_GET_NEXT for getting the next number with object, sub object etc..
    See one example below.
          CALL FUNCTION 'NUMBER_GET_NEXT'
            EXPORTING
              nr_range_nr                   = c_01
              object                        = c_z_prd_code
    *           QUANTITY                      = '1'
             subobject                     = p_vkorg
    *           TOYEAR                        = '0000'
    *           IGNORE_BUFFER                 = ' '
           IMPORTING
             number                        = in_prd_code
    *           QUANTITY                      =
    *           RETURNCODE                    =
            EXCEPTIONS
                  interval_not_found            = 1
                  number_range_not_intern       = 2
                  object_not_found              = 3
                  quantity_is_0                 = 4
                  quantity_is_not_1             = 5
                  interval_overflow             = 6
                  buffer_overflow               = 7
                  OTHERS                        = 8
    3) You may write these code in main program of the table maintinence
    rgds,
    TM.

  • How to generate oracle sequence using Database Designer Transformer

    I created Entity Relationship Diagram.I can generate Table relavant to that every entity.(using Database Design Transformer).Normaly the Database Design Transformer tries to find a suitable unique key that can be used as the primary key. If it cannot find one, it creates a surrogate primary key.it create sequence for that surrogate key.But I didn't want that.I want generate sequence only the attribute that have primary key.how can i do

    So a digital pulse??

  • How to get generated sequence number from JPA/TopLink

    Hi there,
    I am using JDev 10.1.3.3 with JPA + POJO + TopLink.
    In the entity (POJO), I declared a sequence generated for a number field.
    @Id
    @GeneratedValue(strategy=SEQUENCE, generator="GEN_CUSTOMER_ID_SEQ")
    @SequenceGenerator(name="GEN_CUSTOMER_ID_SEQ", sequenceName="CUSTOMER_ID_SEQ", allocationSize=1)
    @Column(name="CUSTOMER_ID", nullable = false, precision = 12 )
    private Long customerId;
    In my program, I don't need to set the Id field because it is set automatically.
    However, I want to get the generated sequence using code. Is there a way?
    Thanks,
    Jim
    P.S. I cannot use getCustomerId because the value has not been set yet.

    If you call persist on the new Entity, or flush() the id will be assigned, and you can get it.
    There is also an API on the TopLink / EclipseLink Session getNextSequenceNumberValue(), that you can use to get a sequence value.
    -- James: http://www.eclipselink.org

  • How to generate auto incremented ID using a user who has create,view permissions only

    Hi
    i am using  the builtin ID
    field  to achieve generate sequence no  in a list
    every time a new item created in list
    for this i used update list item action in workflow, its working fine but
    i have a problem here user who login into sharepoint site and create a new list item
    has only Create ,View Permissions only,
    i created a Requesters permissions level with (Create,view ) rights only i did not  added Edit Rights
    because this user only create list items only  he will not edit the list item.
    adil

    Hello adil,
    If user is having "Add Items" rights then item ID should be created automatically and this is auto generate column in list.
    Why you are using "update list item action"? Are you updating any other field?
    If updating any other column value then add Impersonation steps in your code to update item.
    http://sharepoint.stackexchange.com/questions/16232/impersonation-step-in-sharepoint-designer-2010
    http://sharepointgroup.wordpress.com/2012/05/10/how-to-use-work-flow-to-change-list-item-permissions-by-sharepoint-designer-2010/
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

Maybe you are looking for