Basic form to display data

Hello

just start with Apex and I am trying to achieve something that I think should be easy; I see no issues on this subject anywhere!
I use Apex 4.1 on Windows 7.
I have created a form that is based on a query that should return data when it is supplied with a customer code.
I added a TextBox on the form to contain the customer ID.
I deleted all the CRUD buttons and added a submit button that submits the form.
When I enter an ID and click on send, I get "no data found", but should be, so my form/process is clearly wrong; I expected the form to refresh the query and display the data
I have also some regions report that I also want to update, based on the client ID, to create a dashboard for a user.
Can someone point me in the right direction? It seems to me that Apex RAD is quite the RAD, I expected.

Apex created the form as HTML text and nothing in the source of the region; I couldn't find the original request I got in anywhere.
I changed it to an anonymous PL/SQL block without success.
PL/SQL is less; : CM_NUMBER is the text box.

I understand that I am probably be extremely thick here - apologies.

Thank you.

Start
SELECT THE TC. CODE_DESCRIPTION | ' ' || TI. NOM_DONNE | ' ' || TI. FAMILY_NAME NAME
TC2. STATUS OF CODE_DESCRIPTION
TI. BORN BIRTH_DATE
FCP. CURRENT_AGE
TC4. KIND CODE_DESCRIPTION
TC3. CODE_DESCRIPTION MARITAL_STATUS
NVL (TO_CHAR (FCP. NUMBER_OF_CHILDREN), 'Unknown') CHILDREN
MT. ADDRESS_LINE1_TEXT
MT. ADDRESS_LINE2_TEXT
MT. ADDRESS_LINE3_TEXT
MT. POST_TOWN_TEXT
MT. COUNTY_NAME_TEXT
MT. POST_CODE_OUT_TEXT | ' ' || TA. POST_CODE_IN_TEXT POSTAL CODE
in: p1_NAME
,: p1_STATUS
,: p1_BORN
,: p1_CURRENT_AGE
,: p1_GENDER
,: p1_MARITAL_STATUS
,: p1_CHILDREN
,: p1_ADDRESS_LINE1_TEXT
,: p1_ADDRESS_LINE2_TEXT
,: p1_ADDRESS_LINE3_TEXT
,: p1_POST_TOWN_TEXT
,: p1_COUNTY_NAME_TEXT
,: p1_POSTCODE
OF EXILE. T_INDIVIDUAL TI
EXILE. T_CODES TC
EXILE. T_CODES TC2
EXILE. T_CODES TC3
EXILE. T_CODES TC4
F_CUST_PROFILE FCP
EXILE. V_CURRENT_MAILING_ADDRESS VCMA
EXILE. YOUR T_ADDRESS
WHERE TI. PARTY_ID =: CM_NUMBER
AND TI. TITLE_CODE_ID = TC. CODE_ID
AND TI. INDIVIDUAL_STATUS_CODE_ID = TC2. CODE_ID
AND THE PCF. MARITAL_STATUS_CODE_ID = TC3. CODE_ID
AND THE PCF. GENDER_CODE_ID = TC4. CODE_ID
AND TI. PARTY_ID = PCF. PARTY_ID
AND TI. PARTY_ID = VCMA. PARTY_ID
AND VCMA. ADDRESS_ID = TA. ADDRESS_ID;
end;

I took that, it is difficult to debug your problem without going through the tables of data in support of the page:

Here are the things that I do, and I did when possible on apex.oracle.com:

  • Remove the process called "a".
  • Make sure that the query runs in Developer SQL or SQL Plus and returns the data to the CM_NUMBER your entry
  • Define policies and regions takes forever to make sure that it is the PL/SQL region, the origin of the problem
  • Change the region to a html text box
  • Create a new after page header process containing the query
  • Make sure that all items have "used (s) Source: only when the current value in session state is zero.
  • Make sure to have all the elements ' Type of Source: static text.

You will also notice, I added a new page called simple example emp which reproduces the feature you are trying to re-create using the emp and dept tables as well as the available data use.

I hope that this help will be to solve your problems.

Thank you

Paul

Tags: Database

