Show only items returns Null while watch value

Hello

I have a single display element (P1_ID) on my page in which:

Source: replacement always, value that exists in session state

Source type: SQL (return the unique value) query

Select Max (ID) from User_table

I have a process that will remove data in another table based on the value of this element. (ID is PK in User_table and FK in my_table)

DELETE FROM MY_TABLE WHERE ID =: P1_ID;

Zero or lines will be deleted

However, : P1_ID is null, while this is to show the value... when I do the point as hidden and protected the deletion will work... but I need to show the value on my page as show only...

I use APEX 4.2

so could someone please help me?

Minoo.TK wrote:

Hello

I have a single display element (P1_ID) on my page in which:

Source: replacement always, value that exists in session state

Source type: SQL (return the unique value) query

Select Max (ID) from User_table

I have a process that will remove data in another table based on the value of this element. (ID is PK in the User_table and is FK my_table)

DELETE FROM MY_TABLE WHERE ID =: P1_ID;

Zero or lines will be deleted

However,: P1_ID is null when it indicates the value... when I make the point as hidden and protected the deletion will work... but I need to show the value on my page as show only...

I use APEX 4.2

so could someone please help me?

case 1:-IF you use session state - YES

and dynamically change its value it give error protection session state in the future.

Reference:--

Session state protection violation

display only the item and save session state

case 2:- but if your session set State = no. it ends the session state protection error

but you will not be able to use the value defined in the feature display

Solution:-in your case if you want to use the value in the element displayed only as you say

It works with the value of the hidden Yes it will be.

either use your display for viewing only, and also set the value of element element hidden to remove from the table

because

NOTE:-you cannot set save no. session and its value used in parallel (or it can be used to remove or add that I tested and faced this thing too)

one last thing keep hidden protected point value NO otherwise, it will give error:-manually editing the protected point

Reference:--

HI, Patrick:

We had the same problem that ' "violation of Page protection: this can be caused by a manual editing of a protected page items." " If you don't know what caused this error, contact the administrator of the application for assistance. Contact your administrator for the application. ».

APEX 4.1.1.00.23 page protection violation

Tags: Database

