How to include the search criteria in "Form on a Table with Report" form.
Hi,
I am struggling hard to get to this point can any body help me...
I had created a page type form and in that I selected Form on a Table with Report..so the hirerachy is Form >> Form on a Table with Report. In that I managed to give one column of data hyperlink so that once we click on that column data it will takes to next form to display all other information.
But, the problem is there is not serach criteria available on this type of page.Could any body give me a solution how to get on to this.
Cheers,
krishna.
Hi,
Could, some body please answer to my question I raised above.
Cheers,
Krishna.
Similar Messages
-
How to Highlight the CURRENT RECORD in a Table with Report Form
Hi,
I have created a Table with Report Form....let suppose the table is - EMP
Report page - 1
Form page - 2
Now, when I do Create / Update on Page 2,....the control is back on Page1.
Suppose in the Report Page (Page1)..we have 10 records....NOW how should I highlight the CURRENT RECORD in Page 1 with some color to identify the record which I have updated/created just now...
Thanks,
DeepakHi Deepak,
You could do that with a custom report template. I've done that here: [http://apex.oracle.com/pls/otn/f?p=267:175]
Go to Shared Components, Templates and create a new Report template as a copy of your existing one. Then edit your template. In the above example, the Column Template 1 setting was:
<td #ALIGNMENT# headers="#COLUMN_HEADER#" class="t18data">#COLUMN_VALUE#</td>I copied this into the Column Template 2 setting and updated the Column Template 1 setting to:
<td #ALIGNMENT# headers="#COLUMN_HEADER#" class="t18data" style="background-color:red; color:yellow;">#COLUMN_VALUE#</td>I then set the Column Template 1 Condition to: Use Based on PL/SQL Expression
and the Column Template 1 Expression to: '#EMPNO#' = '&P178_EMPNO.'
(In my example, P178_EMPNO is the single item on the linked to page.
Save those changes and go to your report and change its template to the new one. As long as a selection has been made and P178_EMPNO has a value, the condition will make sure that the report uses the first template for the row with the matching EMPNO value. All other rows get the template from Column Template 2.
Andy -
HI all
I have a page type : form on a table with report .
the table is :
CREATE TABLE "SLIKA_USERS"
( "ID" NUMBER,
"USER_NAME" VARCHAR2(20) NOT NULL ENABLE,
"USER_PASSWD" VARCHAR2(4000),
"COMPANY" NUMBER(10,0),
"FORM_TYPE" NUMBER(2,0),
"USER_NAME_DB" VARCHAR2(20),
"USER_LOCK" NUMBER(1,0),
"DATE_PASSWD_CHNG" DATE,
"LOGIN_DIR" VARCHAR2(30),
CONSTRAINT "SLIKA_USERS_PK" PRIMARY KEY ("ID") ENABLE,
CONSTRAINT "USER_NAME_UNQ" UNIQUE ("USER_NAME") ENABLEthe table contain 500 rows.
in addition , when new user entered there are few processes that give him the USER_NAME_DB automatically by executing a functions etc.
in a few weeks , new table need to be active instead SLIKA_USERS table
the new table will look like this :
CREATE TABLE "SLIKA_USERS_NEW"
( "ID" NUMBER CONSTRAINT "ID_NN" NOT NULL ENABLE,
"USER_NAME" VARCHAR2(20),
"USER_PASSWD" VARCHAR2(4000),
"COMPANY" NUMBER(10,0) CONSTRAINT "COMP_NN" NOT NULL ENABLE,
"FORM_TYPE" NUMBER(2,0),
"USER_NAME_DB" VARCHAR2(20),
"USER_LOCK" NUMBER(1,0),
"DATE_OPENED" DATE,
"DATE_PASSWD_CHNG" DATE,
"LOGIN_DIR" VARCHAR2(30),
"USER_ID_NUM" NUMBER(9,0) CONSTRAINT "USER_ID_NUM_NN" NOT NULL ENABLE,
"USER_F_NAME" VARCHAR2(10) CONSTRAINT "USER_F_NAME_NN" NOT NULL ENABLE,
"USER_L_NAME" VARCHAR2(15) CONSTRAINT "USER_L_NAME_NN" NOT NULL ENABLE,
"USER_MNG_NAME" VARCHAR2(30) CONSTRAINT "USER_MNG_NAME_NN" NOT NULL ENABLE,
"LAST_LOGIN_DATE" DATE,
"DATE_CLOSED" DATE,
CONSTRAINT "USER_NAME_PK" PRIMARY KEY ("USER_NAME") ENABLE,
CONSTRAINT "ID_UNQ" UNIQUE ("ID") ENABLE,
CONSTRAINT "USER_ID_NUM_UNQ" UNIQUE ("USER_ID_NUM") ENABLE,
CONSTRAINT "USER_NAME_DB_UNQ" UNIQUE ("USER_NAME_DB") ENABLEproblem :
before inserting new user to table SLIKA_USERS_NEW i need to check if the user_name alreay exists in SLIKA_USERS table .
i need to take all his details and move them to the new table , in addition as you can see , i need to complete some details like the USER_ID_NUM,USER_F_NAME,USER_L_NAME.
of curse if this user doesn't exist in the slika_users i need to create him as new user.
i thought about trigger , unfortunately it won't be a good idea since i don't have in table slika_users
the USER_ID_NUM" , "USER_F_NAME" , "USER_L_NAME"
another problem is : even if i will manage to overcome the problem of moving data from table slika_users .
to slika_users_new ,
to manage it after the tables will switch won't be easy though.
in a few weeks , the slika_users need to rename to slika_users_old .
and slika_users_new will rename to slika_users,
that is a necessary step because lots of pages in the application , relate to the table slika_users ,
in addition if new user need to create i still need to look if it's exists in the SLIKA_USERS_OLD (after i'll switch between the tables )
please give idea how to overcome those problems
Thanks In Advanced
NaamaHello,
Basically it can be done, but you'll need to do it manually. You can create your basic report, and define two link columns, each to the proper form, which will include the desired columns.
The problem I see in this kind of solution is a great risk for data integrity, especially in a multi-user environment. It will take time to update both forms, and in between, the table record will contains inconsistent data – the first columns can contains data updated by the first form, but the rest of the columns will still contains an old data.
Regards,
Arie. -
No data found error on Form on a Table with report
Hi Everyone, I'm using Application Express 4.1.0.00.32 on Windows 7. I built a Form on a table with report. Earlier I was using rowid as a passing parameter but then I had to change it to primary key column from report to form.
So in the "Fetch row process" I changed the "Items containing primary key value" and "Primary Key column" to P1004_PERSON_ID and PERSON_ID respectively. Which is my primary key.
My Form is working exactly fine but at on point it throws "no data found error".
I have a required date field in the form. So if the user doesn't fill in the date field and try to save the form, it throws the "Feild required error" and then when user enters date and try to save then it throws the error "No data found.". here is the snapshot... snapshot
How can I fix this error.I'm really stuck.
I checked debubber..it is as follows... in debughger it's still showing rowid. I don't know why. How can I fix that.
Execution
Message
Level
Graph
0.00233
0.00932
S H O W: application="101" page="1004" workspace="" request="" session="123235901404364"
4
0.01161
0.00102
Language derived from: FLOW_PRIMARY_LANGUAGE, current browser language: en-us
4
0.01261
0.00046
alter session set nls_language="AMERICAN"
4
0.01307
0.00042
alter session set nls_territory="AMERICA"
4
0.01348
0.00053
NLS: CSV charset=WE8MSWIN1252
4
0.01401
0.00042
...NLS: Set Decimal separator="."
4
0.01443
0.00053
...NLS: Set NLS Group separator=","
4
0.01495
0.00050
...NLS: Set g_nls_date_format="DD-MON-RR"
4
0.01545
0.00051
...NLS: Set g_nls_timestamp_format="DD-MON-RR HH.MI.SSXFF AM"
4
0.01597
0.00050
...NLS: Set g_nls_timestamp_tz_format="DD-MON-RR HH.MI.SSXFF AM TZR"
4
0.01647
0.00079
...Setting session time_zone to -05:00
4
0.01726
0.00046
Setting NLS_DATE_FORMAT to application date format: DD-MON-YYYY
4
0.01772
0.00060
Setting NLS_TIMESTAMP_FORMAT to application timestamp format: DD-MON-YYYY HH24.MI.SSXFF
4
0.01832
0.00092
...NLS: Set g_nls_date_format="DD-MON-YYYY"
4
0.01924
0.00049
...NLS: Set g_nls_timestamp_format="DD-MON-YYYY HH24.MI.SSXFF"
4
0.01973
0.00083
...NLS: Set g_nls_timestamp_tz_format="DD-MON-RR HH.MI.SSXFF AM TZR"
4
0.02056
0.00099
NLS: Language=en-us
4
0.02154
0.00157
Application 101, Authentication: PLUGIN, Page Template: 5091946581246503
4
0.02312
0.00065
...fetch session state from database
4
0.02377
0.00106
fetch items
4
0.02483
0.00065
...fetched 103 session state items
4
0.02548
0.00194
Authentication check: NTLM (NATIVE_CUSTOM)
4
0.02742
0.00188
...Execute Statement: begin declare begin wwv_flow.g_boolean := f_ntlm_page_sentry_parm; end; end;
4
0.02930
0.00050
... sentry+verification success
4
0.02980
0.00042
...Session ID 123235901404364 can be used
4
0.03021
0.00114
...Application session: 123235901404364, user=VARMAN01
4
0.03135
0.00162
...Check for session expiration:
4
0.03297
0.00075
Session: Fetch session header information
4
0.03372
0.00113
...Setting session time_zone to -5:00
4
0.03485
0.00080
Branch point: Before Header
4
0.03565
0.00598
Fetch application meta data
4
0.04165
0.00081
...metadata, fetch computations
4
0.04245
0.00076
...metadata, fetch buttons
4
0.04321
0.00086
Setting NLS_DATE_FORMAT to application date format: DD-MON-YYYY
4
0.04406
0.00058
Setting NLS_TIMESTAMP_FORMAT to application timestamp format: DD-MON-YYYY HH24.MI.SSXFF
4
0.04464
0.00049Just an observance... SQL is still showing the rowid instead of the P1004_PERSON_ID ??
where "PERSON_ID" = :p_rowid;
should it not be :
where "PERSON_ID" = :P1004_PERSON_ID:
thx, Bill -
Form on a Table with Report, 2 Pages
I have a view and i am using this to create a page as follows for insert/update/delete .
(1) create application from scratch
(2) on page 1 using wizard choice "Form on a Table with Report, 2 Pages"
(3) Follows the screens and create the 2 page where first page is a report and when i click on edit(in my case) it goes to next page for insert/update/delete.Everything like insert/update/delete works fine .
Now this view has say three columns
(1) element_type_id
(2) element_name
(3) yesnoflag
changing element_name and yesnoflag column is ok but then i need to have element_type_id corresponding to the element_name from some other table.
Question1
How should i get the element_type_id corresponding to the element_name .so when i create a new record it goes to page 2 and i can provide LOV for element_name and enter into yesnoflag, how can i get the element_type_id populated corresponding to the element_name entered.
Question2
Also in my application i have name element_type_id as primary key .I am not sure if thats a good idea or should i make element_name as primary key ?
please help.
Thanks,
Sachinhey rui--
by "adjust your html", i simply meant that you should look at your page, think about the html that's being used, and adjust it as necessary to make your data wrap as desired. now that i'm pretty sure i understand your issue, i can tell you the adjustment. you're saying that your form shows your long column "correctly" with data broken up onto separate lines by carriage returns or linefeeds. when you display that same data in your report, those carriage returns ( chr(13) ) and/or linefeeds ( chr(10) ) aren't observed. that's because they don't mean much in regular html. two ways to approach this would be:
a) replace your carriage returns with explicit <br> tags to get the breaks that you want...
select test_id, replace(test_description,chr(13)) test_desc from my_table;
b) wrap your column with <pre> tags to preserve all the original formatting of your data...
select test_id, '<pre>'||test_description||'</pre>' test_desc from my_table;
...and you could, of course, do option B in your report row template if you'd like.
hope this helps,
raj -
Form on a table with report using DB Link
Hey Guys
How do i create a "Form on a table with report"?? using a database link. Under the "Table/View name" category when i provide the table name with the database link (like EMP@test), it compalins and says table or view does not exist and it only allows me to select from local tables. When i run "select 1 from emp@test" in sql commands window, it does return records so database link is working..
Any suggestions??yes, I know i can do that, but when i tried it, its not displaying the records that are in the table, so how can i delete an existing record. Its doesnt allow me to browse through the records. Atleast, in the other way, it creates an edit button on the left and clicking it will take you to a form when you can edit it, add/delete.....this is all really simply, only issue is how to incorporate database links in this.
-
INSERT Statement behind a FORM on a TABLE with REPORT
When I create a form on a table with report, I'm sure an INSERT STATEMENT is genereated in the background somewhere. How can I see this insert statement or how can I get to this INSERT statement? If I can see it, would I be able to modify this INSERT statement?
Please use simple terms.
Thanks.Roel
At first, i was just curious to see where that insert statement is and how it looks like.
Later, I really wanted to see it because I wanted to know how it looks like whne I try to insert a one to many relationship record. Don't know if I'm being too clear on this.
Lets say table A and B have a 1-to-many relationship. When I want to insert records into both A and B, how does the insert work? Maybe if I get an answer to this question, I may understand how the inserts are done on a 1 to many relationship data insert.
Thanks. -
Form on a Table with Report - Auto Number
Hi,
Scenario:
I want to create "Form on a Table with Report" that should allow my users to add records...
Steps and issues
I created a table in MS Access with a field called "TRACKING_NO" as type Auto Number and made it a primary key... I was planning to use it to link Report to Form
When I uploaded the table to Oracle it changed the type to varchar2... can you please advice how to change it back to Auto number...?
and will it work if my user add a record to the table (using APEX built in option to create a record)...?
Thanks in advanceHi,
this is what I would do.
1. Upload the table from MS Access, lets call it TAB_A
2. Using SQL-Workshop get the DDL (SQL statement) for this table
3. Change any names and/or datatypes as required
4. Create a new table with this DDL, lets call it TAB_O
5. Copy the contents from TAB_A to TAB_O (e.g. INSERT INTO TAB_O (id, colx, coly) SELECT TO_NUMBER(tracking_no), col1, col2 FROM TAB_A;)
6. Create a sequence which starts with the last PK + 1 of table TAB_A
7. Add a trigger to TAB_O to use this sequence to populate it's PK
By the way, working with APEX requires a solid understanding of Oracle SQL and PL/SQL, regardless of what anyone says, even Oracle.
Regards Garry -
Need to create form on a table with report with a table has NO primary key
Hi, I tried to created some insert/update/delete form+report in an application, it works fine only if the table has primary key. Does anyone know how to create the same functionality with a table with no primary key? I saw an application is built on older version of htmldb that is using tables with no primary keys at all.
Here are the specific issues that I am facing:
- I am building some Form on a table with Report, it requires the table with primary key for form to update. Is there a workaround that I can use tables that has no primary keys at all?
- Say if primary key is necessary in the previous report+form, but the maximum number of columns that I can use to composed a primary is only 2 for that Form-Report, I cannot find anything handling > 2 primary key. Do you know if there are some ways to composite a primary key from many columns together?
Your help is really appreciated.
Thanks,
AngelaSorry to ask response so late. I had no time to get back to that issue before.
Regarding the triggers, I can make it work for the update, but not the insert.
Here is my trigger:
create or replace trigger STATUS_T1
instead of insert on STATUS
begin
insert into STATUS ("LABEL", "AREA", "OWNER", "TEST_NAME", "STATUS", "REMARKS", "BUGS", "DEV_MGR", "TEST_BY_DATE")
values(:new.LABEL, :new.AREA, :new.OWNER, :new.TEST_NAME, :new.STATUS, :new.REMARKS, :new.BUGS, :new.DEV_MGR, :new.TEST_BY_DATE);
end;
by any chance, you can notify what is wrong?
I already skip the ROWID when inserting to the view STATUS, but I cannot figure out what is wrong when inserting a new record to that view.
It gave me the following errors:
ORA-06550: line 1, column 38: PL/SQL: ORA-00904: "ID": invalid identifier ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
Error Unable to process row of table STATUS
Then, I turned to debug mode, I am thinking that maybe because I use a HIDDEN item to hold the value of ROW_ID as I use the rowid (called ID in the view) to retrieve the record as a column link from previous page. What do you think?
Thanks again,
Angela -
Form on a Table with Report,SOS!!!!!!!!!
I HAVE TWO TABLE'S AS
TAB_SALES AS
BRAND SKIND PRICE SALES
APPLE PHONE 5000
SAMSUNG PHONE 3000
SONY PHONE 5600
PIONEER PHONE 2300
SANYO BATTERY 109
AND TAB_COUNTRY AS
BRAND CONUTRY
APPLE USA
SONY JAPAN
SAMSUNG KOREA
SANYO JAPAN
AND I WANT TO CREATE A Form on a Table with Report to display the :
BRAND SKIND PRICE SALES CONUTRY
APPLE PHONE 5000 USA
SAMSUNG PHONE 3000 KOREA
SONY PHONE 5600 JAPAN
PIONEER PHONE 2300 JAPAN
SANYO BATTERY 109 JAPAN
I want to let end_user modify the sales
but when I create the Form on a Table with Report,the apex give me the rowid error:
Error creating form and report.
ORA-20001: Unable to create query and update page. ORA-20001: Unable to create query and update page. ORA-01445: cannot select ROWID from, or sample, a join view without a key-preserved table
who can help me ?Hi lily,
I'm sure you are aware of these, but please have a look again at the "Welcome" page of the forum: https://forums.oracle.com/forums/ann.jspa?annID=1324 and think about changing the subject of your post.
Please provide your APEX and DB version, along with the SELECT statement you are using in the form.
Any chance to create an example on apex.oracle.com?
This would probably be the quickest way to get help.
Thanks
Sandro -
How to get the search criteria value in model
Hi,
I've a search page and one of the search item has BETWEEN operator. How can I get the values for this search criteria item in model project ie., inside the VOImpl.java?
ThanksAs you gave no jdev version and no use case all I can tell is to look at http://www.oracle.com/technetwork/developer-tools/adf/learnmore/59-table-filter-by-data-range-176653.pdf which might help.
What do you want to do with the parameter inside the VO?
Depending on the use case and jdev version there are other possible solutions.
Timo -
How to enable the search option for a column in an old report
Hi ,
I created the report. It works fine. I remember while creating the report, at one step, I was asked to sort, search column level (check option) . I skipped that option at that time. But now I want to check/ enable them . So, how and where to do that ?
Thanks.Hi,
I think easiest way is re-create your report , so wizard do things for you.
Other vise you need create "search bar" region and items manually and edit report where clause.
You can first set your old report condition to never and create new report with same select.
When you are sure that new report working ok, you delete old report.
Br, Jari -
How can I be able to create a primary key in a Form on a Table with Report?
When I click the "Create" button, a form appears allowing me type in data for those columns. But primary key is not there. I really need to specify my primary key here also. Because the primary key for this table is a Serial Number, not just a sequence number.
I noticed that when I created this page earlier, the primary key was ruled out by default. I wish there is a way to accomplish this. Thanks!Hello,
>> a pk field is not null implicit …
I’m not sure I understand your statement. Every item, including the one holds the primary key, is null for a new form. The question is, when you are filling the form, how to populate this field. The APEX wizard assumes this field will be populated by the system, hence it hides it from the user, however it’s a valid situation where the primary field is filled by the user.
As primary field should not be changed, hence the productive advice by Martin. If the form displays an existing record, the primary field item should be set to Read Only.
Regards,
Arie.
Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all. -
How to get the number of routes in MLS L3SW table with SNMP
Hello experts,
Is there any way to get the number of routes in the MLS-hardware Layer 3-switching table with SNMP, like with CLI command "show mls cef summary"?
If possible, please let me know the OID and which MIB do I use.
[e.g.]
#show mls cef summary
Total routes: 400000
<omit>
====
Device : C6509E
IOS : s72033-advipservicesk9_wan-mz.122-33.SXH3a.bin
====
Thank you,function buttonClick()
var table = profileTable;
var lnRow = table.rows.length;
var insertedRow = table.insertRow(parseFloat(lnRow));
var cell1 = insertedRow.insertCell();
cell1.innerHTML ="<tr><td><Input type=\"hidden\" >>>name=\"rowNum\" value="+cnt"+></td></tr>";
document.profileform.submit;
on submit it goes to the second page, but the value i got using >>>System.out.println("row number from text >>>box"+request.getParameter("rowNum")); is null. What is wrong with >>>my coding. Can anyone solve this.HI carry
Check the value of bold data
function buttonClick()
var table = profileTable;
var lnRow = table.rows.length;
var insertedRow = table.insertRow(parseFloat(lnRow));var cnt=inRow
var cell1 = insertedRow.insertCell();
cell1.innerHTML ="<tr><td><Input type=\"hidden\" >>>name=\"rowNum\" value="+cnt+"></td></tr>";
document.profileform.submit;
}try with it -
How to restrict the Search Criteria in Search Screen
Hi Frds,
I need to restrict the user to search with the set of value for a particular group.
Example: group G1 link to 5 users which will be '10' '30' '60' '80' '110'.
I am able to detect the G1 group at run time and also get all users link into it. but i dont know how can i make a setup so that resultant show only those order created by these user only.
Thanks
Imran .Thanks Smod,
I think u dont understand my ques.
Anyways some how i achieve my req.
Below are the steps i used.
Loop at lt_name.
lv_index = 8.
lr_query_service->insert_selection_param( iv_index = lv_index
iv_attr_name = 'CREATED_BY'
iv_sign = 'I'
iv_option = 'EQ'
iv_low = Lt_UNAME
iv_high = Lt_UNAME ).
lv_index = lv_index + 1.
endloop.
Maybe you are looking for
-
I'm trying to update my Macbook, but its not really updating. How can I updat it to a better version like OS X Lion , OS X Mavericks v10.9 or later. So I can actually get the icloud on my settings and start using it? Thank u very much
-
Hi all I am new to java technology, can anyone explain me the difference between JVM Vs JRE. Any help would be appreciated. Thanx in advance, Tom
-
Retrieve information and phone numbers from a stolen iphone
I need to retrieve the information and phone numbers from my stolen iphone
-
I can't download Lion on my MacBook Pro today is something wrong with the site?
I am trying to download Lion for the first time. I have a MacBook Pro 2.6Ghz Intel Core 2 Duo with 4 GB 667 MHz DDR2 SDRAM and the Apple Store is not responding. Is anyone else having problems? Thanks
-
Bug using iPhoto on Macbook Pro Retina
Hi Guys, First post. I have the new Macbook Pro Retina 13" Whenever I use iPhoto, as soon as I go to another program and come back it takes me to "Last import" folder regardless of where I was. Is there a fix for this bug? It's really annoying