Similar Questions

  • How to display data in an interactive report on the form field?

    Hello

    I've created an interactive report with its form (goal to create and edit).
    Then, I created a new project with its early date and email id that is assigned to the project.
    When I clicked on the edit button, it opens the edit form and displays the same date, I entered but email id is not displayed.
    Instead, it shows the default value of the e-mail ID LOV, which is "- select Email ID -"
    How can I view the identification of email that I entered?

    Thank you
    Guy

    Hello Guy,.

    To discuss your design: why not store the PM_PERSON ID in the PROJECT table? Now, you store addresses several times (in PM_PERSON and in many PROJECT files), what happens if the email address change... (purely hypothetical, of course)...
    And create a foreign key between the PROJECTS and PM_PERSON also...

    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this response in marking it as useful or Correct ;-)

  • How to display data series changed after each step in labview gui, that is to say after the match point fantasy, after substring etc.

    Hi, I have a labview GUI that receives data serially through VISA and basically chops to the strings and realize games until I have values that I'm looking for. I have then convert Ascii string in decimal and feed the new values to a waveform. However, I discovered that some of the output values are incorrect. I checked this by pulling data through Realterm.

    Is it possible that I can see the modified data after each step in the user interface so that I can find where the problem is? I created indicators after each step, but they do not display data, I guess that its because the data is moving too quickly.

    I am very new to labview and struggled through every bit of this GUI, as none of you regular posters know. If you can suggest a solution, please know that I will probably ask more fundamental questions in order to implement your solution.

    I enclose my GUI with a screenshot of the same data through the Realterm. Basically any where you see xxxx TR TR or W xxxxW, know that it is the data between them is to say xxxx that corresponds to the data of interest. Everything else is ignored.

    I suspect that the problem lies in the string to decimal conversion and where 3 digit values increase to 4-digit values. That is, all values of less than 850 are correct but it is the maximum value is reached. My values are expected to reach 2500. Any help would be greatly appreciated.

    You have other debugging tools available to you.  You can use the run culminating to slow down the code and show you the data flowing from each wire.

    You can create a Subvi, which takes the data of each wire and written to a log file if you can review it later.

    You give not the screenshots to your message.

  • Display data from another web application

    Hello

    I hope than to display data from my application 'team' on my 'articles' approx. basically display image of the author, email etc., which comes from the app TEAM. I know that this is possible.  I use the data of the src field extract the name of the authors, but of course this provides only a link. Are there tutorials - what can anyone tell me? Thank you.

    So does that mean as a concrete response by using the system of normal with BC, is tag that you insert this code for your team web app {module_webapps, 123456, i, {tag_author_id}} on your layout displayed products app page.  ID tag of the author is a field set up in the articles web app and a field of the data source to connect to your team application.

  • Form of planning data cut the names of members with "<" or ">" in the name

    We have recently updated to 11.1.2.3.500 (patched to 11.1.2.3.501 Planning) and noticed that on our forms of planning data, it's cut the names of the members so ">" or "<" are in the name of the Member.

    For example, we have the following Member: ' cost-per-minor Suite Tower (< 5K).

    In EPMA, planning, Essbase and financial information, the name of the Member fine poster Dimensions. When we use the Member in a data form, it displays as "cost per minor Suite Tower ()"-it cuts the ' < 'and everything after it. "

    We tried to recreate the shape of data, but it still cut the name of the Member. There is no alias on this member, and we have it just show the name of the Member.


    If anyone has experienced this before? As much as I know aren't restricted characters, but maybe something with 11.1.2.3.500 coding and the thought those who are part of the tags.


    Thank you in advance for your help!

    We had a similar problem with & in smarlist and patch.502 to be fixed. However, I put in "cost per minor Suite Tower (a member of your).< 5k)"="" in="" the="" .502="" environment="" and="" i="" saw="" the="" same="" issue:="" where="" "cost="" per="" minor="" suite="" turn="">< 5k)"="" cuts="" off="" to="" cost="" per="" minor="" suite="" turn="">

    and I tried just "cost per minor Suite turn."< 5k"="" and="" it="" provided="" this="" cost="" per="" minor="" suite="">

    We also have a 11.1.2.4 environment, I tried this and the question even exsits.  And I guess the only work is about setting out there because that's what they gave us said regarding the & in smarlists.

  • create form to load data to mysql with a logic of file download option

    Hello

    I have a question of logic:

    I was trying to create a form to upload data to mysql with a download of optional file (for a photo).

    The logic that I'm struggling with is that I can not understand how to deal with a failed validation. I can upload a photo to mysql with data (personal information) if the validation is ok. This part works fine. What does not work is I can't wrap my head around how code if lets say that the image is too big or bad format.  As I am I eventually save personal info and set a warning message that tells the user that there was a problem loading the file.  Let's say that the user wants to try again with the right type of file this time. the form won't let him try again because it would create a duplicate of the same user.  Should I code another query below my code that find the tis user and update the image instead? What is the best logic to process the download errors during the data already stored on mysql?

    I use the following to get rid of the spaces and symbols from the file names:

    ([preg_replace (' #[\s\&\@\#\$\%\(\)------[\] \ &] #', ", $imagename);

    I also use strtolower() change all characters to lowercase.

    My actual code would not help you because I use a PHP class to handle downloads.

    It's also a good idea to check the spirit of mime typesh FILEINFO_MIME_TYPE

    If your form processing is on the same page as the form (usually it would be at the top), what you can do is, after the insertion of the record, have the database to return the new identification number. Something like:

    $employee_id = mysqli_insert_id ($connection);

    Then you may have a hidden field in your form for the employee id:

    Then, when the form is displayed, check to see if $employee_id has a value and use an if/else statement to decide whether to INSERT or update.

    If (is_numeric($_REQUEST['employee_id']) {}

    UPDATE

    } else {}

    INSERT

    }

    For security on the data in the form, I use striptags() and bound parameters

  • Display data in reverse order.

    Hi everone,

    I'm dispalying two fields in forms 10g to display Arabic and English chracters.
    It will correctly display Arabic and English data, but for some Arab data, he demonstrated in the reverse order.

    How can I solve this?

    my location is
    11.2.0.3.0, charcterset AR8MSWIN1256 Oracle database
    Server of applications Oracle 10 g, NLS_LANG = AR8MSWIN1256
    Order Developer suite 10 g


    Thank you
    Omer

    I got there is character '_' chr (220) in the folder that is not Arabic characters is why oracle does not display data correctly. I have replace the data as replace (Field1, chr39). Chr (220) | Chr (39)) and now it works for me.

  • Attribute in the form of planning data Dimension members

    Hi all

    We see members of dimension attribute in the form of planning data? Pls help

    Yes it is possible in 11.1.1.3, for example in your line selection a dimension that has attributes associated with it. Select the properties of the dimension next to the drop down.
    Check "enable the display of the custom attribute (parameter applies to all dimensions with attributes):
    Select the dimension attribute

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Form with the data of the issue of the database

    I made a form so that I can test the connection to a database and fill in the form with data from db.

    My form is very simple, and I used MS Access to the db.
    The db has two tables:

    Table 1: ID, wheels, cost
    Table 2: ID, brakes, cost

    The form of hierarchy:

    Snap1.jpg

    Form:

    Snap2.jpg

    Displaying the data

    Snap3.jpg

    Brake and wheel data flows into the ddlists of the db.

    Cost values display the costs in the table.


    How to "bind" the cost value of the wheels to the wheel data, so that when you select "wheel 2" package. "
    the ddlist, the cost value of the wheel 2 package appears in the wheel cost field?


    How I will summarize cost fields to provide a total?

    I downloaded the form and the db here: https://Acrobat.com/#d=HEGvv-CMb0o5uPGxisU1Kw

    You need to make calls to two DB. 1 the one you have made already that will fill the DDList with appropriate values. Then a second call that will pass a SQL statement to the DB to retrieve the record that contains the value of the wheels or brakes that the user has selected in the DDList. This part is possible with the code. There is an example how to proceed at this place.

    http://Forms.stefcameron.com/2006/09/29/selecting-specific-database-records/

    You can mine this site for another form of information DB because it has a couple of different entries on access DB.

    Paul

  • How can I update form field with data using "on Blur.


    Perhaps also very easy for all the experts out there that you but I'm trying to update a form field with data in another field in the form when they come out the first form field.

    Basically creating a "billing" and a form "shipping" I want to be updated automatically.

    Any help would be extremely Grateful.

    Thank you

    Steve

    He does!

    shipFirstNameText.value = this.value

    It worked

  • Basic form of drawing

    Hello

    I'm somewhat new to Flex and I was wondering how create you the basic form in flex
    for example, I would like to draw form such as lines, rectangles and circle in the flex application.

    For example,.
    < mx:application >
    < myComponent:myCircle '3' = x y = '3' r '3' = >
    < / mx:application >

    I was watching the ActionScript 3 and there was a flash. A form that allows you to draw the circle.
    Somehow, this did not work as I implement IUIComponent.

    Should I always use IUIComponent to draw a shape base such as line, rectangle, circle?
    or is there an easier way to create the component?
    or is it all compoenent mx, to allow these basic shapes to draw?

    Any information would be appreciated!


    Thank you

    I'll try not not to make this complex. Each Visual object has a property called "graphics" which is a type of flash.display.Graphcs. For example:

    File: RedCanvas.mxml:


    override protected function updateDisplayList (w: Number, h:Number): void
    {
    Graphics.Clear; erase
    graphics.beginFill (0xff0000, 1); steady red
    graphics.drawEllipse (0, 0, w, h);
    graphics.endFill ();
    }
    ]]>

    If you use this file as a component in your application, you would see a red circle. It is pretty much base in terms from which to draw level. When you use Flex more than you will see the class Shape, Sprites and so on. In fact Flash classes are intrinsic to Flash Player (anything in the flash.* packages). For example, if you want layers of things you could create forms, bring those (using their graphical properties) and add them as children of another container.

    See the classes in the package flash.display. *.

  • How to display date / time in the browser console?

    How to display date / time in the browser console?

    You can set through the Options (gear icon) page in the Web Console (Firefox/tools > Web Developer).
    This applies to the browser console and the Web console.

  • My Apple Watch displays date yesterday instead of today's date. How can I fix it?

    My Apple Watch displays date yesterday instead of today's date. How can I fix it?

    Hi Steven

    It can help to restart your iPhone and your watch. Turn on both devices off the power together first, and then restart your iPhone before restarting your watch:

    -To switch off your watch: press and hold the button side until you see the cursor off the power; slide it to turn off;

    -To switch on: press and hold the side button until you see the Apple logo.

  • Cluster of savings in the form of binary data

    I have a compound cluster of ~ 50 items of different types that I need to save it as binary data. Obvoiusly I could do with the method of "brute force" of 50 different entries in the file, but that seems silly.

    Is there an easier way to empty just the disk in the form of binary data?  By registering as a cluster seems to add extra characters.

    In a world of LV, I just recorded in as a variant, but it must be saved as binary raw in order to be read by another program as a C structure.

    There is the beautiful Boolean entry in the binary write for "add/array of strings of size."  Unfortunately, this boolean applies only to the type of upper-level data that is being written.  So whatever it is inside the cluster will always these lengths prefixed.  Therefore, you have to separate your data and write each piece individually.

  • How to display date information in a data log table

    Hello

    I want to display data during the data acquisition process. How can I add the time stamp as one of the column in the Table of 'results' located bottom left of the sample code?

    Thank you

    Ryan

    Here is an example of the use of ordinary table instead of the express. You will need to convert your dynamic data to a scalar with the dynamic data conversion function.

