How to get sequence value on click of button in OAF Page

Hi all,
I have a requirement to get a field called Bankrefernece number populated with sequence value on click of apply button ; i mean inserting new record in database for new transaction.
Sequence Value should be something like this:
Example
No     Transfer Date     Bank Reference Number
(DDMMYY_999)
1     24-Oct-2010     241010_001
2     24-Oct-2010     241010_002
3     25-Oct-2010     251010_001
means every day sequence should start with the date initials.
Kindly give your valuable input.
Thanks
Sims
Edited by: sims on Jan 4, 2011 11:22 PM

sims wrote:
Hi Anil,
Its a standard page & i want it on click of apply button but my question is when i click apply button it navigates to other page..is it possible in such scenario to extend the controller.
Thnx for ur suggestion
SimsThat is not an issue, you can extend the controller of that page and get the value of sequence and set it to the VO attribute.
Thanks
--Anil
http://oracleanil.blogspot.com

Similar Messages

  • How to Get the value when clicking on the link

    I had a problem with when clicking on the link.
    I need get the link value to the controller when clicking on the link.
    I am displaying the database columns in jsp using repeater in links.
    I am displaying the data like this:
    RED
    BLUE
    GREEN
    these are three links.when clicking on the link RED. RED should go to the controller.
    After getting RED to the controller i will get the RED value from the database.

    my requirement is like that only
    I have just given the example of emp and dept
    emp(empno,zone_group_id,zone_id,deptno,ename,emp_p_ind,last_update_datetime);
    dept_emp(empno,dept_no,loc,dname,sal_emp,grade,last_update_datetime);
    CREATE OR REPLACE VIEW emp_zone AS
    SELECT e.empno,
          (select zone_group_id from price_zone_group where rownum = 1) zone_group_id,
           d.loc zone_id,    
           d.grade,  
           d.last_update_datetime,
      FROM dept_emp d
          emp e
    WHERE d.empno=e.empno
       AND e.emp_p_ind = 'Y'
      WITH READ ONLY;
    Now
    my requirement is to get the data of emp_zone view and needs to store those data into some other temp table
    if any of the above base table got updated deleted or inserted then the view last_updatetime also will get updated but problem is why im not using base table
    direct because it is having huge data and it performance issue .i have to get the value on the basis of view only and using some logic

  • How to get sequence value?

    hi,
    i'm trying to store sequence's value into a variable... smth like this:
    create or replace function my_funct() as integer
    is
    begin
    return my_sequence.currval;
    end;
    and "return my_sequence.currvalue" doesn't seem to work...
    also i'would like to store that value into a variable, like:
    is
    i integer;
    begin
    i := my_sequence.currval;
    end;
    this also doesn't seem to work
    regards

    Hi,
    You will using this method to store sequence value to variable
    declare
    i number;
    begin
    select sq.currval into i from dual;
    dbms_output.put_line(i);
    end;
    Anbudan,
    Radha.

  • How to get a value given to a button in HTML using a href tag

    Hi,
    In my application I have loaded  html  content  in WebView. In the HTML file i have used a Button to which i have given some value in href tag as
    <a href="ButtonClick//testing/mysample">
    <input type="button" value="Click me" />
    </a>
    When i click the button i want to get the string "ButtonClick//testing/mysample" in my app..  But i do not want to use InvokeScript() on my webview.. Could anyone please give me a solution for this?..
    Thank you.

    The only way to interact with HTML content from WebView is using JavaScript. You can do this by invoking such scripts from your C# code (using InvokeScript) or embedding the JavaScript method into the button you are working with.
    But you need to know that if you intend to get a return value from your JavaScript code, you would need to use the InvokeScript.
    Here's an example of printing the value from your hyperlink without InvokeScript. But note that it only prints the value and can't return the value to your C# code without InvokeScript.
    string htmlContent = @"
    <html>
    <head>
    <script type='text/javascript'>
    function myFunction()
    document.getElementById('myResult').innerHTML = document.getElementById('myLinkConent').href.substring(6); //remove 'about:' from href string
    </script>
    </head>
    <body>
    <a id='myLinkConent' href='ButtonClick//testing/mysample'>
    </a>
    <input type='button' value='Click me' onclick='myFunction()'/>
    <p id='myResult'></p>
    </body>
    </html>";
    Let me know if this helps.
    Abdulwahab Suleiman

  • How to get inputted value in a RTE field on custom page and submit by REST call in 'Sharepoint hosted app'.

    Hi I am facing the three questions below.
    1. How to use default RTE in custom page in Sharepoint hosted app.
     I saw the article of Rich text Editor (ribbon based) in a webpart in SharePoint 2013 and tried it. But it did not work well. I guess it needs code-behind setting, however sharepoint hosted app does not support code-behind.
    Does anybody know how to do this?
    2. In above case, I placed the below code on custom page and tried to get the field's value when submit button was clicked.
    <SharePoint:InputFormTextBox ID="rftDefaultValue"
    RichText="true"
    RichTextMode="FullHtml" runat="server"
    TextMode="MultiLine" Rows="5">
    </SharePoint:InputFormTextBox>
    In debugger, the returned value was 'undefined'.
    var note = $('#hogehoge').val();
    Is it possible to get the RTE value? If yes, please let me know how to do this.
    3. I need to submit the RTE value using REST call.
    In this
    article in MSDN, the item creation sample treats single line text field. Does anybody know the sample for RTE?

    Hi,
    According to your description, you might want to use Rich Text Editor control in your SharePoint hosted app.
    First of all, I would suggest you post one question in one thread to make it easier to be discussed, which would also help you get a quick solution.
    Though we can add this control into a SharePoint hosted app, however, as we can’t add code behind for it, plus with the potential compatibility issues in different
    browsers, I would suggest you use other JavaScript Rich Text Editor plugins instead.
    Two JavaScript Rich Text Editor plugins for your reference:
    http://quilljs.com/
    http://nicedit.com/
    If you want to submit the value of Rich Text Editor control to a SharePoint list using REST call, since the content in the Multiple Line of Text column is wrapped
    with nested HTML tags, the similar requirement would also be applied to the content to be submitted.
    Here is a code snippet about how to update a Multiple Line of Text column for your reference:
    updateListItem(_spPageContextInfo.webAbsoluteUrl, "List018", 1);
    function updateListItem(siteUrl, listName, itemId)
    var itemType = GetItemTypeForListName(listName);
    var item = {
    "__metadata": { "type": itemType },
    "MultiTextEnhanced": "<div><a href='http://bing.com/'>Bing</a><br></p></div>",
    "Title": "123"
    $.ajax({
    url: siteUrl + "/_api/web/lists/getbytitle('" + listName + "')/items(" + itemId + ")",
    method: "GET",
    headers: { "Accept": "application/json; odata=verbose" },
    success: function (data) {
    console.log(data);
    $.ajax({
    url: data.d.__metadata.uri,
    type: "POST",
    contentType: "application/json;odata=verbose",
    data: JSON.stringify(item),
    headers: {
    "Accept": "application/json;odata=verbose",
    "X-RequestDigest": $("#__REQUESTDIGEST").val(),
    "X-HTTP-Method": "MERGE",
    "If-Match": data.d.__metadata.etag
    success: function (data) {
    console.log(data);
    error: function (data) {
    console.log(data);
    error: function (data) {
    console.log(data);
    // Getting the item type for the list
    function GetItemTypeForListName(name)
    return"SP.Data." + name.charAt(0).toUpperCase() + name.slice(1) + "ListItem";
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Patrick Liang
    TechNet Community Support

  • How to get current value of checkBox on button press programatically in adf

    Hi,
    I want to get the current value of checkbox(checked/unchecked or 0/1) in my java bean whenever I press submit button on my jspx page.
    My JDeveloper version is : 11.1.1.6.0

    Where is the checkbox value bind to? The status of hte checkbox is hold in the value property of the checkbox. This is normally an EL like
    #{bindings.Myvar1.inputvalue}or something pointing to a bean property. This value can be read from the action listener of your submit button
            BindingContainer bindingContainer = BindingContext.getCurrent().getCurrentBindingsEntry();
            AttributeBinding attr = (AttributeBinding)bindingContainer.getControlBinding("Myvar1");
            Object obj = attr.getInputValue();Timo

  • How to get the CCID from a Key Flexfield in OAF page

    Hi all,
    I have created a KFF on a custom page/region.
    I can search on segments and select a value in the Flex field Lov.
    I am not sure how I can read the ccid that is behind a selected code combination.
    I would like to read the value of the ccid on the click of a submit button.
    I can certainly identify the Button event with a given name but not exactly sure what should be coded in the processFormRequest method.
    Below is my KFF implementation code in the processRequest of the controller:
    OAKeyFlexBean kffId = (OAKeyFlexBean)webBean.findIndexedChildRecursive("DrKeyFlexItem");
    // Set the code combination lov
    kffId.useCodeCombinationLOV(true);
    // kffId.useCodeCombinationLOV(false);
    //set the structure code for the item key flex
    kffId.setStructureCode("UK_ACCOUNTING_FLEX");
    // Unite Account Structure code - ACCOUNTING_FLEXFIELD
    //Set the attribute name to the item
    kffId.setCCIDAttributeName("CodeCombinationId");
    //Execute the Query
    UnIntraSearchKFFAMImpl am = (UnIntraSearchKFFAMImpl)pageContext.getApplicationModule(webBean);
    UnIntraSearchKFFVOImpl vo = (UnIntraSearchKFFVOImpl)am.findViewObject("UnIntraSearchKFFVO1");
    if(!vo.isPreparedForExecution())
    System.out.println("Just before executing the VO Query");
    vo.executeQuery();
    Thanks
    Vinod

    The issue here is while you are retrieving all the details, you are consistently overwriting them in the request.setAttribute() call before you get to the JSP to display them.
    Do you actually have a class/object called Student?
    That object should have attributes for classes, subjects, teachers (all of which are lists apparently)
    public class Student{
      String name;
      List classes;
      List subjects;
      List teachers;
      // appropriate getter/setter methods
    }Then you load each student, and populate its individual lists.
    That lets you pass the list of students, each student having its own lists for display.
    Hope this helps,
    evnafets

  • Need to get sequence value in another column in oracle

    Hi ALL,
    I have sql query as below
    select header_id,order_number from oe_order_headers_all.
    and data it is displaying as
    heder_id     order_number
    111            500001
    121            500400
    I need to display  another field with some sequence value like as below
    id     heder_id     order_number
    1      111                    500001
    2      121                    500400
    so how to get sequence value in another column please help me on this.
    Thnaks

    You can just use ROWNUM Pseudocolumn
    select rownum id, header_id,order_number from oe_order_headers_all

  • How to get the value assigned in dropdowmlistbox as well as radio button

    Hi Everybody,
       Please help me to find the solution for the following:
       1. How to get the value assigned in dropdowmlistbox?
       2. How to get the value assigned in radio button?
      I am waiting for the answer and reply...
      Thanks & Regards,
      ShanthaKumar.KA.

    The radio button has a name attribute. That name attribute should be the same as the bean property. Then you just need a
    <jsp:setProperty name="mybean" property="*"/>
    and the bean's set method will be called for the value of that radio button.
    so...
    <input type="radio" name="doit"/>
    class MyBean
    public void setDoit( boolean yes )
    //do whatever here
    }

  • How to get the value from a cell in jTable without click "enter" or "tab"

    Hi guys,
    I have a simple question. I have a jTable in my screen and when editing a value, but without click "enter" or "tab" I want to get the new value. I have a button update and after editing the value I click the button "update" and I want the new value to be store in my table. If try to get the selected value it is giving the old value. How can I implement this? Any idea? I hope I was clear.
    Thanks

    [Table Stop Editing|http://www.camick.com/java/blog.html?name=table-stop-editing]

  • How to get the values from popup window to mainwindow

    HI all,
       I want to get the details from popup window.
          i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
       now i am able to display popup window with values.How to get the values from popup window now.
       I can anybody explain me clearly.
    Thanks&Regards
    kranthi

    Hi Kranthi,
    Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
    Regards,
    Uday

  • How to get column value from DB grid

    Hi!
    I wander how to get col value from GridControl?
    My app consists of one rowsetinfo with two
    columns CODE and DESCRIPTION and a jbutton
    titled SELECT. When user clicks SELECT button
    the app should show the value of the CODE col
    of the selected row in GridControl.
    I wander how to make this action ?
    XxpsTransTimesMasterIter.setAttributeInfo( new AttributeInfo[] {
    CODEXxpsTransTimesMasterIter,
    DESCRIPTIONXxpsTransTimesMasterIter} );
    XxpsTransTimesMasterIter.setName("XxpsTransTimes");
    XxpsTransTimesMasterIter.setQueryInfo(new QueryInfo(
    "XxpsTransTimesMasterIterViewUsage",
    "lov.XxpsTransTimes",
    "CODE, DESCRIPTION",
    "XXPS_TRANS_TIMES",
    null,
    null
    ));

    Hi,
    You could attach an ActionListener on the JButton, and try the following code :
    NavigationManager fm = NavigationManager.getNavigationManager();
    DataItem dataItem = fm.getFocusedControl().getDataItem();
    ImmediateAccess col_code = null;
    String code = null;
    if (dataItem != null && dataItem instanceof RowsetAccess) {
    RowsetAccess rowset = (RowsetAccess)dataItem;
    try {
    col_code = (ImmediateAccess) rowset.getColumnItem("CODE");
    code = col_code.getValueAsString();
    } catch (DuplicateColumnException de) {
    return;
    } catch (ColumnNotFoundException ce) {
    return;
    } catch (SQLException se) {
    return;
    JTextField tf = new JtextField();
    tf.setText(code);
    I haven't tested this code.
    I am curious to know, the Object type of the dataItem.If it doesnot happen to be RowsetAccess ..try.. ScrollableRowsetAccess OR ImmediateAccess.
    Your code would change accordingly, depending on the instance.Refer to the product documentation for this.
    Do let me know, if this works.
    TIA
    Sandeep

  • How to get argument value from portal desktop URL

    hi,guys
    I have a question ,it is how to get argument value.see:
    in one portal desktop,I have a hyperlink like this
    http://localhost:7001/TestPortal/appmanager/testPortal/testDST?eventId=1
    after click,then will be switch another desktop "testDST"
    I tried to get value from request,but failure.
    @RequestMapping
    public String listTestList(RenderRequest request, RenderResponse response,ModelMap model) {
    //HttpServletRequest httpRequest = (HttpServletRequest) ; //request.getAttribute("javax.portlet.portletc.httpServletRequest");
    //log.debug("httprequest eventId>>>" + httpRequest.getParameter("eventId"));
    log.debug("render request eventId>>>" + request.getParameter("eventId"));
    I can't get this value from request,also tried httpServeltRequest,but httpServletRequest can't get,it is null;
    so ,how to get this value,thank you very much.
    regards
    aris

    Hello,
    It is true for JSR168 portlets that you can't just arbitrarily set parameters on a URL and get access to them inside your portlet- you must use the appropriate APIs on the PortletURL class to set parameters that you can retrieve. This is the only portable (standards-compliant) way to implement the functionality you want.
    However, for your particular use-case, you can get the URL parameters from the (non-JSR168) HttpServletRequest object. The only reason you are getting a null object for that is because the attribute name is wrong. This should work:
    HttpServletRequest httpRequest = (HttpServletRequest)(request.getAttribute("javax.servlet.request"));
    String eventId = httpRequest.getParameter("eventId");
    Kevin

  • How to get the values of the fields inside pageFragment

    Hi All,
    I am working on Jdeveloper 11.1.1.5.
    I have a fragment "home.jsff", in that fragment i have two textboxes(txt1,txt2);
    Then i have created a bounded taskflow "myTF"and dragged the home.jsff inside it and used as a default activity.
    Now finally i have "final.jspx" , in which i have dragged and dropped the bounded taskflow "myTF" as a region.
    Scenario : - I have a button on final.jspx , and on click of that button i need to get the value of those two textboxes using bindings which is present in fragment .
    On Click of button,I am using this method of pageDef and i am able to get the values :-
    jsfUtils.resolveExpression("#{data.abc_homePageDef.txt1.inputValue}");
    but somehow it gives me null in some conditions.I don't know why it sometimes gives the value and why it doesn't.
    I have seen this video in which Frank has told about the API Mistakes : -
    http://download.oracle.com/otn_hosted_doc/classic_api_mistakes_part1/classic_api_mistakes_part1.html
    and i did the same mistake but what is the another approach .
    If i need to get the current value of txt1, then how can i get it??
    What is the best approach to get the values of the pageFragment attributes and how to use it ?
    Please suggest!!!
    Regards,
    Shah

    Hi Tulasi,
    As i have said that i am trying to get the values on the click of button(*not on page load*) situated on final.jspx page.
    On click of button i am using this code to get the values :-
    public String getValueTextBox()
    Object valueTXT= getBoundAttributeValue("txt1");
    logger.info("value is"+ valueTXT); *// It shows the value as null.*
    return null;
    public Object getBoundAttributeValue( String attributeName) {
    BindingContext bctx = BindingContext.getCurrent();
    BindingContainer bindingContainer = bctx.findBindingContainer("abc_homePageDef");
    if (bindingContainer != null) {
    ControlBinding ctrlBinding = bindingContainer.getControlBinding(attributeName);
    if (ctrlBinding instanceof AttributeBinding) {
    return (AttributeBinding)ctrlBinding;
    return null;
    Please suggest!!!
    Regards,
    Shah

  • How to get a value for Select One Choice in the backing bean

    Friends,
    Does any one have any idea, how to get the value of a selected item value from the Select One Choice component in the backing bean iin valueChangeListener method. Right now I am always getting the sequence of the selected item, instead the actual selected value. I tried using 'ValuePassTrhough=true' also.. but didn't help
    Below is the my code snippet
    <af:selectOneChoice value="#{bindings.country.inputValue}"
    required="#{bindings.country.hints.mandatory}"
    shortDesc="#{bindings.country.hints.tooltip}"
    id="soc1" autoSubmit="true" valuePassThru="true"
    valueChangeListener="#{pageFlowScope.Bean.onValueChange
    <f:selectItems value="#{bindings.country.items}" id="si2"/>
    </af:selectOneChoice>
    Thanks in advance.

    check my other post at Re: Pass data from a variable to another page

Maybe you are looking for

  • How do I use Paged Media styles in css3 ( headers and footers ) ?

    I need to make printer friendly web pages, with neatly styled Page Headers and Footers. == This happened == Not sure how often == Designing Style Sheets for Printer

  • Multiple instance of custom attributes ACS 5.x

    Hello, is there a way to have multiple instances of user custom attributes and insert those as multiple instances of the A/V Pair in the authorisation profile in ACS 5.2/5.3 ? Background: We have to migrate a ACS 4.2 to 5.3. In ACS 4.2 our client use

  • Is BPEL In Built in SAP Netweaver?

    Hi, I am new to SAP XI,could someone please help me on the below query. Could someone please clarify me if BPEL is inbuilt in SAP Netweaver or do we need to use it as a plug in. I could not get any articles helping me how to develop BPEL using Netwea

  • Discussion Forum, Forum doesn't create

    I am trying to use a Discussion Forum in my portal but in admin when I try to create a forum it doesn't create or post. I followed the directions in loading the components and both the user and the admin displays as expected. Discussion Forum works f

  • New IPhone has random person's email as Apple ID

    I just got my first iPhone today, and when I tried to download some apps it asked me for my Apple ID password, but it reads: "Enter the Apple ID password for '[email protected]'" I have no idea who Angelo Pezzino is, and it won't let me do anything b