Submit the page and pass the value in both

Hi all

I have a tabular presentation on the EMP table. The SQL property of the form is:

SELECT empno, ename, sal
WCP
WHERE deptno =: P0_DEPTNO

On the form, I have three buttons labeled as dept10, dept20 and dept30. I want to achieve the following when I press a button:

1. send the page.
2. value of: P0_DEPTNO is set according to the key pressed.

I am able to perform only one of the above, at the same time. How can I achieve both at the same time.

I use Oracle 10 g with Apex 4.0.

Thank you
Zahid

In fact, it would be cleaner to create a single post submit PL/SQL process as follows:

BEGIN
:P0_DEPTNO := CASE :REQUEST
    WHEN 'dept10' THEN value_for_dept10 button
    WHEN 'dept20' THEN value_for_dept20 button
    WHEN 'dept30' THEN value_for_dept30 button
    END CASE;
END;

Or if you want the name of the button to P0_DEPTNO, then just

:P0_DEPTNO  :=  :REQUEST;

Tags: Database

Similar Questions

  • How to call another page and pass the page parameter to another page?

    Hi friends,

    I've finished a page based on the payment date, he turns the payroll, summarized in the table region. Now, I have to address in detail (submit) button, when click on the details button I want to open the new page, this page based on a few VO. This vo I spend 2 parameters, we're Person_id, and the second is pay date until we are on the front page.
    How to achieve this where I can write code, I am new to the OPS. could you please explain in detail and process?
    Thank you and best regards.
    Jocelyne.

    RAMU

    The value of your hashmap returns null. Let intrepret your code below

    String newValue = params.get("pid").toString();
                               null.toString(); will always throw null pointer exception
    

    Robichaud, I suggest you to always put some SOPS for debugging purposes. It is useful to locate the problem.

    Kind regards
    GYAN

  • Apex. Submit - the value of the claim

    By using a number of different versions of Apex - on this particular server is Apex v4.0.2

    The JavaScript API documentation indicates apex.submit () the definition of the QUERY variable - which I suppose is the point value of standard application used in the Apex.

    I'm currently debugging presentation on the side of the browser and apex.submit () to DISPLAY the value of the request (as a variable p_request). But the value is not accepted or implemented on the side server. With the help of : REQUEST or v('REQUEST) in the regions of the page does not display the value of the validated request. It has the value null. There is no explicit condition of branch on the page.

    Which do not work, is that the elements of page values assigned are submitted and seen by the back-end. For example if P1_NAME is defined in apex.submit (), this value is visible by regions/process page after submission. Unlike the value of demand.

    I'm doing something wrong? Is this a problem with an older version of the Apex?

    BillyVerreynne wrote:

    It works very well. All elements of page Apex that are assigned values, performed with the values and the process/regions/etc on the next page has the correct values.

    The value of the REQUEST is disabled before the exposure treatment page unless it is set in a branch or a URL, this is why he has no value when they are referenced in the next page.

    Set the attribute to query in a branch of post-submit to the target page of &REQUEST. to demand ongoing value available in the page to see the transformation.

  • Question to submit the value of the box in a tableview

    Hello everyone, I have a tableview and a checkbox in one of the columns. However, I have problems in retrieving the value for the checkbox control in my action method. Any help to solve this is highly appreciated...

    My FXML:
    <BorderPane id="adminTab" xmlns:fx="http://javafx.com/fxml" fx:controller="controllers.TabInboxController">
    ......................................
    ......................................
         <Tab fx:id="billReferralTab" closable="false"> 
             <text>Bill Referrals</text>
             <content>
              <BorderPane fx:id="billReferralsPanel">
                  <center>
                   <TableView fx:id="billReferralsDataTable"/> 
                  </center>
                  <bottom>
                   <VBox spacing="15">
                       <children>
                        <Separator orientation="horizontal"/>
                        <Button text="Accept the Bills" onAction="#addBillReferrals" defaultButton="true"/>
                       </children>
                   </VBox>
                  </bottom>
              </BorderPane>
             </content>
         </Tab>
    ......................................
    ......................................
    <BorderPane/>
    My controller: I need to retrieve the last State (enabled or disabled) of my check boxes in the table column. However it always returns false...
    //All imports
    public class TabInboxController implements Initializable {
    
        @FXML
        private TableView<BillReferralDataModel> billReferralsDataTable;
        @FXML
        private BorderPane billReferralsPanel;
    
        @FXML
        protected void addBillReferrals(ActionEvent event) {
            try {
                UserBean userBean = CAClient.getInstance().retrieveUserBeanFromCache();
                String userId = userBean.getLoginId();
                ServiceLocator serviceLocator = ServiceLocator.getInstance();
                BillReferralsDataSLBeanRemote billReferralsRemote = serviceLocator.retrieveBillReferralsEJB();
                ObservableList<BillReferralDataModel> billReferralsList = billReferralsDataTable.getItems();
                for (BillReferralDataModel billReferralDataModel : billReferralsList) {
    
                    // ALWAYS displays false irrespective of my checkbox status on the screen...
                    System.out.println("isAddToHome?::"+billReferralDataModel.getAddToHome());
                    System.out.println("isPending?::"+billReferralDataModel.getPending());
    
                }
            } catch (NamingException ex) {
                Logger.getLogger(TabInboxController.class.getName()).log(Level.SEVERE, ex.getExplanation(), ex);
            }
        }
    
        @Override
        public void initialize(URL url, ResourceBundle rb) {
            UserBean userBean = CAClient.getInstance().retrieveUserBeanFromCache();
            Integer committeeId = userBean.getCommitteeId();
    
            ObservableList<BillReferralDataModel> billReferralsList = retrieveBillReferrals(committeeId);
            billReferralsDataTable.setItems(billReferralsList);
            billReferralsDataTable.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
            CheckboxTableCellFactory checkBoxFactory = new CheckboxTableCellFactory(Pos.CENTER, billReferralsDataTable);
            billReferralsDataTable.setTableMenuButtonVisible(true);
    
            TableColumn billIdCol = new TableColumn("Bill Id");
            billIdCol.setCellValueFactory(new PropertyValueFactory<BillReferralDataModel, String>("billId"));
            billIdCol.setCellFactory(alignmentFactory);
    
            TableColumn addReferralCol = new TableColumn("Add");
            addReferralCol.setCellValueFactory(new PropertyValueFactory<BillReferralDataModel, Boolean>("addToHome"));
            addReferralCol.setCellFactory(checkBoxFactory);
            addReferralCol.setEditable(true);
            addReferralCol.setOnEditStart(new EventHandler<CellEditEvent<BillReferralDataModel, Boolean>>() {
                
                // The control never goes in here when I click on my checkboxes
                @Override
                public void handle(CellEditEvent<BillReferralDataModel, Boolean> t) {
                    ((BillReferralDataModel) t.getTableView().getItems().get(
                            t.getTablePosition().getRow())).setAddToHome(t.getNewValue());
                }
            });
            addReferralCol.setOnEditCommit(new EventHandler<CellEditEvent<BillReferralDataModel, Boolean>>() {
                // The control never goes in here when I click on my checkboxes            
                @Override
                public void handle(CellEditEvent<BillReferralDataModel, Boolean> t) {
                    BillReferralDataModel dataObject = (BillReferralDataModel) t.getTableView().getItems().get(t.getTablePosition().getRow());
                }
            });
    
            TableColumn pendingCol = new TableColumn("Pending");
            pendingCol.setCellValueFactory(new PropertyValueFactory<BillReferralDataModel, Boolean>("pending"));
            pendingCol.setCellFactory(checkBoxFactory);
            pendingCol.setEditable(true);
    
            billReferralsDataTable.setEditable(true);
            billReferralsDataTable.getColumns().setAll(billIdCol, addReferralCol, pendingCol);
        }
    
        private ObservableList<BillReferralDataModel> retrieveBillReferrals(Integer committeeId) {
            ObservableList<BillReferralDataModel> billReferralsDataList = null;
            try {
                ServiceLocator serviceLocator = ServiceLocator.getInstance();
                
                ... ... ... ... ... ... ... ... ... ... ...
                RETRIEVE DATA FROM THE DATABASE
                ... ... ... ... ... ... ... ... ... ... ...
                
                billReferralsDataList = FXCollections.observableArrayList(billReferralsList);
                Logger.getLogger(TabInboxController.class.getName()).log(Level.INFO, "Bill Referrals Data List Size::{0}", billReferralsDataList.size());
            } catch (NamingException ex) {
                Logger.getLogger(TabInboxController.class.getName()).log(Level.SEVERE, "Failed to get EJB connection");
                Logger.getLogger(TabInboxController.class.getName()).log(Level.SEVERE, ex.getMessage(), ex);
            }
            return billReferralsDataList;
        }
    }
    Plant cells to generate checkboxes:
    public class CheckboxTableCellFactory implements Callback<TableColumn, TableCell> {
    
        Pos position;
        Object object;
    
        public CheckboxTableCellFactory(Pos thisPosition, Object thisObject) {
            this.position = thisPosition;
            this.object = thisObject;
        }
    
        @Override
        public TableCell call(TableColumn arg0) {
            final CheckBox checkBox = new CheckBox();
            checkBox.setUserData(object);
            TableCell tableCell = new TableCell() {
    
                @Override
                public void updateItem(Object item, boolean empty) {
                    super.updateItem(item, empty);
                    if (item != null) {
                        boolean selected = ((Boolean) item).booleanValue();
                        checkBox.setSelected(selected);
                    } else {
                        checkBox.setVisible(false);
                    }
                }
            };
            tableCell.setAlignment(position);
            tableCell.setGraphic(checkBox);
         return tableCell;
        }
    }
    My grain of data model:
    package model;
    
    import java.io.Serializable;
    import java.util.ArrayList;
    import javafx.beans.property.*;
    
    public class BillReferralDataModel implements Serializable {
    
        private StringProperty billId = new SimpleStringProperty(this, "billId", "");
        private BooleanProperty pending = new SimpleBooleanProperty(this, "pending");
        private BooleanProperty addToHome = new SimpleBooleanProperty(this, "addToHome");
    
        public String getBillId() {
            return billId.get();
        }
    
        public void setBillId(String billId) {
            this.billId.set(billId);
        }
    
        public final StringProperty billIdProperty() {
            return billId;
        }
    
        public boolean getPending() {
            return pending.get();
        }
    
        public void setPending(boolean pending) {
            this.pending.set(pending);
        }
    
        public final BooleanProperty pendingProperty() {
            return pending;
        }
    
        public boolean getAddToHome() {
            return addToHome.get();
        }
    
        public void setAddToHome(boolean addToHome) {
            this.addToHome.set(addToHome);
        }
    
        public final BooleanProperty addToHomeProperty() {
            return addToHome;
        }
    }
    I'm sure that I'm missing out on a minor addition. Any hint on solving this would be appreciated.

    Thank you.

    Hello Florent.
    I have not read all your codes but from the title of your question. I think that you are not been able to get the status of the Update checkbox. To obtain the present value of checkbox, you must update 'OBJECTS' tableview to plant cells check box. For the State of the elements of this update...

    SIMPLE ALGORIGTHM
    -CLICK EVENT IS PAST IN THE CELL (BOX)
    -FUNCTION CELL_FACTORY TRIGGERS
    -YOU WILL GET THE INDEX OF THE LINE
    -UPDATE THE TABLE VIEW "ITEMS" WITH AND UPDATE THE SPECIFIC INDEX
    -THE CHANGES WILL HAPPEN THIS WAY

    Thank you
    Narayan

  • After popupURL, must close the window, submit the value and redirect the other window

    Hello

    I use 4 APEX for development.

    Use the following URL target in my main page

    JavaScript:popupURL('f?p=&APP_ID.:99:&APP_SESSION.::&Debug.::P99_PORT_ACC_HEAD_TAX_ID:&P20_PORT_ACC_HEAD_TAX_ID.',300,300);

    This opens the page 99. On page 99, I need to collect some required information. Once a user clicks on the button "send" in the pop-up window, the following actions are needed:

    1. an update of the database in the new value column... create a process, but it does not work because the page closes do not submit.
    2. close the pop-up window, which I use javascript:window.close();
    3 redirect the original page 20 to page 15

    Can someone please give that some advice?

    Thank you
    Ling

    If you are on apex 4, achieve dynamic Action that runs on the key

  • With the first real action runs the PLSQL code required (make sure that you add the elements of the page has changed to "Page elements to send field")
  • The second real action can be of the Js code and put it in your code.

    -----------------------
    Another way a bit more complicated (but works with all versions of the apex) is generating the JS code in PLSQL

    If your button (in the popup page) submits the page
    You will have a PLSQL process that performs the necessary treatment on the sidelines.
    After the treatment, you add the somee code that generates the code JS

    It would be like

    BEGIN
     /* Do your PLSQL Processing here */
    
     /*Js Code to close page etc
      Note that this code will be run only after the PLSQL and on the next page load, don't try to mix up JS and PLSQL expecting a JS code(between two PLSQL blocks) to run between the PLSQL blocks. Remember JS runs in browser and PLSQL in server, so all JS code waits till page is reloded
     */
     htp.p('');
    END;
    

    ---------------------------------------------------

    Another method is to add the JS code to an onload function performed only under certain conditions, he said when a page element is defined with a specific value. You set this element of the page with this is completed only once the PLSQL block value, where the JS code executes only after treatment and not on each load of laundry.

    Use one of these methods depending on what feels easy/comfortable for you.

  • LOV selection list with submit the value Null

    I have a select list with submit in which another fileld fills based on the selection. I have the TEXT Null in the LOV "Select Vendor" value but I do not know how to set the Null VALUE, while I get this error:

    ORA-01722: invalid number
    Calculation of default value of the element of error ERR-1019: page = 2 name = P2_VEND
    Ok

    I tried the following to the default value of the select list with submit without result:
    Replace (: P2_VEND, '%' | 'null %', null)

    Thanks in advance.

    Hello

    You can set the NULL value - 1 (or any other provider code which may not exist).

    Greetings,
    Roel

    http://roelhartman.blogspot.com/

  • Unique constraint on the values in both directions

    I'm looking to create a unique constraint that works in two ways. Say I got a constraint unique in columns 1 and 2. I want it to be impossible for the two lines below the two exist at the same time. Is there a way to do this? I googled around for a while now and I found nothing that works so far.

    Header 1 Header 2
    DogCAT
    CATDog

    Hello

    You can create an index based on a single function:, like this:

    CREATE UNIQUE INDEX table_x_header_1_header_2

    ON table_x (LESS (header_1, header_2)

    More LARGE (header_1, header_2)

    );

    How will you use these values?  You might be better to simply create a regular old unique constraint, but also have a CHECK constraint to ensure that header_1<= header_2. ="" that="" way,="" when="" you="" want="" to="" search="" for="" the="" combination="" ('cat',="" 'dog')="" you="" won't="" have="" to="" search="" for="" ('dog',="" 'cat')="">

  • How to select all the values populated both of LOV

    Hi all.

    I developed a form containing fields in a table. I join these areas a LOV (which get values in the other table). Now, I have to select a value only once for each record.
    But my question is how to map all the LOV values to these fields at a time. If it is possible what exactly is the way.
    If this is not possible then what is the way to do that.

    Thanks in advance

    Hello!
    Try using this code.
    You will get a lot of messages, but you can discover what column could not be red:

    declare
    l_group recordgroup := find_group ( 'lov27' );
    l_result pls_integer;
    begin
    if
      show_lov --> show the lov and user selected a value
    then
      l_result := populate_group ( l_group );
      clear_record;
      for i in 1..get_group_row_count ( l_group ) loop
        message ( 'reading  personal no' );
        :bill_detail.personal_no := get_group_char_cell ( 'lov27.personal_no', i );
        message ( 'reading  name' );
        :bill_detail.name := get_group_char_cell ( 'lov27.name', i );
        message ( 'reading  desigantion' );
        :bill_detail.designation := get_group_char_cell ( 'lov27.designation', i );
        message ( 'reading  rank' );
        :bill_detail.rank := get_group_char_cell ( 'lov27.rank', i );
        message ( 'reading  basic scale' );
        :bill_detail.basic_scale := get_group_number_cell ( 'lov27.basic_scale', i );
        message ( 'reading  basic pay' );
        :bill_detail.basic_pay := get_group_number_cell ( 'lov27.basic_pay', i );
        message ( 'reading  basic pay' );
        :bill_detail.vendor_no := get_group_number_cell ( 'lov27.vendor_no', i );
        message ( 'reading  branch code' );
        :bill_detail.branch_code := get_group_number_cell ( 'lov27.branch_code', i );
        message ( 'reading  sr no' );
        :bill_detail.sr_no := get_group_number_cell ( 'lov27.sr_no', i );
        create_record;
      end loop;
    first_record;
    end if;
    end;
    
  • Values element autologin and passing in the URL of the APEX

    We call APEX JSP URL.

    I am able to autologin to APEX application:

    http://host/pls/dad/f? p = 555:101:BRANCH_TO_PAGE_ACCEPT:NO:P101_USERNAME, P101_PASSWORD:username, password

    The problem is that I have to pass values of the item to page 10. How can I do?

    I created an item hidden in the login page (101) and created a process (before header) that sets the values of point of application.

    I tried to spend the new item values in the URL, but get an error "cannot find an id element for P101_TEST element.

    http://host/pls/dad/f? p = 555:101:BRANCH_TO_PAGE_ACCEPT:NO:P101_USERNAME, P101_PASSWORD, P101_TEST:username, password, the value

    Please suggest how to solve this problem or if there is a better way to do it.

    I discovered another way to do it is another way to do this by creating the elements of an application and passing these values in the URL.

    Create the point of application: APP_ITEM1, APP_ITEM2

    http://host/pls/dad/f? p = 555:101:BRANCH_TO_PAGE_ACCEPT:NO:P101_USERNAME, P101_PASSWORD, APP_ITEM1, APP_ITEM2:username, password, value1, value2

  • APEX 5 - missing values in link for the PAGE that is modal if it has used some PAGE ELEMENTS in the VALUE of the

    Hi Experts,

    There is a problem in the APEX when I open a modal page-> submit modal page and refresh parent region (report one).

    When I first open a report from the region and click the modal page, everything is ok:

    Modal page values are defined in the sense of link that open to it.

    Submit after modal page by button (there is a process of dialogue), the dialog box is closed. On the parent page, there is a DA - dialogue close report parent refresh.

    After update - waiting indicator is indicated - all the element referenced in the link to open modal values are defined as empty values.

    Is there a problem in the links when I use it it set the values of the elements of the page? (not report items)

    I reproduced the problem on apex.oracle.com:

    https://Apex.Oracle.com/pls/Apex/f?p=16502:9

    user/pass: demo/demo

    "Just check the link in 1 region report-#OPEN_MODAL" report item. You can check the link with the appropriate values.

    After opening modal, simply click on the button. Dialog box is closed and updated in the region. Check the link again. Link is not valid because the values are empty. (screenshots above)

    concerning

    J

    Hi Jozef,

    the values of your page P9_NEW1 - P9_NEW5 items are not in persistent session state, they are only available in memory at the time when the page is rendered. Every time when you want to refer to an element in your report, and no matter if it is in the report SQL statement or as a substitution in a link, it must present the server as part of the "Refresh" / AJAX call so that the server can initialize this session state and you are able to reference it. You can do this by setting "Page elements must send" your report. In your case, you must set it to P9_NEW1, P9_NEW2, P9_NEW3, P9_NEW4, P9_NEW5. See the example updated, you provided.

    Concerning

    Patrick

  • Pass the value to the process of request through javascript

    Hey everybody,

    I am currently struggling with the call to an application process and passing a value to it through javascript. Ideally, my javascript is triggered by a dynamic action, which itself is triggered when a user changes the value of a selection list. Below is the javascript code that is relevant:

    for (k=0; k<active_array.length; k++){
          var request = new htmldb_Get(null, &APP_ID., 'APPLICATION_PROCESS=CAL_COLORS', 0);
          request.add('x01', check_array[j]);
           var ajaxResult = ajax.get();
           alert(ajaxResult);
          active_array[k].parentNode.style.backgroundColor=document.getElementById('P14_TEST_COLOR').value;}
    

    And she calls the application process is also shown below:

    declare
    v_color varchar2(20);
    begin
    select color into v_color from cal_colors where other_user = apex_application.g_x01 and user_id = :USER_ID;
    :P14_TEST_COLOR := v_color
    end;
    

    The issue seems to be that online 03 my JavaScript, especially since my array element is not spent properly in my process. In an attempt to debug this, I added the alert message, however, instead of any relevant information, the alert shows just the HTML page! I'm at a loss as to what I'm doing wrong here, so if anyone has any input, I would very much appreciate it.

    Basically, you need to rewrite in the http buffer, using htp.p:

    DECLARE
      v_color VARCHAR2(20);
    BEGIN
      SELECT color
        INTO v_color
        FROM cal_colors
       WHERE other_user = apex_application.g_x01
         AND user_id = :USER_ID;
    
      htp.p(v_color);
    EXCEPTION WHEN no_data_found THEN
      htp.p('white');
    END;
    

    You could potentially make it much more efficient also. At the present time you loop on what is probably an array of elements, so from a tabular form probably. Rather than call an ajax for each line, you can group together them and make a call.

    Example:

    JS, you can use this to create an array with values to be placed on the server:

    var lArray = [];
    $("input[name=f03]").each(function(){
    lArray.push($(this).val());
    });
    

    And you can use the apex.server.process api to call a process on demand:

    apex.server.process("MYPROCESS", {f01: lArray}, {success: function(pData){console.log(pData);}})
    

    As you can see, the table with the values is put in the table in the f01. You must use the option of success well since it will be asynchronous (htmldb_Get.get is a synchronous call).

    With respect to the CLASS code:

    DECLARE
      l_return VARCHAR2(4000);
    BEGIN
      FOR i IN 1..apex_application.g_f01.count
      LOOP
        l_return := l_return || '"VALUE' || i || '",';
      END LOOP;
    
      l_return := RTRIM(l_return, ',');
      IF l_return IS NOT NULL THEN
        l_return := '[' || l_return || ']';
      END IF;
    
      htp.p(l_return);
    END;
    

    It will loop through the items in the table-f01 and build a new JSON notation and write it back to the http buffer so it returns to the client. It will look like this:

    ["VALUE1", "VALUE2", "VALUE3", "VALUE4", "VALUE5", "VALUE6", "VALUE7", "VALUE8", "VALUE9", "VALUE10"]
    

    I say this because when users use your application, you do not want such a quantity of calls. A single call by treatment action would save a lot of resources. You may have to loop twice on your items to apply your backgroundcolor, but I don't voluntarily not too mention jQuery since you is perhaps not familiar with it and get scared by him.

  • By the way the values and the process of PL/SQL call via a column binding

    Hi all

    I have a report and a link on one of the columns that you take you to another page and passes the data from the report to this page. Everything works well. In addition to picking up the details of the report, that I join the link to call a process page before it goes to the next page by using some of the values picked up in the report. This I can go to work by changing the link to a URL and put in some javascript that is to say javascript:doSubmit('TEST_PROCESS'); By doing this "Lose" the opportunity to pass the info according to the report, via the link.

    Can someone give me a clue as to how I can achieve both please? I guess I need to create my own javascript function, but I don't know how to enter the information of a line in a report to send.

    Concerning
    Helen

    Helen:

    JavaScript works against the current page's HTML elements. Application parts are NOT HTML elements and can therefore be manipulated directly from Javascript.

    CITY

  • How to extract the values inside the jquery element dialogue modal rigion

    Hi all

    My requeriment is

    Click report link open jquey editable modal dialog and display all values with respective ID values.

    1.I used page header HTML code below

    < link rel = "stylesheet" href = " " http://AJAX.googleapis.com/AJAX/libs/jQueryUI/1.7.2/themes/

    "Redmond/jquery - ui.css" type = "text/css" / >

    " < script src =" http://AJAX.googleapis.com/AJAX/libs/jQuery/1.4.2/jQuery.js "> < / script > .

    " < script src =" http://AJAX.googleapis.com/AJAX/libs/jQueryUI/1.7.2/jQuery-UI.js "> < / script > .

    < script type = "text/javascript" >

    $(function() {})

    () $('#ModalForm').dialog

    {

    modal: true,

    autoOpen: false,

    Width: 600

    buttons: {}

    Back: function() {}

    closeForm();

    } ,

    Approve: function() {}

    addPerson();

    },

    Return_For_Correction: function() {}

    addPerson();

    },

    Reject: function() {}

    addPerson();

    }

    }

    });

    });

    function openForm (TrxId)

    {

    Alert (TrxId);

    $s ('P3_x_trx_id', TrxId);

    $('#ModalForm').dialog ('open');

    }

    function closeForm()

    {

    $('#ModalForm_input[type="text"]').val (»);

    $('#ModalForm').dialog ('close');

    }

    function addPerson()

    {

    var ajaxRequest = new htmldb_Get (null, & APP_ID., 'APPLICATION_PROCESS is updateStatus', 0);

    ajaxRequest.add ('P3_status', $v ('P3_status'));

    var gReturn = ajaxRequest.get ();

    If (gReturn)

    {alert (gReturn)}

    on the other

    {ajaxRequest = null;

    closeForm();

    doSubmit ('SEARCH'); }

    }

    < /script >

    2. static html Id - ModalForm region

    3. region html Header-

    < div id = "ModalForm" title = "View details" style = "display: none" >

    4.footer-

    < / div >

    5. in the same page created 'extraction of line auotomatic' process by using the value of key PK P3_trx_id

    6 Jquery modal region is created but not showing values.

    Hi Dan,.

    You must create a separate page for your modal dialog box,

    Call this dialog in the parent page and pass the value modal page in some hidden item and use the value of the element to retrieve details on the modal dialog box.

    1. change your report Page-> under the header HTML

    
    

    2. change the link from which column you want to call the modal dialog box.

    Target: URL

    URL: javascript:f_modalDetails(#ID#);

    instead ID, pass the value that you want to pass to the modal dialog box that shows you the data associated with the selected line.

    3. go to the page of the form (modal dialog)

    Change your close button that closes the modal dialog box.

    Action: Redirect URL

    Target URL: javascript:window.parent.closeModalDialog();

    Close the Model dialog box using the "submit" button press

    4. create a branch on the processing section of the Page of the page of the modal dialog box

    Branch point: After Processing (After computation, validation and Processing)

    Target type: Page of this Application

    Page: Redirect to the same page

    Request: CLOSE_MODAL

    When you press the button: select the Send button

    NOTE: Branch must be before all the unconditional branch on this page

    5. create a dynamic Action on the Page modal dialog box

    Event: Page load

    Action: Run the JavaScript Code

    Code: javascript:window.parent.closeModalDialog();

    Kind regards

    Jitendra

  • How to assign the value to the application-level element

    Hello

    I'm learning to APEX.  I use version 4.2.6.

    My question is, I set a text field called 'FINANCIAL_YEAR' in the login page.  I wanted to know how to assign this value to a text element of Application level (on page sent), so that I can get this value through at my request.

    Thank you

    -Anand

    anand_gp wrote:

    Yes, I created a 'text area' under 'HTML' in the 'Home' page  Who accepts the exercise of a table through LOV.  I intend to assign this value to a global variable so that this variable can be read in any of the application to filter the result set from different tables (not yet built the rest of the application).  To do this, I was intending to use "Shared components"-> "Elements of Application".  I'm still not quite sure how it works.

    Start by reading the documentation on elements of application.

    Go to the shared components > Application parts and create your G_FINANCIAL_YEAR item. Value Session State Protection Restricted - can not be set the browser so that the value is not editable by the user, falsification of URLS or scripts.

    On the home page, if there is not already a button to submit the value of the fiscal year, add one in the HTML area, with the Action as a submit Pageclick. Otherwise, you can do without the button and using submit Page in Page Action when the changed value select the parameter in the list so he can undergo.

    Then, in the section of the Page processing, create a calculation:

    Point Type: Application-level element

    Calculate Item: Application: G_FINANCIAL_YEAR

    Point calculation: After submit

    Type of calculation: Value of the element

    Calculation:

    Run the application, select a value in the list of the fiscal year and submit the page. Review of current session state in the viewer of session state by clicking on the link of Session in the toolbar developer. Select the Elements of Application in the view list, and then click set. The element of your application and its current value must be visible. You can now reference value throughout your application by using the appropriate syntax.

    You should also consider if a default value (for example the current year) using a calculation Application from the point of calculation on the new Instance and coordinate the application point and part of the homepage using point application as the Source of value or an expression with Source page element, the value always, replacement of value that exists in the session state.

  • Getting the value null inserted in the back end when the field is turned off

    Hi gurus,

    I have a TOTAL field that is the sum of the other two fields in a form. I have disabled because do not have the user enter the value. The TOTAL field is the poster of the sum of the values in the front end, but in the back-end, the value is null. Please help me solve this problem. Thanks in advance.

    Have you tried to make the point read-only? Set the read-only item and try. You can do the unalterable element by two methods,

    (1) amend section-> go to read only tab-> read-only Condition Type: always

    (2) create a dynamic Action-> event: loading the Page-> Action: run the JavaScript Code-> Code:

    $('#P1_TEST').attr ('readOnly', true);

    $('#P1_TEST').css ('background-color', '#CDCDCD');

    Tom wrote:

    set the item read-only instead (not editable by the user but will present)

    Set the element value using the da no need to activate the item before submitting because the element is not disabled. Make the point read-only so that it will submit the value to the session and point cannot be changed always.

    Thank you

    Lacombe

Maybe you are looking for

  • NFC and free freestyle

    I want to connect a free freestyle on an iphone. Free freestyle is a bloodsugarlevel counter that connect to a phone using NFC. SAmsung has allowed for their phones. As for Apple?

  • Going, I have a problem with the iPhoto update to pictures?

    I moved my iPhoto library to another internal HD. There are now not there in the folder my pictures on my boot drive. When I switch to El Capitan will that be a problem? I'll do a clean install of El Capitan. Others what precautions should I take? Ma

  • HP 300-030na: you can add a ssd to the HP 300-030na

    Hello I want to know is you can add a ssd M2 to the HP 300-030na as a second hard drive? I would like to have the essential motivation of the ssd for the speed of startup and disk of 1 TB for storage. Is - this somthink is that you can do on this mac

  • Keep installation of updates KB2656351 and KB2487367

    Win XP. NetFramework 2.0 Service Pack. NetFramework 3.0 Service Pack 2. NetFramework 3.5 SPI. NetFramework 4 Client Profile. NetFramework expanded 4. KB2656351 and KB2487367 - updates both updated several times and so did during these last months. Ac

  • CPU 32-bit and 64-bit operating system

    running a 64 bit os on a 32-bit processor would cause the machine to run more slowly than normal and by normal I mean as a 32-bit os with a 32 bit processor