How to set a sequence generator as a value

When i am creating a new object in a table there is a unique id i want to keep to identify this object and I use sequence generator. I believe the command is DB_SEQ_PK.NEXTVAL, do i put this statement as a "SQL EXP" in the Source value for the specific variable i want to set it to? Please give me the right expression if i am wrong thank you.

Raj,
i tested it with the emp table the following way:
Extend This Application
A page or application component
Component > Form > Table
[selected EMP table, page 40, the rest default]
Edit Page 40
Edit Page Item P40_EMPNO
Alternate source used: Only when current value is session state is null
Source Type: SQL Query
Source value or expression: SELECT CT_ID_SEQ.NEXTVAL FROM DUAL;
Apply Changes
Run Page
[The empno field shows a value of 50]
[I enter 'test' into the ename field and click 'Create']
[I receive the error: ORA-01400: cannot insert NULL into ("EAS"."EMP"."EMPNO")]
I'm not sure what i am doing wrong here.
Thanks

Similar Messages

  • How to set current year,month as default value in combo box

    hi,  im newbie of xcelsius user
    i realize  that hv a issue that display combo box base on year & month
    let said
    <b><u>step 1</u></b>
    I create excel data like this
    <b><u>year___ </u>  </b>    |     <u><b>month_   </b></u> |     <u><b>Product</b></u> |     <u><b>revenue</b></u>
    02-04-09 |     02-04-09 |       a |     $4,154
    03-04-09 |     03-04-09 |       b |     $6,813
    04-05-09 |     04-05-09 |       a |     $9,875
    05-06-09 |     05-06-09 |       b |     $6,813
    06-04-10 |     06-04-10 |       a |     $6,813
    07-04-10 |     07-04-10 |       b |     $9,875
    08-06-10 |     08-06-10 |       a |     $9,875
    22-06-10 |     22-06-10 |       b |     $6,813
    <u><b>Step2</b></u>
    Then i go format cell to format/custom date to year & month
    Eg1: Year u2013>  02-04-09  convert to u2018YYYYu2019 (2009)
    Eg2: Month u2013>  02-04-09  convert to u2018mmmmu2019 (April)
    So output like this
    <u><b>year</b></u> |     <u><b>month</b></u> |     <u><b>Product</b></u> |     <u><b>revenue </b></u>
    2009 |     April |     a |     $4,154
    2009 |     April |     b |     $6,813
    2009 |     May |     a |     $9,875
    2009 |     June |     b |     $6,813
    2010 |     April |     a |     $6,813
    2010 |     April |     b |      $9,875
    2010 |     June |     a |     $9,875
    2010 |     June |     b |     $6,813
    But the problem is when i insert to combo box,use u201Cfilter Row u201D, i excpectation will display only 2009,2010
    But Actual display the Year  in combo box is duplicated :'(
    so any solution ? and then only how to set current year & month as default value  :'(
    thanks,
    regards
    s1
    Edited by: Leong Pui Kee on Feb 25, 2011 5:25 AM
    Edited by: Leong Pui Kee on Feb 25, 2011 5:36 AM

    hi,
    your created  data
    step 1
    I create excel data like this
    year___ | month_ | Product | revenue
    02-04-09 | 02-04-09 | a | $4,154
    03-04-09 | 03-04-09 | b | $6,813
    04-05-09 | 04-05-09 | a | $9,875
    05-06-09 | 05-06-09 | b | $6,813
    06-04-10 | 06-04-10 | a | $6,813
    07-04-10 | 07-04-10 | b | $9,875
    08-06-10 | 08-06-10 | a | $9,875
    22-06-10 | 22-06-10 | b | $6,813
    In this, year and month both are same data, make the diffent data like year  2009, 2010  And month Jan, Feb, March, ...Etc 
    and also one more check you formulas on month and year, select correct source data, destination data  for compoonent..
    OR
    from above, to create a date column and convert  date-->year, date--> month and Explore it.
    All the best,
    Praveen

  • JAX-WS: How to set headers on generated client?

    Hello
    Im trying to build a client to consume the web service defined here: http://my.hot-sos.net/HTNGListener/HTNGListener.asmx?WSDL
    I've use the wsimport tool to generate the classes and one of the services (ping) works fine.
    The other servcies, however, are giving me this error:
    javax.xml.ws.soap.SOAPFaultException: Server was unable to process request. ---> No HTNG Header found in Soap Header
    at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(Unknown Source)
    at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(Unknown Source)
    at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(Unknown Source)
    at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(Unknown Source)
    at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(Unknown Source)
    at $Proxy30.receiveMessageSync(Unknown Source)
    at com.pogo.test.HelloWorldClient.main(HelloWorldClient.java:29)I think the problem is that the service expects a header. The generated code has a HTNGHeader factory but I cant find a method where to add this header to the request.
    <wsdl:operation name="ReceiveMessageSync">
    <soap12:operation soapAction="http://htng.org/1.1/Listener.Wsdl#ReceiveMessageSync" style="document" soapActionRequired="true" />
    <wsdl:input>
    <soap12:body use="literal" />
    <soap12:header message="tns:ReceiveMessageSyncHTNGHeader" part="HTNGHeader" use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap12:body use="literal" />
    <soap12:header message="tns:ReceiveMessageSyncHTNGHeader" part="HTNGHeader" use="literal" />
    </wsdl:output>
    </wsdl:operation>This is how Im trying to invoke:
    HTNGListener listener = new HTNGListener();
    HTNGListenerSoap stub = listener.getHTNGListenerSoap();
    stub.ping();
    org.htng._1_1.header.ObjectFactory headerOF = new org.htng._1_1.header.ObjectFactory();
    HTNGHeader header = headerOF.createHTNGHeader();
    header.setTimeStamp(DatatypeFactory.newInstance().newXMLGregorianCalendar() );
    //I've created the header, but dont know how to set it.
    String request = "<GetMessages/>";
    System.out.println(stub.receiveMessageSync(request));Any advise is more than welcome.
    Thanks
    Gonso

    How are you even getting the WSDL to parse? I get:
    parsing WSDL...
    [ERROR] Non unique body parts! In a port, operations must have unique operation signaure on the wire for successful dispatch. In port HTNGListenerSoap, Operations "ReceiveMessageAsync" and "ReceiveMessageSync" have the same request body block {http://htng.org/1.1/Listener.Wsdl}Request
      line 150 of http://my.hot-sos.net/HTNGListener/HTNGListener.asmx?WSDL

  • HOw to set processing sequence of file in File adaptor?

    Hi @ ,
    I am using file adaptor where i need to ensure the files are processed in a particular sequence like a,b,c,d and if c is received before a and b it should not be processed unless a and b are processed
    Please help how to do this .
    Regards,

    Hi,
    you just need to set:
    Processing Sequence (for transport protocol File System (NFS))
    (it only works with NFS)
    and set it: By Date
    reference:
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    is that what you're looking for?
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • How to set dynamic parameter in list of values in parameter property

    Hi,
    I am using cr4e-all-in-one-win_2.0.1version.I have created .rpt file in that how to set dynamic parameters(from database) in list of values parameter property
    Regards,
    amol

    Hi,
    I am using cr4e-all-in-one-win_2.0.1version.I have created .rpt file in that how to set dynamic parameters(from database) in list of values parameter property
    Regards,
    amol

  • How to set Oracle Data Integrator Timeout paramter value as unlimited

    Hi
    Can any one help me how to set Oracle Data Integrator Timeout (ODI menu>User Paramter>Oracle Data Integrator Timeout > paramter value as unlimited.
    By default it is 30 and i want to change it as unlimited.
    I am connecting linux box through windows using citrix and opened ODI and start the scenario execution (my scenario execution in loop and it will execute continuesly) after execution starts I an logout from citrix (I am not closing ODI) and after some time like 50 min my odi execution is stoped due to timeout.
    my ODI execution should continue in my absence that to unlimited.
    Please help me it is urgent
    Regards,
    Phanikanth

    Thanks Bhabani
    Is it work for unlimited in linux box because I have given operator dispplay limit(0=no limit) as 1000000 and I am unable to see the execution session details on Operator>session list
    later i have changed to 10000 and click on ok and just refreshed and it is working fine
    If I give mensioned below it will not impact on ODI ?
    windows it is working but I have doubt on linux version
    Please help me
    Regards,
    Phanikanth

  • How to set system date as a default value in UIX/XML page?

    Example: We set default values using following statements:
    <set property="inputValue" target="${bindings.PoNumber}" value="${'1234'}"/>
    <set property="inputValue" target="${bindings.UserName}" value="${param.MyParam1}"/>
    In JDeveloper Help, we cannot find a way to set a Date attribute's default value to today's (system) date. Any suggestions?
    Also, does anyone have a reccomendation on a good book for uix/xml?
    Thanks, Ali.

    bump

  • IW31 how to set functional area as a default value?

    Dear all:
    Can anyone guide me, is any way to set "functional area" as a default value (t-code iw31 Additional Data -> Functional area)?
    Thanks in advance.

    Hello ,
    The standard funtionality is set to default the Functional Area from the Order Type.  I believe it is possible to change the default value for the Functional Area in Transaction KOT2. The PM order types should be selectable in this transaction.
    I hope this information has been helpful.
    Best Regards,
    Frank

  • Does anyone know how to set the cloud generator to loop?

    I would like to use the cloud generator as a looping backgrounf, but cannot figure out how to make it loop. I'm hoping there is an easy fix, and that is the reason I can't find support on this elsewhere!

    Hi Jim - sorry this wasn't clear.
    I would like to create a loopable file using the cloud generator in Apple Motion 5. I know what is wonderful about this generator is that it is random, but I am hoping there is a setting that will allow the content to seamlessly loop. I am willing to attack this problem from another angle if necessary, but I cannot effectively create a loop by cross-fading.
    Thank you for your help.

  • How to handle Keys (Sequences) generated in Database

    Need some pointers about how to achieve following:
    I am building a cache for TRADES and have a CacheStore supporting LOAD/STORE/REMOVE methods.
    The TRADES cache is associated with TRADE table on the database. I have most of my business logic related to adding a trade in a Database Package.
    If a new trade is being added to the table, Stored Procedure in my package will use a sequence number to assign it a UNIQUE KEY and will return the key with the call
    Now, my cache is using TRADE KEY as a key for the trade objects. If my application is putting a new trade to the cache, then how should this be designed?
    I do not really want to have sequences put in the cache as my stored procedure does it for me and there are few other applications which are using same SP.
    Has anyone implemented something like this where the key is now known until the object is entered in the database?
    I can have a TEMPORARY KEY assigned to the object and can replace the record once the trade has been successfully added to the table. As I can not do replace/update cache records in CacheStore, is there any way to achieve this?
    Following is my cache-config:
    <distributed-scheme>
         <scheme-name>PartitionedTradePOFScheme</scheme-name>
         <service-name>SweetTradeSvc</service-name>
         <serializer>
              <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
              <init-params>
                   <init-param>
                        <param-type>String</param-type>
                        <param-value>position-pof-config.xml</param-value>
                   </init-param>
              </init-params>
         </serializer>
         <backing-map-scheme>
              <read-write-backing-map-scheme>
                   <internal-cache-scheme>
                        <local-scheme></local-scheme>
                   </internal-cache-scheme>
                        <cachestore-scheme>
                        <class-scheme>
                             <class-name>com.db.spg.sweet.coherenceutil.DBCacheStoreTrade</class-name>
                             <init-params>
                                  <init-param>
                                       <param-type>java.lang.String</param-type>
                                       <param-value>{cache-name}</param-value>
                                  </init-param>
                             </init-params>
                        </class-scheme>
                   </cachestore-scheme>
              </read-write-backing-map-scheme>
         </backing-map-scheme>
         <autostart>true</autostart>
    </distributed-scheme>I am trying to be as clear as possible. If anything here is confusing, let me know.
    Thanks

    Jonathan.Knight wrote:
    <li>The AQ messaging is asynchronous so there will be a time-lag between the original put of the trade and it being updated with the version from the DB.
    <li>How does the AQ listener know what the key is of the temporary trade is that it needs to remove, presumably you write this to the DB then send it back in the AQ message?Agreed. From my CacheStore, I call Stored Procedure inside Database Package. I can pass this TEMP key to this SP as 1 extra parameter. So, I do not necessarily need to store it in the database, but just use merely as an extra parameter to be sent back to AQ. Also, when the client puts a new trade, the business logic for most of the trade processing is in our stored procedures. There, it will enrich that trade with additional information from other tables, it will also adjust the trader position and then will return with the new trade key to the client. GUI/Client Applications will provide the data required to create a trade. But SP will use this data and using other local stored procedures, it will obtain extra information for the trade, enrich all the information in a single trade record and then will create that new record.
    <li>If the code the listens to the AQ messages removes the original version of the trade from the cache before putting the new version into the cache you will have a short period of time where there is that trade does not exist in the cache
    <li>Alternatively if your AQ listener works the other way round and puts the new version into the cache before removing the original version you will have a short period where there are two copies of the same trade in the cache.
    <li>Depending on what you use-cases for reading these trades back out of the cache you could have issues with the above times when there may be one, zero or two copies of the trade.Yes. I have been thinking about that as well. But I think, as the trade entered from GUI is merely an indicator for the background/database processing. If and only if the database processing is successful, that is considered a valid trade. So as far as I know, the duplicate/old copy of the trade would still be considered as in "waiting database update" state. I am designing my GUI accordingly. I will probably check with the users about this requirement once again though. You have a valid point.
    <li>I assume your use-cases for accessing trades from the cache are not using the keys as they could not rely on having obtained the correct key for a trade as it might change. At this point, I am using these TRADE keys as my cache keys. Because, it is really easier for us to manage TRADES in the cache, especially when there are lot of lookups involved from our users
    One more thing someone I had worked with long time back suggested that, having a staging/metadata cache for all these trades to be processed from the client. Add these trades in the database and then in QueueListener, add a new trade in Trade-Cache and remove the corresponding old trade from staging/metadata cache. This also seems good, though I need to see if that is going to complicate matters in terms of processing.
    Thanks a lot JK for your suggestions. Let me know if the logic I explained makes sence.

  • User Create/Manage Form - how to set tab sequence

    hi all,
    I'm trying to set the tab seq of the oim user create/manage form such that after 'Last Name' it goes to the UDF 'Date of Birth'. So far I have tried setting the order and as well as the setting it in the formmetadata.xml with not luck.
    any suggestions would be most welcome.
    kind regards,

    Hi Mahesh,
    Use this below code to set the Tab Order.
    Private Sub SetTabVertical()
        Dim i, t, diff As Integer
        Dim oEdit As SAPbouiCOM.EditText
        diff = 50
        For i = 20 To 29
            oItem = oForm.Items.Item(i.ToString)
            oEdit = oItem.Specific
            oEdit.TabOrder = i + diff
        Next
    End Sub
    Private Sub SetTabHorizontal()
        Dim i, t, left, right, diff As Integer
        Dim oEdit As SAPbouiCOM.EditText
        left = 1
        right = 2
        diff = 100
        For i = 20 To 29
            oItem = oForm.Items.Item(i.ToString)
            oEdit = oItem.Specific
                If i < 25 Then
                    oEdit.TabOrder = left + diff
                    left = left + 2
                Else
                    oEdit.TabOrder = right + diff
                    right = right + 2
                End If
        Next
    End Sub
    Regards,
    Noor

  • How to create a sequence number to insert values to database

    I am working on the application for the client to insert their vendor informaton to our database. We have a refvendor table and vendorid is primary key. I was asked for the vendorid to be a sequential number. I am not sure if the DBA set up the vendor id to be a sequential number by creating sequence or is this something i can do myself. if so can you help me how i can create and make the vendor id a sequentiial number. Thank you
    Tablename is Refvendor
    vendorId, vendorname, dbestaus

    user452051 wrote:
    thank you for the reply. I am still learning about sequence. so the value from seq.netval will be inserted to the vendor id field. my first number will be 00001,00002,00003,00004,.... How can I do for the sequence to start with 00001If you create a sequence as shown, it will start with 1
    ,..... and my other question if I delete sequence 00002 will the number be re-arranged?no
    There will be gaps in the numbers.

  • How to set the where clause of a value set on the basis of a form field

    I am using a DFF(Descriptive FlexField), which needs to display the value of a certain column(say columnA) on the basis of the value of another column(say columnB).
    So i have created a value set which points to the table which has both these columns, and the DFF uses this value set. However, the problem is that I have not put any where clause in the value set, because of which i cannot handle the exact fetch returns more than one rows error.
    The query has to be as follows:
    select ColumnA from tbl where ColumnB = [ a form value ];
    What I want to know is how can i get the value of a certain field of a certain block of the form in the above query.
    Edited by: 981615 on Jan 14, 2013 12:48 AM
    Edited by: 981615 on Jan 14, 2013 12:48 AM

    Just have a look over these two statements if it solves your problem
    one time where clause
    Set_Block_Property('BLOCK_NAME',ONETIME_WHERE,your form item);
    dynamic where clause
    set_block_property('BLOCK_NAME'default_where, your form itme)
    you can where clause at run time from any procedure or some triggers

  • How to set List of String as variable value in BPEL

    I am using java embedding to invoke a method which returns a list of strings. I need to set these values in a variable in BPEL to be used later. I am getting following error while setting the value.
    <May 2, 2012 5:18:20 PM IST> <Error> <oracle.soa.bpel.engine.dispatch> <BEA-000000> <failed to handle message
    com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-process/}mismatchedAssignmentFailure}
    messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
    parts: {{
    summary=<summary>Mismatch Assign.
    cannot set a nonelement value to an element-based variable.
    An attempt to assign a nonelement value to an element-based variable failed.
    Verify the BPEL source for invalid assign activities.
    </summary>}
    Following is the java code
    List<String> providers = Registory.getProviders("1");
    setVariableData("providerList", providers);
    I have defined a xml element in the wsdl defintion:
    <xsd:element name="providerList">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="providerId" type="xs:string" maxOccurs="unbounded" minOccurs="0" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    providerList variable is of type "providerList".
    What else do I need to do to convert the List to the xml elements ?

    Well I believe this is not officially mentioned anywhere, but this is the limitations for the java embedding activity. You can assign value to a single variable or to the single part element of variable only. I suggest you go with a java web service. you can check more details on java embedding activity @ http://docs.oracle.com/cd/E21764_01/integration.1111/e10224/bp_java.htm
    void setVariableData(String name, Object value)
    void setVariableData(String name, String part, Object value)
    void setVariableData(String name, String part, String query, Object value)

  • How to set advance table header with a value?

    I have a advance table in which there are columns monday,tuesday.....sunday and i need to set the column header with the current week date for monday, tuesday.....sunday
    i can find the date from the VO query for each day
    but
    how can i set the Advancetable column header with the current date for monday,tuesday.....sunday ?

    Hi,
    Try the way suggested by Meher, if you are not able to find the OASortableHeaderBean then try the below one
    // Get a handle to the column's header
    OAColumnBean columnBean =
      (OAColumnBean)tableBean.findIndexedChildRecursive("<columnBeanId>");
    OASortableHeaderBean colHeaderBean =
      (OASortableHeaderBean)columnBean.getColumnHeader();
    colHeaderBean.setText(sysdate);Regards,
    Gyan
    Edited by: Gyan on Feb 2, 2011 10:24 PM

Maybe you are looking for