Column based on slot-shaped table
Hello everyone,I have a tabular layout with the SQL as source of the region:
Select
'EMPNO ',.
'EMPNO' EMPNO_DISPLAY,
'ENAME ',.
"JOB."
"SAL."
"COMM"
NVL(SAL,0) + nvl(comm,0) total_sal,
"DEPTNO".
of ' #OWNER # '. " EMP.
When I run the shape first, it happens with all the lines showing total_sal column as well. But when I change the values for the columns sal and comm, the total_sal does not change unless I submit the values. Is there a way to change the value of total_sal before submitting changes to the database?
Thank you
do the column readonly instead of disable.
Tags: Database
Similar Questions
-
While I've used the plugin counter for items on the page successfully, I would use it for tabular forms of tabular/manual form for the same application to ensure consistency in the application.
Since the meter APEX plugin does not work for tabular forms, I tried to reproduce the function using the jQuery plugin. Also, I checked js and css library are included. The page contains an element of the P1_SPINBOX page that uses the meter plugin.
For example, I changed the report as a table to use class = meter:
I added the plugin meter jquery in the property page:apex_item.text(10,C006,0,null,'class="spinbox" style="text-align:right"') as "SAL", apex_item.text(11,C007,0,null,'class="spinbox" style="text-align:right"') as "COMM",
It still does not work. What should I do to get the function of counter for the number of columns in the form of tables?// Create group of settings to initialise spinbutton(s). (Optional) jQuery(document).ready( (function($){ // Initialise INPUT elements as SpinBoxes: (passing options if desired) $("INPUT.spinbox").spinbox; }) (function(){apex.jQuery("#P1_SPINBOX").spinbox({"min":0,"max":100,"step":10});}) );
APEX 4.1
10.1.2 Oracle database
I put an example on the APEX. ORACLE.COM.
Workspace: EDIAZJORGE
Application: Example application (1550)
User: TEST
Password: test
Password:
Robert
http://apexjscss.blogspot.comHi Robert,.
I changed your javascript in the service and the Global Variable declaration in commenting on the counter for P1_SPINBOX.
// Create group of settings to initialise spinbutton(s). (Optional) jQuery(document).ready( (function($){ // Initialise INPUT elements as SpinBoxes: (passing options if desired) $("input.spinbox").spinbox(); }) //(function(){apex.jQuery("#P1_SPINBOX").spinbox({"min":0,"max":100,"step":10});}) );
It seems that counters now work on SAL and COMM columns in tabular form.
Kind regards
Erik-jan -
Problems with slot-shaped table and set the values of column
Hello
I have a problem with a tabular presentation.
I have two tables
P_detail and table v_master
columns of v_master:
v_id
v_Name
v_info
columns of p_detail:
P_ID
p_master_fk
p_name
p_info
I want to have a tabular presentation where I can store permanent data retail values. That's why I want to keep the default main column join the detail columns.
In SQL, I can do this with an outer join:
SELECT m.v_name, d.p_master_fk, d.p_name, d.p_info
OF v_master, p_detail
WHERE v_id = p_master_fk (+)
I get the lines that exist for the master data and can add values for the columns of detail. I removed the "add lines" because that makes no sense, because the amount lines are already offered at the opening of the tabular presentation.
Now, I want to get/save the v_id (main table) in the p_master_fk column value
How can I do this?
Thank you and best regards,
MatthiasHello
One approach is to use a database instead trigger. If you define a database view using the query:
SELECT m.v_id, m.v_name, d.p_id, d.p_master_fk, d.p_name, d.p_info
OF v_master m, p_detail d
WHERE v_id = p_master_fk (+)Then, create a trigger on the view that will insert in the detail table if d.p_id is null and update the secondary table if d.p_id is not null instead.
The Apex tabular form is then based on the view (with identifiers like hidden columns) and all treatments multirow Apex should work without modification.
Rod West
-
Horizontal scrollbar for slot-shaped table
Hi all
I'm bring Page where are the two regions.
Two regions are side by side.
Second half of the page contains a table that is based on a table that has 80 columns, I use the theme "" Productivity Applications - 26 * ' "
Version of the APEX is 4.2. Problem is Iam not able to scroll horizontally to see all the columns.
Can someone let me know how we can add horizontal scroll bar to a tabular presentation so that I can go through all the columns.
Thank you
Ch.
Change defination report
put
in the header of the region
at the foot of the region
-
How to recover new logical column based on values of table hint.
Hello
I have two tables in SPR
1. file table contains the coulmns-> date, numero_fichier, record_count, cldm_stg, cmsa_stg, archive_stg
2 rejection table columns are--> same as above
both have same common requirement of columns.my is to publish a dashboard as:
Date | County land_files | alnd_recordscount | County target_files | target_records County | Rejection filecount | number of records release
These report ineed recover from these two tables.based on countcomes values.taget flag when all values of ILI value = 'y '.
IE (cldm_stg = 'y' and cmsa_stg = 'y' and archive_stg = 'y') if not then it will be in the release file.
Please give solution how to achieve my output.
[nQSError: 14026] Impossible to navigate the requested term: Target_record: [DAggr (FILE_CONTROL. Target_record by [FILE_CONTROL. FILE_NAME, REJECTED_FILES. File_name, REJECTED_FILES.NO_OF_ROWS, File_landing.NO_OF_ROWS, File_landing. (FILE_LOAD_DATE] SB FILE_CONTROL)]. Correct metadata consistency warnings. (HY000)
Published by: user8767586 on January 12, 2010 04:29First answer the following questions:
What is your fact table?
What are your dimension tables? -
Dynamic action on slot-shaped table
Hello
can someone please help to create dynamic action in the form of tables.
(1) on page load if the State is 'No' and sysdate is between Nov1st to 30 Nov. User can change the status of and 'Yes' and status Date changed to Nov. 1.
(2) when the user attempts to change the status of 'Yes' to 'No' and sysdate is between Nov1st to Nov 30, then the status Date changed to Nov. 1.
Otherwise if sysdate is between Dec1st to Dec30th then Status Date changes to Dec1st.
Apex. Oracle.com
w/u/p: nani5048/test/test
App: 92603 and page 2
I don't think it's possible with a pure dynamic action
It takes a bit of javascript or jQueryI modified the application, see for yourself
concerning
-
I need to create a lov on a tabular presentation, using the same table as the form and the need to ignore the line where love will be open.
How can I read where clause that it ignores the line?What is the kind of thing you mean?
http://Apex.Oracle.com/pls/OTN/f?p=579:29
This is the code I used:
select ename, APEX_ITEM.POPUP_FROM_QUERY(3,job,'SELECT DISTINCT(job), job FROM emp where job !='||nvl(job,99)) test FROM emp
Shunt
-
Interactive report features on slot-shaped table
Hello world
I need to have a search function on a report like the interactive report. On the interactive report, you can type a word/number in the search box and this word/number search. Then once the research is completed you can search again for a different word/number, narrowing down search you whenever you enter a new word/number. You can do until you have only one remaining line.
I need this feature in a tabular presentation, but I'm not sure how to write the SQL code.
Is this possible?
Thanks in advance,
N.S.N.O.Hello
OK, I see what you mean... Here's how the IR done so
SELECT * FROM my_table WHERE ((INSTR(UPPER(column1),UPPER(:APXWS_SEARCH_STRING_1)) > 0 OR INSTR(UPPER(column2),UPPER(:APXWS_SEARCH_STRING_1)) > 0 OR INSTR(UPPER(column3),UPPER(:APXWS_SEARCH_STRING_1)) > 0 ) and (INSTR(UPPER(column1),UPPER(:APXWS_SEARCH_STRING_2)) > 0 OR INSTR(UPPER(column1),UPPER(:APXWS_SEARCH_STRING_2)) > 0 OR INSTR(UPPER(column2),UPPER(:APXWS_SEARCH_STRING_2)) > 0 OR INSTR(UPPER(column3),UPPER(:APXWS_SEARCH_STRING_2)) > 0 ))
Is that what you mean?
See you soon
Ben
-
In the form of table-update a column based on the other
Greetings,
I want to update a column based on the value of another column in a tabular presentation. What should I use? Calculation or validation process?
-VatsaYes, get rid of the update of "pims_component" - this is the cause of the error table mutation - and simply set
: new.state_ind: = Ls_state;
CITY
-
Compare multiple columns and update a column based on the comparison
Hi all
I have to update the column STATUS of the slot structure of the table.
Status should be 'P' if all the columns count are equal on the other should be "F".
The value of the column can be "NA'. If the value is NA, then avoid this comparison column; compare only other 3 columns.
My output should look like below.
State of cnt1, cnt2 cnt3 ID cnt4
1 4 4 4 4 P
2 4 5 4 4 F
3 4 4 NA 4 P
NA 4 4 3 4
I tried with the statemnt with BOX WHEN conditions and DECODE UPDATE, but could not succeed, can someone please help
To do this, if you use my statement in response #11 box (Re: Re: comparison of multi-column and update a column based on the comparison of)
-
How to divide the data in the column based identifier
Hello
I use the oracle database.
I have data in this format in my column 1234 ~ 2345 ~ 3456 ~ 4567.
I need a motion to split the data in the column based on the identifier ' ~', so that I can choose the value after the second occurrence of the identifier.
Do I know who can do this.
Published by: 962987 on October 3, 2012 12:11Hello
Welcome to the forum!
Whenever you have any questions, please post CREATE TABLE and INSERT statements for some examples of data and the results desired from these data. For example, in view of these data
CREATE TABLE table_x ( my_column VARCHAR2 (40) ); INSERT INTO table_x (my_column) VALUES ('1234~2345~3456~4567'); INSERT INTO table_x (my_column) VALUES ('just~2 parts');
I think you're asking for these results
PART_3 MY_COLUMN ---------- ---------------------------------------- 3456 1234~2345~3456~4567 just~2 parts
I suppose that, if the string does not contain at least 2 ' ~ s, you want to return null. It's a good idea to explain what you want like that for special cases and include examples in your sample data and results.
Not all versions of Oracle are exactly the same. In fact, they are all different. If you want the best solution that works with your version, then say what version it is.
The following query will work in Oracle 10.1 and higher:SELECT REGEXP_SUBSTR ( my_column , '[^~]+' , 1 , 3 -- 3rd occurrence (after 2nd delimiter) ) AS part_3 , my_column -- if wanted FROM table_x ;
See the FAQ forum {message identifier: = 9360002}
Published by: Frank Kulash, October 3, 2012 15:24
Adding sample data and results. -
How to select columns, that we need a table with pivot
Hello
How can I select only the required columns that I need the table
My goal is to keep everything in one line
Database: 11.2.0.2.0
I have a table called Table Agent
create the table AGENT_DETAIL
(
agent_id NUMBER (20) not null,
agent_type_code VARCHAR2 (10) not null,
agent_type_prefix VARCHAR2 (10) not null,
Type_Code VARCHAR2 (10) not null,
type_prefix VARCHAR2 (10) not null,
last_modified DATE not null
)
INSERT INTO agent_detail VALUES
(29709, ARE ',' OFFICE ',' DNSWEB ',' AGTDETAILS', SYSDATE);
INSERT INTO AGENT_DETAIL VALUES
(29709, ARE ',' OFFICE ',' DNSNATID ',' AGTDETAILS', SYSDATE);
INSERT INTO AGENT_DETAIL VALUES
(29709, ARE ',' OFFICE ',' DELIVERY ',' AGTDETAILS', SYSDATE);
INSERT INTO AGENT_DETAIL VALUES
(29709, ARE ', 'OFFICE', "WEBUSAGE", "WEBUSER" SYSDATE);
When you query it against the table
SELECT * FROM AGENT_DETAIL;
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX TYPE_CODE TYPE_PREFIX LAST_MODIFIED 1 29709 RE OFFICE DNSWEB AGTDETAILS 22:14:15 12/09/2015 2 29709 RE OFFICE DNSNATID AGTDETAILS 09/12/2015-22:15:26 3 29709 RE OFFICE DELIVERY AGTDETAILS 09/12/2015-22:21:37 4 29709 RE OFFICE WEBUSAGE WEBUSER 10/12/2015-09:27:52 Because my goal is to put everything in a single line instead of get in 4 rows
My query is like that
(select *)
the Dungeon of pivot (min (TYPE_CODE) AGENT_DETAIL (last dense_rank command by LAST_MODIFIED) for TYPE_CODE in ('DNSWEB' as the WEB)
'DNSNATID' as
NATIONAL,
'DELIVERY' AS
DELIVERY,
"WEBUSAGE" AS WEBUSAGE
)
))
Result:
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX TYPE_PREFIX WEB NATIONAL DELIVERY WEBUSAGE 1 29709 RE OFFICE WEBUSER WEBUSAGE 2 29709 RE OFFICE AGTDETAILS DNSWEB DNSNATID DELIVERY Is it possible to get everything in one record, I know that I have two type_prefixes different (WEBUSER, AGTDETAILS)
But all I want to see my data is like this
Agent_id Agent_type_code Agent_type_prefix WEB WEBUSAGE NATIONAL DELIVERY
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
RE OFFICE DNSWEB DNSATID DELIVERY WEBUSAGE 29709
Hello
When you use SELECT... PIVOT, the result set contains 1 row for all the distinct combinations of the values of all columns except columns mentioned in the PIVOT clause. If you want to ignore some columns completely, then let the PIVOT operated at a "table" that does not include the. For example:
with RELEVANT_AGENT_DETAIL as
(
Select AGENT_ID, AGENT_TYPE_CODE, AGENT_TYPE_PREFIX, TYPE_CODE, LAST_MODIFIED
of AGENT_DETAIL
-where--if you filter, put it here
)
Select *.
of RELEVANT_AGENT_DETAIL
Pivot (min (TYPE_CODE) Dungeon (last dense_rank command by LAST_MODIFIED))
for TYPE_CODE in ('DNSWEB' as WEB
'DNSNATID' as NATIONAL
'DELIVERY' as DELIVERY
"WEBUSAGE" as WEBUSAGE
)
)
;
If you are lazy or trying to be cute, maybe you can give the columns unwanted some lazy jobs in the PIVOT clause, like this:
Select *.
of AGENT_DETAIL
Pivot (min (TYPE_CODE) Dungeon (dense_rank last order by LAST_MODIFIED)
TYPE_CODE
TYPE_PREFIX
)
for TYPE_CODE in ('DNSWEB' as WEB
'DNSNATID' as NATIONAL
'DELIVERY' as DELIVERY
"WEBUSAGE" as WEBUSAGE
)
)
;
But this makes the code confusing and may be difficult to maintain.
-
Hide column based on the State in BI Publisher Excel Template
Hello
I have a requirement to hide a column based on certain conditions in the Excel of BI Publisher model. I am newbie for BI Publisher excel template. Anyone can provide some advice on this?
I need this emergency. Any kind of help would be very appreciated.
Thank you
Renu
Hi Renu,
Recently, I came across a similar requirement, and I went to without BEEP features to hide and show columns during execution, unlike the RTF.
But I did it in Excel model with the help of the Macro. It works fine for me.
Please see below
1. based on a cell value 'A', I have to hide the column
2 written a simple if statement in macro to get the value of 'A' and do the hide/show
3. you need to do this only in "ThisWorkbook" macro is executed when the excel output is open.
Thank you
Mani
-
Display a column based on another column
Hello
I work in the Apex 4.2.
I have a tabular presentation based on a query.
In this form, I have a column of link change with an icon. When I click it, I open a new page with the details of my record.
I want that this column appears only when the user is entitled.
So, I got in my request a new column based on a Pl/sql function that returns 1 when the logged-on user has the privilege package update the record.
I call this new column "can_update."
After that, I changed the "conditional display" property of my edit_link column.
In type of condition, I put: "value for the element / the expression 1 column = Expression 2.
I put in the expression 1: can_update
I put in the expression 2: 1
But it does not work as I want. colonm "edit_link" never appears.
and the can_update column return the good value 1 or 0 on depend on the recording.
Anyone has an idea on what I didi wrong?
Thank you.
Laurent.
I found a solution to my problem.
I have a column in my query that return 'none' or 'inline' when I have the privilege to update my file and thus, the column "edit_link."
Thos query column name is link_disp
And in the "link attribute" property, the "link in the column" Section of my edit_link, I add: "style =" display: #LINK_DISP #»»
and it works well
Laurent.
-
Can I use hierarchical column-based action link?
Hi all
I used 11.1.1.6.2 OBIEE.
And I want to know can I use hierarchical column-based action link? I want to show the link based on some certain conditions...
I try to add conditions, such as the Department is equal to A, but after that I added, it shows me "Department is equal to", why?
Can someone give me some advice?
Kind regards
AnneHi Anne,.
It should work. How to add the link of action?. Click the icon + on the TreeView column in the criteria tab, lists all the columns in the hierarchy. Each column has its own column properties. Click on the properties of column-> tab Interaction Department hierarchy level and define your conditional action link.
Kind regards
DpKa
Maybe you are looking for
-
6 TB to uninstall and remove mail archives
Hi all I've got to 6 installed on my Win7 Pro laptop. I want to uninstall TB and remove old files of e-mail folder. My old email files are located at C:\Users\Advait\AppData\Roaming\Thunderbird. Question: Can I uninstall TB and then remove C:\Users\A
-
Pavilion p7 - 1207c: upgrade video card on Pavilion p7 - 1207c
Hello I am wanting to upgrade the integrated graphics card that came with my computer to a GeForce GT 730. I already have the card and was plugged into my PCIe x 16 slot and see the fan turns, but neither my BIOS or Windows sees a card plugged into t
-
Pavilion 15-p158sa 15.6 "touch: removing the battery
How can I remove the battery on my Pavilion 15-p158sa 15.6 "touchscreen mobile please?
-
Definition of Auto-Configuration Wireless on laptop
The only way I can connect my laptop to my NetGear router must run Microsoft Fixit50469 v2.1.3.2 whenever I start my computer. Anyway to fix permanently everything which is the Fixit 50469 fulfillment?
-
HP G6-1247SA will not find my router and will not read memory cards
Hi I just bought a HP G6 model 1247SA and it will find all networks and the habit of reading my SD card but it does not pick up USB. I think it might be because the drivers but how do I not know what drivers to download? It has windows 7 pro is insta