Form on a Table with report - Auto number
HelloScenario:
I want to create 'Form on a table with report' which would allow my users add records...
Steps and questions
I have created a table with a field named "TRACKING_NO" as a type of automatic numbering in MS Access and there is a primary key... I intended to use it to link the report to the form
When I downloaded the array to Oracle, it changed the varchar2 type... can you please advice how to change back to automatic numbering...?
and it'll work if my user adds a record to the table (using APEX built in option to create a record)...?
Thanks in advance
Hello
That's what I'd do.
1. download the MS Access table, lets call it TAB_A
2. using SQL-workshop get the DDL (SQL statement) for this table.
3. change names or data types as required
4. create a new table with the DOF, lets call it TAB_O
5 copy the contents of TAB_A to TAB_O (TAB_O IN INSERT for example (id, colx, coly) SELECT TO_NUMBER (tracking_no), col1, col2 FROM TAB_A ;))
6. create a sequence that begins with the last PK + 1 table TAB_A
7 Add a trigger to TAB_O to use this sequence to fill his PK
Furthermore, work with APEX requires a good understanding of the Oracle SQL and PL/SQL, no matter what anyone says, even Oracle.
Regards Garry
Tags: Database
Similar Questions
-
Form on a Table with report - change of the source table after created form
Hi all
I have a 'form on a Table' where the various fields have the "Source Type" = "column of the database. I have 2 Questions for this type of shape:
1: in the field "Source value or expression", it is possible to change the name of the field in the Table. But I can't understand how view or even change the underlying Table (which had to be chosen at the beginning, when the form was created at the start).
2: my question in section that relates to the first question would be, if it is possible to have multiple underlying tables in the same region. Or whether it would be necessary to create a second region or change the "Column of the database" type in a type of SQL query?
Thank you and best regards,
David
To change the table, you need to change the process of the page. A process has been generated called:
Extraction of line of
Here, you can modify the table, but you also have to make in your shipment after processes. Who are probably named:
ApplyMRD and ApplyMRU
If you want a form to be based on more than one table, you can create a view and base your form on this point of view instead of on the table, or you need customized treatment.
-
Hi everyone, yet once landed upward with a problem.
After trying many things to myself, finally decided to post here...
I created a form in form builder 6i in which clicking on a button, the data gets exported to the excel sheet.
It works very well with a single table. The problem now is that I cannot do the same with 2 tables.
Because the tables have the same number of columns and the columns names.
Here are the 2 tables with column names:
Table-1 (MONTHLY_PART_1) Table-2 (MONTHLY_PART_2) SL_NO SL_NO MODEL MODEL END_DATE END_DATE U-1 U-1 U-2 U-2 U-4 U-4 .......... ........ .......... ........ U-20 U-20 U-25 U-25 Given that the tables have the same column names, I get the following error :
402 error at line 103, column 4
required aliases in the SELECT list of the slider to avoid duplicate column names.
So how to export data to excel that has 2 tables with the same number of columns and the column names?
Should I paste the code? Should I publish this query in 'SQL and PL/SQL ' Forum?
Help me with this please.
Thank you.
Wait a second... is this a kind of House of partitioning? Shouldn't it is a union of two tables instead a join?
see you soon
-
Problem when adding new column on table with report form
Hello
I have a form on table (either emp) with report(select_empno,ename,job_from_emp).i have insert, update, delete operations on the table.
Now I added a new column DOB for alteration report emp.i sql query to show the new column altered report.i insert process (Block anonymous plsql) to insert this column too all by creating a new row.but the problem is with update.i am not able to find how to upgrade this new column while doing the update to line level.
pls let me know if you can give some ideas on this.
Kind regards
CKWell, sorry for sounding terse.
I have a few questions.
Have you added the item to the form page and associated with the database column?
You use your own PL/SQL page process to update or do you use the 'row emp process' process produced auto?
If it's your own please send the code with the word {noformat}{noformat} (with the curly brackets and in lower case) above and below it. Your code should be formatted like this once you've hit post message:
BEGIN
NULL;
END;
Cheers Ben
-
How to update exists column on the table with the exact number and auto increment
Hello
I have a table with more than 10 million rows and there is a column called 'number_zaq', I want to update this column on line frist from 2000 and + 1 for the next all ranks.
Update your_table
Set number_zaq = rownum + 2000-1;
-
How to make a SUM function on table with TI-auto
Hi all
I created a table with column 2:CREATE TABLE Suppliers
Example: I have these data in the table
(
Id NUMBER(10) PRIMARY KEY,
ProductNum NUMBER(10) NOT NULL,
Amount NUMBER(10) NOT NULL
);----------------------------------
And I want a query to get the sum of the amount of each product, that is if I run this query o the previous table, I expect the following result
Id|ProductNum|Amount|
----------------------------------
1| 4A | 50 |
----------------------------------
2| 10Q | 3 |
---------------------------------
1| 4A | 40 |
---------------------------------
3| Q9 | 32 |
---------------------------------
2| 10Q | 60 |
. . .
. . .
. . .------------------------------
Thanks in advance
ProductNum|Amount|
------------------------------
4A | 90 |
10Q | 63 |
Q9 | 32 |
. | . |
. | . |Something like this->
select ProductNum, sum(Amount) from Suppliers group by ProductNum;
Kind regards.
LOULOU.
-
A better way to treat the form as a table with the variable column type?
I wanted to make a column to return according to the status of a flag column as readonly. I have a column defined as follows in the report query.
Decode (sys_flag, 'Y', APEX_ITEM. DISPLAY_AND_SAVE 3, TYPE_CODE, APEX_ITEM. SELECT_LIST_FROM_LOV (3, TYPE_CODE, 'LOV_TYPE_CODE_LOV')) AS TYPE_CODE
To get the SRM process noting that column, I had to put this 'band of HTML code' to 'No', then the column attributes, I put:
"Expression HTML" to "#TYPE_CODE #
' Display under "to"text display (saves the State).
And then it took me to get new lines of work:
"Default of Type" to "Expression of PL/SQL.
'Default' to APEX_ITEM. SELECT_LIST_FROM_LOV (3, NVL(:P18_TYPE_CODE,'LOV_TYPE'), NULL, 'LOV_TYPE_CODE_LOV', ' NO')
This makes large, however submit that it seems that the checksum of line used by MRU included the raw HTML generated by the APEX_ITEM package and not just the value of the column. I worked around this by including an element hidden checksum and creating a process that replaces the checksum generated automatically with my custom.
Is there a better way to intercept this checksum, preferably before it is rendered on the page? I now hide the sum of hidden HTML control in the output HTML of another column, so it's a bit ugly. If not, is there an easier way to achieve what I'm looking for? I tried several combinations, and it seems to work better. It's just a shame there's no way to have a standard hidden column included in the SRM process.Hello
I tried different possibilities and seems to run the following:
Create a report questioning in NORMAL SQL function to help:
SELECT APEX_ITEM.HIDDEN(1,EMPNO) || APEX_ITEM.TEXT(2,ENAME) ename, CASE WHEN DEPTNO = 10 THEN APEX_ITEM.HIDDEN(3, SAL) || SAL ELSE APEX_ITEM.TEXT(3, SAL) END SAL, EMPNO, DEPTNO || APEX_ITEM.MD5_CHECKSUM(ENAME, SAL) DETPNO FROM EMP
Do not specify something special for column definitions.
Create a button that submits the page.
Create a PL/SQL process that runs "On submit - after calculations" and Validations, triggered by this button and using the following code:
BEGIN APEX_ITEM.MULTI_ROW_UPDATE('#OWNER#:EMP:EMPNO,1:,|ENAME,2:SAL,3'); END;
I've done here: http://htmldb.oracle.com/pls/otn/f?p=55041:35
Any element with the value of DEPTNO 10 has the value SAL, read-only, as otherwise it's editable. This is done by creating a hidden input field for the actual value, followed by the text version OR by creating a single entry field. This ensures that we have the correct number of SAL elements on the page.
APEX_ITEM. MULTI_ROW_UPDATE is the "manual" version of the MRU that you would normally get with a form of table and works for above normal as sql based query reports. The format of this very strict is that you must always allow for two primary keys. See the text of presentation here: http://download.oracle.com/docs/cd/B28359_01/appdev.111/b32258/api.htm#CHDFDACC
Andy
-
Adding images to a table with a different number of rows and columns
I get images from PC file in labview table... I can specify the number of columns and get a picture with the size of the column, but must continue to put images in the table until the size of line is filled. My goal is to have the pictures in the folder to be a 37-49 lines columns... Unfortunately the berries stops (see VI) until all the images are introduced in my table... How can I keep having these columns add pictures until all lines are met (and all the images are filed in the new array)?
Hi Lynn:
I changed my index of 49 x 49, give my columns entry 37... then all the images appear. Thanks for your help. Kudos to you...
-
Insert a picture into a Word table with report generation tool.
I was wondering if it is possible to use the report generation tool to place an image in the cell of a table in a Word document?
Hello
Yes, you can do this by using the Word change cell VI under reporting > specific word > Word tables in your diagram of function pallet blocks. After you create a table, you can modify specific cells and send the file path of the image saved on your computer to that specific cell. I have set up an example that I have attached here as well to help you with this.
-
Select the element on a form as a table with a different dynamic LOV on each line
I would use a tabular form when one of the columns is a Select based dynamic LOV, and where this is dynamic LOV refers to a column on the values in each row.
So if the tabular presentation was a list of teams and the column selection LOV was the current head of the team, I would like to than this selection list to be filled only with the members of this team (different for each line). As the list of the members of the team is in a different table (all_players or something) I won't fill the LOV with a query with a where clause clause that only selected records of players from team-membership equal to the id of the current team tabular form. Thus, on each line the content of this list would be different.
-JustinThis is explained here:
http://HTMLDB.Oracle.com/pls/OTN/f?p=31517:176
Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
------------------------------------------------------------------- -
calculate the percentage of error in the table with a reference number
Hello
I am able to make the mistake of column 0, table...
How I would be writing the code for the column 1, 2, as well as the n column?
You really do need to learn more about arrays and scalars. You use tables 1 d as the scalars and arrays in tables 1 d 2D. Transpose two operations in a row is a NOP, why do it?
Do not have the same code in all cases a case structure. Everything is the same thing belongs outside. Only one number differs between business and it's the only thing that belongs inside picture).
Do not bury terminals inside the loops and other structures. They belong to the toplevel chart background.
Here is a quick sketch.
-
How to create a form on a table with 3 columns for a PK
Hi all
We have a table that has 3 columns that make up the primary key and I want to create a form based on this table; Let us on the 'create form Page' it is only 2 options that identifies the first and second columns of PK.
Is there a way I could add the third column PK.
Kind regards
MelMel:
I don't think you can use the form wizard to create the form for you in this case. You can create the form manually or modify the table to have a new column that will act as a substitute PK for the table. This column can be filled from a sequence and must have a Unique key limited defined against it.
CITY
-
Train with report and create processes button
In my form, I have an element that contains a single select statement to concatenate the elements entered by the user (: P3_ECRNO) with a chain of path of file to create a full path. The report is set up so that the user can open this link in a column. Everything works except the user must visit the form twice to get the link to complete the report.
I hope that you will understand:
I have a form on a Table with report
P3 LINK_
Source element is the SQL query
After the rest of the elements on the page are populated, the user presses the create button and dump everything in the report.SELECT 'file://departments/Documents/ECR%20Folder/' || :P3_ECRNO || '.doc' from DOC_INFO WHERE DOC_INFO_ID = :P3_DOC_INFO_ID AND :P3_ECRNO IS NOT NULL
In the report column as we speak is implemented to hyperlink to this folder and file (that was created previously).
The first time the user presses the creation (or apply just for test, all except the full link immersed in the report. But when the form is reopened and Apply is hit, the link gets poured into the report and the works.
I bet it has something to do with the processing time that often seems to have a problem with.
Thanks in advance...Create a calculation "After Submit/SQL Query" to set the value of '_P3_LINK_ '. For a calculation query, you can use the same SQL that you used for the source of the element.
CITY
-
Add a table with the number of lines and columns JS
Hello
Simple question: what is the syntax for adding a table with a specified number of rows and columns? I don't get it. (I don't know how to add them later, but I want to do when I create the table). Here is the entry in the ESTK:
Tables.Add (to: LocationOptions, reference: all, withProperties: Object): array
Creates a new table.
(optional): Data Type: LocationOptions, by default: LocationOptions.UNKNOWN
The location of the new table to the object within the container object or reference. (Optional)Reference: Data Type: no
The reference object. Note: Required when the value specifies before or after. Can accept: Table, XmlStory, XMLElement, TextFrame, text, character, Word, line, paragraph, TextColumn, PointInsertion, story, cell or TextStyleRange. (Optional)withProperties: Data Type: object
Initial values for the properties of the new Table (optional)Thank you
Ariel
After much experimentation, I found this works:
t = app.selection [0].tables.add (LocationOptions.AT_BEGINNING, undefined, {columnCount:2, headerRowCount:1, bodyRowCount:5, footerRowCount:3});})
-
How to pass the form on a table after a query?
With the help of Oracle 11.2 and Apex 4.1.
1. I use a form on a table with buttons: QUERY, INSERT, DELETE and CANCEL.
2. after INSERT and DELETE, the shape is erased.
3 but I would remove the form after the QUERY. Well, I want to clarify when the user wants to that he erased!
4. and, in fact, I have a process to clear the Cache for the button CANCEL.
5. when I click on CANCEL, there is a flash like redraws the screen.
6 and I think this is the case, is that after the cache is cleared, the variable RCD_ID of the page has the prior value and treatment of the "table row" retrieves the file once more.
7 so I return values that I wanted to clear! Looks like I'm being undermined by the functionality of the ARF. (ARF, ARF!)
1. I tried to change the "Go to page nn" to clear the cache for the page, but that seemed to make no difference.
2. I tried to adjust the page RCD_ID variable to "as I do after DELETION, but that has not worked either to CANCEL.
Thoughts?
I guess it's just me, but the extremely annoying part of the APEX is that some simple obvious things – like the form of compensation - have no obvious simple solution. I would say, there are a few obvious approaches, but none seems not to work. You would think that a 'CLEAR' button would be a standard button or CANCEL to had an option to clear the form and or clear a list of items on the page.
HowardHoward (DBA in training) wrote:
For the button CANCEL, 1) I clear the cache of the page and 2) I put the variable RCD_ID (P2_RCD_ID) ". But without effect. When I consider the debug report, I don't see any indication that CANCEL was pressed or that these processes have been executed. So, maybe they are not running. I see the record being extracted again - which is what I want to avoid.
Processes are not executed because the page is not submitted. The Cancel button does a redirect, not a shipment:
apex.navigation.redirect('f?p=21997:2:13040303230582::NO:::')
Change the button action to present, with the value of the request as "CANCEL".
By default, generated by the wizard Cancel button will be created to perform a redirect. The anticipation is that the behavior required to navigate to another page in the application without changes to session state or process.
Maybe you are looking for
-
iPhone 6 complete storage, but should not be
I had a problem with my iphone 6 storage saying that it is complete and in the last year. I did a system restore a couple of times to get the part of the rear compartment, however, it appears more frequently and the restoration is almost necessary e
-
Lost the STOP button with upgrade for FF9
I can not get the STOP button on the Navigation toolbar since I upgraded to FF9. Where at - it go?
-
Printer Envy 5542: Envy 5542 printer Scanner does not
When I try and scan shows that the scan on the printer screen, but still like that - nothing happens. How to operate?
-
System crash after the withdrawal of the USB
Hello Recently my laptop goes down each time I have remove several of my USB sticks, two different brands. I tried each a point but the same thing happens with everyone. This happens even if I use the option delete the sefely or use the eject feature
-
Why can't I send an email from the Explorer, it goes to outlook express and will not let me send e-mail