Similar Questions

  • Office mail sent blackBerry smartphones showing only not on Pearl - bt yahoo

    Hello people. Mail sent via account yahoo bt BB pearl 8110 appear ok in the box sent unit and sent box office. However email account bt work stations, shows ok on office sent box but not as a BB pearl point sent. Essentially of BB shows only items sent to your handheld, but I want to show him the sent items of office as well. Thanks in advance!

    Hello!

    Please see this link:

    KB05133 Features of the BlackBerry Internet Service email reconciliation

    Basically - WAD... Work as expected.

    Hope that helps... Well, at least helps to better understand.

    See you soon!

  • BC4J: EntityAssociation.getSourceEnd () .getDBObjectName () returns null

    Dear forum,

    I use JDeveloper 10.1.3.4.0.4270 with 10.1.3.42.70 ADF business components.

    This is what I call inside the validate method of a class that extends EntityImpl.
        
        private void test(){
            EntityDefImpl entityDefImpl = this.getEntityDef();
            AssociationDefImpl[] associationDefImpls=entityDefImpl.getAssociationDefImpls();
            for(int iter=0;iter<associationDefImpls.length;iter++){
                AssociationDefImpl associationDefImpl=associationDefImpls[iter];
                EntityAssociation entityAssociation=associationDefImpl.getEntityAssociation();
                System.out.println(entityAssociation.getSourceEnd().getDBObjectName());      // null
                System.out.println(entityAssociation.getSourceEnd().getName());       
                System.out.println(entityAssociation.getDestinationEnd().getDBObjectName()); // null
                System.out.println(entityAssociation.getDestinationEnd().getName());
            }
        }
    My problem is that getDBObjectName() always returns null, while getName() returns what it should be, and, otherwise, everything looks beautiful and functional as it should.

    I guess I'm doing something wrong here. So, how could I, in implementation of the entity, its associations list and search the database of the names of tables?

    Thank you for your help,

    ADSM

    Try:

    System.out.println(((EntityDefImpl)entityAssociation.getSourceEnd().getOwner()).getSource());
    System.out.println(((EntityDefImpl)entityAssociation.getDestinationEnd().getOwner()).getSource());
    
  • XMLDOM. Item returns a null value

    Hi, I have a little problem with xmldom.item treatment.

    For some reason, this statement returns me null and I don't know the reason why, here is a sample of what I'm doing:

    Select MENSAGEMXML in the R_BD_SS_XML_SP lobExistente where idSP = P_idSP;
    parserXML: = xmlparser.newparser;
    XMLParser.parseclob (parserXML, lobExistente);
    documentoExistente: = xmlparser.getdocument (parserXML);
    XMLParser.freeparser (parserXML);

    parserXML: = xmlparser.newparser;
    XMLParser.parseclob (parserXML, P_documento);
    documentoNovo: = xmlparser.getdocument (parserXML);
    XMLParser.freeparser (parserXML);

    listaNosAAdicionar: = xmldom.getElementsByTagName(documentoNovo,'R_Acti_API_SP');

    listaRootNode: = xmldom.getElementsByTagName(documentoExistente,'ListagemAvarias');


    rootNode: = xmldom.item (listaRootNode, 0);
    Size: = xmldom. GETLENGTH (listaNosAAdicionar);
    dbms_output.put_line (' we have ['| size |'] our add para.');


    Contador in 0.tamanho - 1 loop
    dbms_output.put_line (' #' |) Contador);
    n: = xmldom.item (listaNosAAdicionar, size);
    Xmldom.isnull (n) = FALSE then if - <-this allways failure condition why is - what happens if contador reiterated 7 times?
    dbms_output.put_line (' node: ' | xmldom.getNodeName (n) |'. ');
    outroN: = XMLDOM.importnode (n, documentoNovo, true);
    on the other
    dbms_output.put_line ('node does not exist');
    end if;
    end loop;

    OK, if the stetement

    Size: = xmldom. GETLENGTH (listaNosAAdicionar);

    the value 7 which meens that listaNosAAdicionar made of nodes inside why

    n: = xmldom.item (listaNosAAdicionar, size);

    allways return null?

    I use Oracle 9i.

    Thank you
    Best regards
    João

    Published by: João Lopes on July 6, 2009 09:29

    Shouldn't this line

    n: = xmldom.item (listaNosAAdicionar, size);

    be

    n: = xmldom.item (listaNosAAdicionar, contador);

    While you're picking up each element in the list as you go through the loop?

  • Hide and show region - open if Item not Null

    Hello
    I use APEX 4.0 and can not find a way to get the skin and see the region develop if a Page element has a value (is not Null) in the region, without clicking the sign more. I would like it done automatically based on an item that has a value or not. null or not null. I know how to have always hide it and see the region see the/develop once the shape is present. But if the item is null the region hosts not on the loading of the page, but when an element has the value when the page opens, I want the area to be open / extend without having to click the sign more. I searched the forum and found a large number of threads to have just the Hide and Show open area / develop once the form on the page is open, but not what I need now. Thanks for reading this thread and look forward to a support for this issue.

    Hi Charles,

    I created a dynamic action on page 7, it works as expected.

    This code will only work with your current theme, because the rocker is made according to the css class of the > icon (as you can see in the live action)

    Thank you

  • Show the item only after the process ran

    Hello

    I have 3 questions:
    -: P1_ENTERED_VALUE (text field)
    -: P1_DEFAULT_VALUE (display text)
    -: P1_DIFF_VALUE (display text)

    Users enter a value in: P1_ENTERED_VALUE and trigger a process with a button.
    The process compares the number of: P1_ENTERED_VALUE with: P1_DEFAULT_VALUE and fills: P1_DIFF_VALUE. So far, it's working.

    What I want is: P1_DEFAULT_VALUE and: P1_DIFF_VALUE are not displayed until the key was pressed.
    What I tried: because: P1_DIFF_VALUE is null until the process, I put a condition to element: P1_DEFAULT_VALUE:
    -Condition Type: "value of element in the Expression 1 is NOT NULL"
    -1 expression: P1_DIFF_VALUE

    If the colon (: P1_DEFAULT_VALUE and: P1_DIFF_VALUE) would show only after that the process is running.

    The problem is that: P1_DIFF_VALUE now always shows 0 and no difference, because the element with the condition (: P1_DEFAULT_VALUE) obviously to not just hidden before the process, but too inactive.

    How can I solve this problem?
    Thanks in advance,

    Roger

    Roger:

    The calculation of P1_DIFF_VALUE should be done using the element hidden in which you retieved "by default".
    The hidden element should not be subordinated.
    Are these two statements true for your page?

    CITY

  • Show only distinct values in narrative mode

    Hi guys!

    Here again, we are trying to reach an ambitious goal.

    It is possible to show only distinct values in a narrative view? For example, I have a query that retrieves about 100 lines. In these lines, a few different years, it is something like this:

    1-2013, Jhon, 10

    2-2013, Brian, 15

    3-2013, Pete, 20

    ...

    10-2014, Steve. 5

    11-2014, Kevin, 12

    ...

    90-2015, Ray, 24

    91-2015, Michael, 2

    ...

    It is possible a mode display narrative only something like that?

    Years: 2013, 2014, 2015

    If I use the feature number @column, I get as many years the results are retrieved. It is not user friendly.

    Any help will be appreciated.

    Best regards

    Fabian

    Hi all!

    I found my own solution and I want to share with you. Maybe it helps someone in the future.

    I used JavaScript to iterate through each row value. By each line, I'll check if it value is added to the overall picture with unique values. If not added, I add it, otherwise, I do nothing.

    Here is my script (pay attention to each code block, it must be in its proper "narrative class"):

    Narrative section prefix

  • Sometimes AdfRichInputText.getValue () returns null, entry has a value of

    Hello

    JDev 11.1.2.0.0

    a slightly more specific question:

    As explained in How can I intercept search-on-enter the richeTableau? I intercept the query on the table event to check some fields on the client side.
    When the query event listener is called, I get the target area, get the value, and according to which, I grant the motion or not:
    function tableOnQuery(evt) {
      var field = AdfPage.PAGE.getActiveComponent();
      
      if(field) {
        if(field.getComponentType() === "oracle.adf.RichInputText") {
          var fieldValue = field.getValue();       <============================ This is null, but the user has typed stuff into the field
    
          var element = document.getElementById( field.getClientId() + "::content" );
          fieldValue = element.value;             <============================ This returns the field's value alright
          .............
    So it seems to be a workaround, but obviously I prefer stay in the rich field of JS ADF customer classes and not play with the DOM elements.
    But what's not here?

    Thank you

    Sascha

    Hello

    call getSubmittedValue() as otherwise, you get the local value which, for new fields is null

    Frank

  • apex_util.get_email returns null values

    Request Express 4.1.0.00.32

    I created a calculation for a page element to get the email of the user.

    The page is P16_EMAIL_ADDRESS.

    The calculation is a type of PL/sql. The code is:

    DECLARE
    L_EMAIL_RTN VARCHAR2 (240);
    BEGIN
    L_EMAIL_RTN: = APEX_UTIL. GET_EMAIL (p_username = > 'APP_USER');
    END;

    When I check the session information and debugging logs it indicates that the function is to return null.

    I figured I was doing something wrong in the APEX while I created a procedure in the database called the APEX_UTIL. GET_EMAIL. I've run in debug mode and saw that he too returned null. I get the same results with the GET_FIRST_NAME and GET_LAST_NAME functions.

    Can you see what I'm doing wrong? Or give an example of using these functions correctly?

    Thank you

    Steve

    Published by: cranestar on February 28, 2012 09:28

    So if you know, APEX forums supports the use of the [code] and [code /] intended to set aside code segments for ease of reading.

    One thing I noticed in your sample service is this unconditional statement: RETURN NULL;

    Your function can do all sorts of things, but this indicates the function always return explicitly NULL - your behavior. You must declare a variable to store the results of the function call to APEX_UTIL. GET_EMAIL() and return this variable:

    create or replace function L_EMAIL_RTN
      return varchar2
     is
    declare
      v_email   VARCHAR2(240);
    begin
      v_email  := APEX_UTIL.GET_EMAIL(p_username => :APP_USER);
      return v_email;
    end;
    
  • is possible to show only a specific part of a text value

    Hello

    I have an obligation to show only part of a character value identifier by using special characters.

    For example, xxtest is my table whose name column.

    Here name contains value as "SESTO. Generic.Attention retail"

    but I want to show only "Attention to detail".

    This means show the value after the second full stop.

    What is means, please tell me how to do it.

    Thanks in advance,
    SAN
    SUBSTR(column1, INSTR(column1,'.',1,2)+1 )
    

    The INSTR finds the position of the second occurrence of a '.'
    The SUBSTR then takes this position + 1 and the rest of the string.

  • How show only last row value in a column of OBIEE

    Hi Experts

    How show only last row value in a column of OBIEE


    Thank you
    V

    Hello
    Pull column criteria, which you want to display only last row. Filter Advanced sql apply now to this column as a.
    RCOMPTE ("customer D1". "C1 Cust Name") = MAX (RCOMPTE ("customer D1". " Cust C1 Cust Name name')) here is the column where I applied the filter.
    So, it gives only last row in the name column of the Cust.

    Awarded points if the answer
    Reference: http://forums.oracle.com/forums/ann.jspa?annID=939

    Kind regards
    Srikanth
    http://bintelligencegroup.WordPress.com/

  • FND_PROFILE. VALUE('ORG_ID') returns null

    Hello world.
    FND_PROFILE . VALUE ('ORG_ID') always returns Null when I select double as follows

    SELECT FND_PROFILE. VALUE('ORG_ID')
    FROM DUAL;

    OR if I'm doing assignment as follows

    *: V_ORG_ID: = FND_PROFILE. VALUE ('ORG_ID'); *

    What is causing the problem, it's a configuration problem or what?

    What is your version of the application?

    Please see these documents.

    After the Patch 8222387 why Fnd_profile. Value('Org_id') return no value [ID 784279.1]
    Conc programs using the Fnd_profile parameter. Value (Org_id) Get Apps-Fnd-01436 [ID 784489.1]
    FND_PROFILE. VALUE('ORG_ID') returns-1 [1235274.1 ID]
    Package Fnd_Global - Fnd_Global.Resp_Id, Fnd_Global.Form_Id, Resp_Id, $form_id, Form_Appl_Id are equal to-1 [960111.1 ID]
    An incorrect value in the block: field $ $ $Profiles: Org_id [876402.1 ID]

    Thank you
    Hussein

  • The search returns 'null' on the first search only

    HR 8.0.2.208

    Air Navigator help

    When our help is installed on a clean machine, the first time that you are looking for, it returns "null".  Then subsequent searches are functioning normally.

    Anyone has any idea what this could be?  I don't want to discourage users on their first try.

    Thank you!

    Hello

    Please, try the solution below and see if it works for you or not. Output Browser Based AIR support.

    Now open the generated output folder and open the whfhost.js file in the Notepad application. Look for the following strings in the file. you need to replace this function

    function Query()
    {
    gbAIRSearchString = goOdinHunter.strQuery;
    g_CurPage = 1;
    context = new HuginContext();
    Context.Reset ();
    Context.push (goOdinHunter.query, goOdinHunter,
    processHunterResult, null);
    Context.Resume ();
    }

    With this new feature

    function isValidType (obj)
    {
    return ((typeof (obj)! = 'undefined') &&(obj!=null));
    }

    function Query()
    {
    gbAIRSearchString = goOdinHunter.strQuery;
    g_CurPage = 1;
    If ((context) isValidType & isValidType (context.aTasks))
    {
    while(Context.aTasks.Length>0)
    {
    Context.Resume ();
    }
    }
    context = new HuginContext();
    Context.Reset ();
    Context.push (goOdinHunter.query, goOdinHunter,
    processHunterResult, null);
    Context.Resume ();
    }

    And try to run the output and see if you stilll faced the problem of null result search

    If this problem is solved, then you can go to the location of the folder C:\Program Files\Adobe\Adobe RoboHelp 8\RoboHTML\WebHelp5Ext\template_stock and make similar changes to the whfhost.js file located in this folder.

    Let me know if this fixes the problem or not.

    Note: this should work fine for RH8 and RH9 times.

    Thank you

    Praful

    Adobe RoboHelp team.

  • [CFFUNCTION return null value

    How can I return a null value when the return function is of type cfc

    Unfortunately ColdFusion doesn't have NULL values. Even if you return null from the database, it will make them in empty strings. If you return null from Java you will get variable is undefined errors.

  • show tags xml with NULL - value

    Hello
    is there a way to display a tag while the value is null in this case:

    Select
    (
    XMLFOREST (AFRAGNR_1, AFRAGNR_2, AFRAGNR_3, AFRAGNR_4)
    )
    IN XML FORMAT
    FROM VIEW_ABC WHERE x = v1 and v2 = y
    ;

    -result: AFRAGNR_3 and AFRAGNR_4 is null and not displayed:

    XML
    & lt; AFRAGNR_1 & gt; J & lt; / AFRAGNR_1 & gt; & lt; AFRAGNR_2 & gt; J & lt; / AFRAGNR_2 & gt;

    /
    -by using this, it is not the result I want to get,


    Select
    XmlElement ("AFRAGNR_1", AFRAGNR_1) AFRAGNR_1
    , xmlelement ("AFRAGNR_2", AFRAGNR_2) AFRAGNR_2
    , xmlelement ("AFRAGNR_3", AFRAGNR_3) AFRAGNR_3
    , xmlelement ("AFRAGNR_4", AFRAGNR_4) AFRAGNR_4
    FROM VIEW_ABC WHERE x = v1 and v2 = y
    ;

    Another way?
    Best regards, Norbert

    Published by: astramare on November 20, 2008 12:32

    If you want to empty tags, without a root element, then you should use xmlconcat

    SQL> with t as (select NULL x, 2 y, NULL z from dual)
      2  select xmlconcat(xmlelement("x",x)
      3                  ,xmlelement("y",y)
      4            ,xmlelement("z",z)) xm
      5  from t;
    
    XM
    --------------------------------------------------------------------------------
    2                                                          
    

    Ants

Maybe you are looking for

  • Problem with the MK6021GAS as external USB disk

    Hello I have a laptop that has a built-in drive HARD Toshiba MK6021GAS.I found the disk too slow, so I bought a Hitachi travelstar 7200 RPM to replace. That worked without problem. But now I want to use the Toshiba HDD USB external drive. But it does

  • iCal will not let me add new event

    I migrated the data from my old computer to my new MacbookAir (Yosemite 10.10.4). But I find the ical now birthdays and holidays from UK and won't allow me to add new events to the calendar. I prefer not having to open iCloud but want to personlize t

  • Engine does not turn

    That is the problem. I have connected to Umi-7764 and a scientific P70360 drive of the Pacific, the wiring is as follows: UMI-7764-> p70360 J4 terminal screw control IO 26 female pin inhin1 (bar above)-> fault-(PIN 8) inhout1 (top bar)-> enable-(6-pi

  • Homegroup and network cut the connection. Internet connection remains constant.

    I posted here once before and thought that I fixed it so I told everyone that it was fixed.  Of course I spoke too soon.  I have a very annoying problem with my laptop Win 7 and Win 7 office not being able to keep a home group or a network connection

  • Status of blackBerry Smartphones BBM

    Hi all, I have a Blackberry Curve. I've been adding contacts and everyone one person updates their status, and I will see the updated status, but not on one of my contacts. This can be corrected? Thank you