Maybe you are looking for

  • Question of gigabit Atheros AR8161

    I have a PC HP Envy Phoenix 1340 t that comes with a Qualcomm Athereos AR8161 gigabit NIC I am running the latest driver for this NETWORK adapter which is version 2.1.0.13.  My problem is that I only connect to 100 MB instead of 1.0 gb to my router g

  • I'm unable to load the microsoft KB 2378111 security update. I'm under Vist Home Premium. I get the error code 80070020

    I'm unable to load the microsoft KB 2378111 security update. I'm under Vist Home Premium. I get the error code 80070020. I tried safe mode, but no luck so far

  • Lost photos - Windows 7

    I lost ~ 1 700 photos of my wife - A58 Sony camera. It was the first time I tried to download the pictures from this camera. I used the default program that turned on when I plugged in the camera by USB. I left the House, while it was ongoing. My bad

  • Not all the items on the Page appear in the window Session

    Version 4.2.5.00.08HelloI have a page with elements of Page 48, and when I click on the Session icon in the bar than 37 see the same developer when lines is set to 5000 and the view is defined on Page elements and I click on the Set button.I tried an

  • MouseOver mouseout/mouseouthandler()?

    So I used the code snippets to try to put a bearing on a clip.frequency of var = 3;stage.enableMouseOver (frequency);This. CTA_button.addEventListener ('mouseover', fl_MouseOverHandler_2);function fl_MouseOverHandler_2(){Start your custom codeThis co