How to define form within a table with two columns?
Hallo,
i want to design a form with two columns side by side.
My way is to define a table within the form:
<af:panelForm>
<afh:tableLayout width="100%">
<afh:rowLayout halign="left">
<af:inputText value="#{bindings.StsNr.inputValue}"
label="#{bindings.StsNr.label}"
required="#{bindings.StsNr.mandatory}"
columns="#{bindings.StsNr.displayWidth}"
readOnly="true">
<af:validator binding="#{bindings.StsNr.validator}"/>
<f:convertNumber groupingUsed="false"
pattern="#{bindings.StsNr.format}"/>
</af:inputText>
<af:selectOneChoice value="#{bindings.StammsaetzeStsEmpfangsart.inputValue}"
label="#{bindings.StammsaetzeStsEmpfangsart.label}"
tip="Brief, Fax, Mail">
<f:selectItems value="#{bindings.StammsaetzeStsEmpfangsart.items}"/>
</af:selectOneChoice>
</afh:rowLayout>
</afh:tableLayout>
</af:panelForm>
Is there a better way to do it?
Hi reiasmus ,
Try <af:panelForm row="X">, that specifies the number of fields by columns. If you have ten fields and you fix row="5", you will obtain two columns with 5 rows on each.
Regards,
Tif
Similar Messages
-
Dynamic Table with two columns
Hi!
i have to create a Dynamic Table with two columns having 5-5 links each with some text...... three links r based on certain conditions....they r visible only if condition is true...
if the links r not visible in this case another links take it's place & fill the cell.
links/text is coming from database.
i am using Struts with JSP IDE netbeans
Please help me
BuntyIndiai wanna do something like this
<div class="box_d box_margin_right">
<ul class="anchor-bullet">
<c:forEach items="${data.faqList}" var="item" varStatus="status"
begin="0" end="${data.faqListSize/2-1}">
<li>${item}</li>
</c:forEach>
</ul>
</div>
<div class="box_d">
<ul class="anchor-bullet">
<c:forEach items="${data.faqList}" var="item" varStatus="status"
begin="${data.faqListSize/2}" end="${data.faqListSize}">
<li>${item}</li>
</c:forEach>
</ul>
</div>
wanna divide table in two columns....if one link got off due to condition other one take it's position...
I have created a textorderedlist
Bunty -
Populating a table with two columns using a custom bean
hello,
Can someone provide me or give me a link to an example of populating a table (with two columns) with a custom bean?
thank you
fwu1)create a java class
2)have a list as a class variable
3) populate the list in the constructor..
4) map the values in the af:table
//Employee pojo
public class Employee {
public Employee() {
super();
private String empName;
private String empManager;
private String job;
public void setEmpName(String empName) {
this.empName = empName;
public String getEmpName() {
return empName;
public void setEmpManager(String empManager) {
this.empManager = empManager;
public String getEmpManager() {
return empManager;
public void setJob(String job) {
this.job = job;
public String getJob() {
return job;
//maanged bean
public class Bean {
private List<Employee> employee;
public Bean() {
super();
employee = new ArrayList<Employee>();
Employee e1 = new Employee();
e1.setEmpName("xxxxx");
e1.setEmpManager("xxxxxxxx");
e1.setJob("xxxxxxx");
Employee e2 = new Employee();
e2.setEmpName("yyyyyyy");
e2.setEmpManager("yyyyyyy");
e2.setJob("yyyyyyt");
Employee e3 = new Employee();
e3.setEmpName("zzzzzz");
e3.setEmpManager("zzzzzzz");
e3.setJob("zzzzzzzz");
employee.add(e1);
employee.add(e2);
employee.add(e3);
employee.add(e4);
public void setEmployee(List<Employee> employee) {
this.employee = employee;
public List<Employee> getEmployee() {
return employee;
}in the table map like
<af:table value="#{Bean.employee}" var="row" rowBandingInterval="0"
id="t1">
<af:column headerText="Employee Name" id="c1">
<af:inputText value="#{row.empName}" id="it5"/>
</af:column>
<af:column headerText="Employee Manager" id="c2">
<af:inputText value="#{row.empManager}" id="it2"/>
</af:column>
</af:table> -
Sort a table with two columns based on the first
I have a powershell table with the columns 'Used Perc' and 'ID'.
This was formed from the following
$a = @{Expression={[System.Math]::Round(($_.nUsed_Avg/$_.nSize)*100,1)};Label="Used Perc";width=25}, @{Expression={$_.nStatisticalDiskIdentificationID};Label="ID";width=15}
$GLOBAL:CSV2 = Import-CSV $STATDISKOUT | Format-Table $a
Before this, the file $STATDISKOUT had the columns 'nUsed_Avg', 'nSize', and 'nStatisticalIdentificationID'.
My question is, how would I sort the new table based on 'Used Perc' but keeping the corresponding 'ID' column lined up to the right value?We use a select statement to reorder columns and recalculate, The formatters just go at the end to adjust the display.
Import-Csv <file> | select <column order format> | Format-Table
or you can do it in the table:
Import-Csv <file | Format-Table -Properties ,f1.,f2.,,f3....Here is how to inset a sort inline:
$a=@{
L='ID';
E={$_.nStatisticalDiskIdentificationID};
L='Used Perc';
E={[System.Math]::Round(($_.nUsed_Avg/$_.nSize)*100,1)}
Import-CSV $STATDISKOUT | Select $a | Sort 'Used Perc' | Format-Table -Auto
¯\_(ツ)_/¯ -
How to center title text and table across two columns
Hello,
I want to be able to center a table and its title across a two column page. The pages where I want to do this contain text in both columns or text in the left column and graphics in the right. On the same pages as the text and graphics, I'd like to center, across both columns, a table with a title. What is the best way to do this?
If I insert the table in the left column, I can size it to fit over both columns but I can't type directly into the cells that cover the right column (I can type in the cells covering the right column if I Tab to them but it's tedious and doesn't seem right). With the table's title, I've tried using the Across All Columns paragraph setting, but the text stays in the column the paragraph marker is in.
We are using Frame 8 on Windows XP Professional. The Master pages are Right and Left pages that are set up with two columns, both tagged as A with the Autoconnect feature on so that the text flows from the bottom of the left column to the top of the right.
Please let me know what you think.
Thanks,
TimYes, equal-sized columns. No, they're always equal. And that answers
David's question: you're using two frames because you want unequal columns.
Frame's paragraph-level column controls only work on columns made by
dividing a single frame into two or more columns. So you're back to
square one: you need two frames because your columns are unequal; you
need one frame so you can span columns.
Another possibility is that you might set up your document with a
sidehead column, but I hesitate to recommend this because I still can't
quite envision what your layout looks like. Any chance you can post a
PDF somewhere?
Kenneth Benson
Pegasus Type, Inc.
www.pegtype.com -
How to know exact size of table with blob column
I have a table with one BLOB column. I ran this query.
select bytes/1024/1024 from user_segments where segment_name='GMSSP_REQUEST_TEMP_FILES'
(user_segments is a view)
it gave me 0.125
It means size of table is 0.125. I have uploaded 3 files to this table. Each of them is of 5 mb. After that I check size of table. but result was same. i.e 0.125.
Can any body tell me how to know exact amount of space consumed by files. I am expecting following result
size should be (5+5+5+0.125)MB
Any help is appreciated.
Thanks.
Akiehttp://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_1092.htm#i1581211
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:266215435203#993030200346552097 -
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 form the Primary Key and I would like to create a form based on that table; unfortuanately on the 'Create Form Page' there's only 2 options that identifies the first and second PK columns.
Is there a way I could add the third PK column.
Kind regards
MelMaybe this can help:
http://apex.oracle.com/pls/otn/f?p=31517:157
using instead of trigger on a view.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
Replicate Table with spatial columns
I'd like to know how to
replicate (updatable snapshot) a table
with spatial columns.
when i try to create a master repobject
i've got ORA-23318 error.
What can i do?
nullHi Vincent,
Oracle does not support replication of object in 8.1.6 or 8.1.7. I believe replication support is expected for the version after.
Sorry,
Dan -
ComboBox with two columns?
Do you guys know how we can have a DAC comboBox with two columns(e.g. emp_no, emp_name) to update a column(e.g. emp_no) in database?
Thanks for your response.
Ali
nullgrin You don't like my suggestion of creating a view ( or view object ) that where you concatenate 2 or more strings of interest into a separate new attribute... that is used to display?
Yeah, kinda hokey, but quick to implement. -
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. -
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 -
Insert values of form on a table with compound primary keys in APEX
Good evening,
I have a table with compoud primay keys. On ER model I had a many to many relation and when I coverted to relational model I've got a table with the primary keys of the two entities.
My problem now is that I am trying to build an APEX application with a Form/Report and I want to insert a tuple both on the "entity" and on the table with two primary keys.
I created a trigger with
CREATE OR REPLACE TRIGGER ins_key_elem
INSTEAD OF INSERT
ON v_key_elem
REFERENCING NEW AS NEW
FOR EACH ROW
BEGIN
INSERT INTO elem_type (elem_key, type_key)
VALUES (:NEW.elem_key, :NEW.type_key);
INSERT INTO elem(elem_key, name)
VALUES (:NEW.elem_key, :NEW.name);
END;
Is that ok? If it is, now how I can use that trigger to do what I need? i.e. insert the tuple on the two tables when I use the create button of the form
Edited by: 934530 on May 15, 2012 2:36 PMNevermind...figured it out. Was able to set the value on the Report Attributes page.
-
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.
Maybe you are looking for
-
How do I Install a new HD in my PB?
My internal HD is completely dead and I need some suggestions on where to get a new drive and where do I get instructions on how to install the drive. I also need to know what modelHD to buy for this computer. I will appreciate any help in this matte
-
Illustrator CS4 exporting images with subtle grid overlaye
I've run in to a rather troubling issue where Illustrator seems to be exporting images with a very subtle white grid overlay. The raw images do not have this grid, neither do the images as viewed in Illustrator. The grid appears when exporting as .pn
-
How do i fade out a video clip?
how do i fade out a video clip?
-
Add new collection site is broken
Look, I apologize to those forum users who are like me, who honestly, Truly want to help others, those who want to contribute to making the whole FF experience better, who want to Give Back to the community...To all of you, please, Stop Reading Now.
-
Where can I find this corrupt file? I can't find it anywhere.
It's driving me nuts because I keep seeing it whenever I run my anti-virus scan. Whenever I search for the thing, I can't seem to find it anywhere. This can't be possible. I don't know if I need to give you my exact username for this computer, but as