Tabular form with onhover comment column
Hi guys!
I was wondering if anyone of you saw an example of onhover item help with query...I mean..lets imagine a tabular form with a text field Comment column. Comment column has width 50 but we all know that comment ale like to be long ;) I'd like to see full lenght comment every time I put my mouse pointer on a specific row. Is it possible ? If yes can you show me an example or point me in a good direciton...(I dont know javascript well..)
With regards,
PsmakR
PsmakR,
Yes it is possible. Currently the ShowPopup script displays the value of current cell (hv_item.value). You can just simply replace with whatever you like.
If you're talking about the value of other columns, you may have to use document.wwv_flow.fXX to refer to it. Again, see my other sample of [Tabular Form Column Read-only|http://apex.oracle.com/pls/otn/f?p=57043:4] . Patrick Wolf wrote about this as well in his [ Which Tabular Form Column is mapped to which Apex_Application.g_fxx array|http://www.inside-oracle-apex.com/which-tabular-form-column-is-mapped-to-which-apex_applicationg_fxx-array/] .
Ittichai
Similar Messages
-
Custom Tabular Form with working days by quarter
Hi All, I'm trying to create an application to improve an old excel that some people use in my office. I came across a challenge: create a page when a user can submit for each business day the amount of hours worked, the real problem is that I have to show on the same page 40 business days that need to be dynamic, I mean that there is a "period" table that has a start date and end date, the range between those two MINUS the Saturdays and Sundays should be the amount of COLUMNS that the report show.
create table CT_PERIOD(
PERIOD_ID VARCHAR2(6),
PERIOD_FY VARCHAR2(4),
PERIOD_QUARTER VARCHAR2(1),
PERIOD_START_DATE DATE,
PERIOD_END_DATE DATE,
PERIOD_DAY_COUNT NUMBER,
insert into ct_period values ('1', 'FY14', 'Q1', to_date('01-JUN-2013', 'DD-MON-YYYY'), to_date('25-AUG-2013', 'DD-MON-YYYY'), 56);
commit;
I searched in the web for some example of this with no luck, if somebody did something like this or knows where I can see an example that would be great!
Thanks!Hi guys,
I'm having exactly the same problem, I need a tabular form with days as columns to add actual working hours for each day as for each row ( task) -
Bug: 4.1.1 Tabular form with all columns conditional
I need to make all the columns in a tabular form conditional because in some situations the editable elements should not be shown. For some reason just changing the columns to conditional stops the form working, the ApplyMRU/ApplyMRD process runs but does not action the changed rows. I can't figure out why at all or any workaround.
You can easily reproduce this in 4.1.1 by creating a tabular form with the wizard selecting one column in the form. Then make the row selector colunn and your editable column conditional using the plsql expression 1=1. The form is displayed the just the same with these true conditions but it doesn't work. How weird is that?
Rod WestRod,
In your scenario the tabular form rendering engine is unable to place the hidden, internal tabular form status columns in your form, i.e. the columns that contain checksums, etc. The logic that places these columns looks for the last unconditional, visible column in your tabular form, and includes the hidden fields there. So you need at least one column that's always shown for this to work. This can be an otherwise empty column. I filed a bug (#13881803) for this, so we can look into improving this logic.
Regards,
Marc -
Tabular form with select list not updating
I have created a tabular form with a dynamic select list
select primary_key, column1,
htmldb_item.select_list_from_query(10,column2, 'select descr d, column_value r from lookup_table where column_value = '||column1) column2
from main_table
The select list appears to work correctly but the new value is not saved to the database. I assume this is because the tabular form element display as field for column2 is set to "standard report column" but when I select any of the "display as text" or "LOV" options either the current data is not displayed or errors are generated.
Any suggestions?
Thanks,
BobHi Ian,
As you have seen, sorting on the project_manager_id column will sort by the id value rather than the textual value. This is, of course, because this is the value in the field.
I haven't tried this out, but one thing that may work is the fact that you don't have to include the ORDER BY fields within the SELECT statement. You could, for example, do:
select p.project_number, p.project_manager_id
from projects p, users u
where p.project_manager_id = u.id (+)
order by u.name
Obviously, you won't be able to do this in the existing statement as you would then be blocked from using column sorting. However, it implies that if you could construct the SQL statement dynamically, appending appropriate ORDER BY strings to the end of the base select statement, you could sort by anything you like. This does, of course, mean that you would have to create a mechanism to allow the user to select the sort order, generate the appropriate string and reconstruct the entire sql statement.
I had had a similar request quite a while ago. The underlying reason for that request turned out to be that the user just wanted to quickly locate records relating to one person. In the end, we agreed that a search filter was the best thing to do.
Regards
Andy -
ADD ROW in tabular form with new max value for a certain field
All,
I have a tabular form with an 'ADD ROW'-button.
When a row is added the field 'TemplateID' should get
automatically a new value which is MAX from TEMPLATEID + 1.
I would be very glad, if someone has a hint for me.
Thanks in advance,
lucioHi
the cause of not seeing the 'Default Item Field' is,
that during creation of a 'Tabular Form' the column with the
primary key doesn't get that feature, why so ever.
I still hope that someone could give me a hint why that code isn't working:
function SetNewID(vDBID)
v_check = $v('P20_MAX_TEMPLATEID');
pNd = $u_Carray(vDBID);
for(var i=0;i<pNd.length;i++){
var node = $x(pNd);
node = $x_Check_For_Compound(pNd[i])
var lTr = $x_UpTill(node,'TR');
updateRow = lTr.rowIndex - 1;
document.wwv_flow.f02[updateRow].value=$v(v_check)
Many thanks in advance
lucio -
Tabular form with non base table field
I want to develop a tabular form with
1. A non-base table edit field to accept a value
2. Insert/update another table based on the input value
3. Also, computed field on each row based on other fields on the records (like post-query trigger in oracle forms at block level - for each row)
Thanks,
RachnaThanks for your reply.
Varad, I like the link you sent me. It has a lot of good information.
I created a process (under page processing) called "Update/Insert Process" that dosn't seem to be working.
Question, I created a manual tabular form with SQL Query and created a process (under page processing) called "Update/Insert Process", then I check for each record in the tabular form. If the old value <> new value then I update/insert in the new table.
Any step by step will be highly apprciated - to create process/validation etc.
Thanks,
Rachna -
Error tabular form with validation
Hi everyone,
I have built a tabular form with the wizard and I every time a validation check is done and fails,
getting an error in the place where the tabular form should be. I get to see the tabular form again when pressing the cancel button or refreshing the page.
I'm not quite able to reproduce this error, but I was wondering if anyone knows of this error and a workaround for it.
The error that's displayed is: report error: User-Defined exception
using Apex version 4.1.1. I've already tried building a new tabular form, but that didn't seem to resolve the issue.
I would appreciate the help.
Kind regards,
CleopatraPossible solution?
Validation returns : no data found + unhandled user-defined exception
See post by user 794496 there. -
Apexlib tabular form with lov gining ora-00900
Hi,
When I add a tabular form with 3 items and chagne two of them to a LOV display item I get the following error:
ORA-00900: invalid SQL statement
Debug:
1: begin
2: ---------------------------------------------
3: -- Get metadata of page
4: ---------------------------------------------
5: ApexLib_Page.generateBrowserData;
6: ---------------------------------------------
7: -- Get metadata of items and tabular forms.
8: ---------------------------------------------
9: ApexLib_Item.generateBrowserData;
10: ApexLib_TabForm.generateBrowserData;
11:
12: ---------------------------------------------
13: -- Send data for cascading lovs
14: ---------------------------------------------
15: ApexLib_Lov.generateBrowserData;
16:
17: ---------------------------------------------
18: -- Send NLS data for date formats and numeric
19: -- format masks and translated error messages
20: ---------------------------------------------
21: ApexLib_Browser.setNlsData;
22: ApexLib_Browser.setApexLibMessages;
23:
24: ---------------------------------------------
25: -- Active different navigation improvements
26: ---------------------------------------------
27: ApexLib_Browser.setLovIconsNonNavigable;
28: ApexLib_Browser.setLRButtonIconsNonNavigable
29: ( pLeftClassName => 'L'
30: , pRightClassName => 'R'
31: );
32: ApexLib_Browser.checkForLovKey;
33: ApexLib_Browser.checkForUpDownKey;
34:
35: ---------------------------------------------
36: -- Active different UI improvements
37: ---------------------------------------------
38: /* optional
39: ApexLib_Browser.setTextareaProperty
40: ( pProperty => ApexLib_Browser.VERTICAL_RESIZEABLE
41: );
42: */
43: ---------------------------------------------
44: -- Init browser validation
45: ---------------------------------------------
46: ApexLib_Browser.initValidation
47: ( pShowRequiredWarning => TRUE
48: );
49: ---------------------------------------------
50: -- Has to be the last statement!
51: ---------------------------------------------
52: ApexLib_Browser.flushJsBuffer;
53: end;
Any idea?
ErwinI solved it.
I modified a bit my code "On load Page". In case of LOV i have changed this condition
if (l == undefined) {
document.wwv_flow.f03.disabled = true;
}with this
if (l == 105) {
document.wwv_flow.f03.disabled = true;
}I don't know why 105 instead of undefined, but this works. I give 105, with alert on length. -
How to build a tabular form with a by the user insertable primary key
I have build a build a tabular form with the wizzard. Wat should I do to make the primary key insertable by the user.
When I change the PK from 'hidden' to 'text field', I get a checksum error when i am trying to insert.Fred: When you use the tabular form wizard, notice the help text on the right hand side of each page. The help page where you define the type of primary key (Existing trigger, PL/SQL function, existing sequence) clearly states
Tabular forms do not support user entered primary key values
Makes sense when you think about it. The MRU process needs to determine whether to update a record or insert a new record. It does that by comparing the checksums (and/or) pk values from when the page was first rendered and then when you make changes and submit it. Newly inserted rows will have a blank PK/checksum.
If you allow user to change the PK, how will the system know which rows are new and which ones are old?
For example, lets say you have
create table t
pk int primary key,
data varchar2(10)
)You have 2 rows
1 red
2 yellow
If the PK were to be editable, user could go in and change the above to
2 red
1 yellow
Now what? Would you like the system to create a new row with 1/yellow or change the existing pk=1 row to yellow? Same with the other row.
Bottom line: The built-in processes dont support this. You can always write your own manual tabular form and implement whatever you logic you wish in your After Submit processes.
Hope this helps. -
Horizontal scroll bar in tabular form with columns freeze
Hi All,
I have a requirement where i have to create a tabular form in which the first three columns should be in freeze mode and it should have a horizontal scroll bar.
with the help of Google i found an example [http://apex.oracle.com/pls/otn/f?p=267:46]
I want the same thing as in the example but with first three columns in freeze mode
But could not find out how to create this column freeze and horizontal scroll bar.
Let me know if you have any idea on this
Thanks in advance,
AnanthHi,
It is easy to look at the page source and see what they have done
if you search for var d1 = document.getElementById("d and d1 you see some javascript doing the magic.
Thanks -
Tabular form with uneditable apex_item.text column
When I use the following query for my Tabular Form I have the AGE column uneditable
select
"ID",
"ID" ID_DISPLAY,
apex_item.text(44,"AGE") as "AGE"
from "#OWNER#"."SAS_TEST"
I changed the AGE column type to Standard Report Column but still the column values are not able to update the values.
The column will show the HTML input and view the correct values from the table but you can not update the column.
I have apex 4.0.2I found the solution. You must have both the original column in your sql (as hidden type), and you must add the APEX_ITEM.TEXT with an alias different than the true db column name.
In order to set the hidden real column values after submitting the page, add the page process pl/sql below. Of course you need to find the g_fxx number by looking at your page source. This will transfer the values from one pl/sql table to the other which is mapped in the MRU process.
On Submit - Before Computations and Validations
BEGIN
-- Database Column Name: DEFAULT_VALUE
-- Set the hidden DEFAULT_VALUE field for all visible records to null
-- Note: g_f19 maps to the hidden DEFAULT_VALUE column
-- g_f30 maps to the visible DEFAULT_VALUE_ADMIN column
FOR ii IN 1 .. APEX_Application.g_f19.COUNT
LOOP
APEX_Application.g_f19(ii) := APEX_Application.g_f30(ii);
END LOOP;
END; -
Select item on a Tabular form with a different dynamic LOV on each row
I would like to use a tabular form where one of the columns is a dynamic LOV based Select, and where that dynamic LOV refers to one of the column values on each row.
So if the tabular form represented a list of teams and the LOV-based Select column was the current team leader, I would want that select list to be populated only with the members of that team (different for each row). Since the list of team members is in some other table (all_players or something) I would want to populate the LOV with a query with a where clause that selected only those players records with a team-membership equal to the current tabular form's team id. So, on each row that select list's contents would be different.
-- JustinI'm beating a dead horse here but I did get something to work with "less" code. My current needs do not require me to cascade drop downs, I only want 1. You can use the query like the in the first reply (but I don't have a table with joins) I created a simple two column table dept_emp with 4 records 10,null 20,null .... I want to fill the nulls with an employee but ONLY an employee that matches the dept. (Same concept of team leader and members).
Here's the query:
select apex_item.display_and_save(1,dept) dept,
apex_item.select_list_from_query(2, name, 'select ename from emp where deptno='||dept) name
from dept_emp
I removed the code that was there already (ApplyMRU) and just put in this code:
BEGIN
FOR i IN 1..HTMLDB_APPLICATION.G_F01.COUNT LOOP
UPDATE dept_emp
SET
name=HTMLDB_APPLICATION.G_F02(i)
WHERE dept=to_number(HTMLDB_APPLICATION.G_F01(i));
END LOOP;
END;
The G_F01 matches the column 1 and so forth. There's more documentation but little explanation at:
http://download.oracle.com/docs/cd/B25329_01/doc/appdev.102/b25309/api.htm#sthref2171
The thing I could not get to work was a dynamic message
#MRU_COUNT# row(s) updated, #MRI_COUNT# row(s) inserted.
Not sure when the MRU_COUNT gets populated (probably in the routine I removed ;))
You're probably way past me by now but I like to have as little code as possible when it comes to maintaining an app. That's why I liked oracle forms so much. This kind of stuff was pretty easy to do.
Thanks again everybody! -
Tabular form with Popuv LOV doesn't work with onchange event
Hi all.
I have a problem with tabular forms, Popuv LOVs and javascript.
I have created one tabular form, I want to put a value in "my_field" field when a user selects a new value from other field called "my_list", I have this code:
<script type="text/javascript">
function putValue(pThis)
var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
html_GetElement('f06_'+vRow).value = '0000';
</script>and this for Element Attributes:
onchange="putValue(this);"Everything works well when I choose "Display as Text Field", but if I change this option to "Display as Popup KEY LOV" or "Popup LOV" it doesn't work, I mean "my_field" stays without any value.
I'm using Oracle Application Express Release 4.0 and Oracle 11g
Please help.
Regards.Hi Peter.
Thanks, yes, in fact the position of my column changes, but it doesn't work even with the correct element, I have made a lot of proves and it seems that APEX constructs POPUPS LOVS in a different way and that's why "onchange" does not work.
With this thread: Re: onchange not work on popup lov for a field on collection I have a half solution, It works for existing rows, but it doesn't for added rows.
I have solved this problem calling a function that set the onchange event to every row when "ADD ROW" button is pressed, now it works without problems.
Regards.
Oscar. -
Basic tabular form with manual pk
Hi,
using oracle 11.2.0.1 and apex 3.21.
I'am trying to add a new row in a table with a pk other than trigger generated or sequence generated. the pk column is a varchar2(3 char) and the user can enter any 3 letter values that does'nt already exist. But when I do try to submit the new row I receive an error... any one have an idea ?
in the report attribute, in the tabular form element section, there is a combo box presenting the primary key source, and three option are offered 1-existing trigger, 2-custom pl/sql and 3-existing sequence.. Is there a way to tell apex that the primary key is manually entered ? any one have an idea ?
here is the sequence to reproduce my problem :
1. Click on add row button.
2. Input any data in the new row.
3. Click on Submit button.
4. Receive error:
Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "A884FA378C851786DDFE3A33709CB23C", item checksum = "2CFB135E54ECF3C8ADE5981010D64FAF"., update "BDD"."DI_SYSTEME" set "SY_NOM_PROJET" = :b1, "SY_DESCRIPTION" = :b2, "SY_DATE_CREE" = :b3
thanksYour primary keys should be generated by the database. What you define as a primary key in the front end should not be used for the update / insert processes.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
------------------------------------------------------------------- -
I am trying to create a tabular form that uses multiple altec_item functions (select_list, select_list_from_LOV,...). Whenever I attempt to create a new page and select Tabular Form, I am forced to select a table and columns. So I have just selected any table and once the sql is created, I overwrite it with my own sql. When I try to apply the changes, I get an error anytime I use apex_item... for a particular column. I have tried the same creating a standard report with the same results. I have read at least 20 examples but none say where to start from when creating the tabular form and just jump right in to the code. Can anyone please point me in the right direction?
Thanks,
JerryuYou can start with creating a simple classic report. You can use apex_item functions in your query and later set your column attributes to "Standard Report Column". Basically, you are creating a updateable report.
Maybe you are looking for
-
i bought an IPAD air (32 gb wifi only) from USA just one month ago and the screen is not working correctly(picture attached) and right now i'm in Egypt ,can i send my ipad to service in Egypt and the warranty will work in Egypt or what?
-
GarageBand quits unexpectedly every time i try to open it
I have the white MacBook from 2010. Version 10.8.2 2.26 GHz Intel Core 2 Duo 4 GB 1333 MHz DDR3 Every since i've upgraded to Mountian Lion my GarageBand won't open, it just says "unexpectedly quit". Logic and Mainstage won't open either! Anybody who
-
ABAP OO - Passing Internal Tables from Method to Method
I'm new to writing methods. I have a need to build an internal table in METHOD1 and pass the internal table to METHOD2. I'm confused how to declare the table in 'Parameter' section of the METHOD2. I have specified the following: Parameter = WTAB1 Typ
-
PB 12" 1.5Ghz runs warm and goes black
My 12" PB has started to run warm very quick when using very demanding programs (Adobe Lightroom) and homepages (F1). Also when I try to transfer a CD to iTunes it happens. I have installed Temperature Monitor and the only abnormal is the Processor T
-
I18n - Resource Bundle Bugs ??
I have a string in a resource bundle containing HTML tags such as <BR> etc. The string is displayed in a static text component. The escape property of this component is set. Nevertheless all HTML tags are displayed as text! Is this a bug?? Tom