Choose line tbl detail via button in Master due tbl selectionListener custom 2
I have a parent/child table introduced as a master (table) and the control (table). Works fine when we and dropped to page.I now have a selectionListener custom because of the ability of multiple selection on the lines in the master's program (the Steve Muench #134). Since the selectionListener is no longer the default (makecurrent, I think), the line in children is not synchronized (only shows first row). I think since I need to keep the ability of multiple selection, I'll use a command button to set the current line, but do not know how to have the push button mimic "makecurrent feature.
Ideas?
Place the hand on the iterator in the actionListener to the button bound to the table and set the current row to the row where the button was pressed.
Timo
Tags: Java
Similar Questions
-
can you put a line autour just the button to active state when you land on this page
I have a site and I use a very subtle color for my active state. Can I put a line autour just the button to active state when you land on this page? I thought it would be useful to highlight the button without killing the color.
Site = www.nelsonatnite.com
Hi Nelson,.
Yes, you can STROKE around the button of the active state. You must select the button, then go to the States, click on 'Active' and add STROKE.
Kind regards
Aish
-
DVP-SR500H LINES HORIZONTAL AFTER A BUTTON ON A DRIVE DVD + NO REMOTE CONTROL
DVP-SR500H HAS HORIZONTAL LINES AFTER PRESSING A BUTTON ON A DVD WITHOUT REMOTE
Yes its connected properly, no it not there no distance. I use a universal. I screwed up trying hard reset it and pressed a button do not know what is not its impasse in this way. I managed to reset it on the dvd player still nothing same grey screen flashing
I finally understood what it was the settings .i managed to see through the black and white screen flashing flashing and get the HDMI settings and clicked on something and I'm back to normal yay
-
ADF Faces 11, add where clause to the detail view in the master/detail relationship
Hello
I have two display objects only read connected by a link in a relationship master detail.
They are displayed in a treetable in the form.
I have a method on the java object impl view master class, I use to add custom where claused based on entries different user and then run the query.
Works well, master and detail is interview properly.
But I also want to further filter the detail view (view from destination in the display link). However, as soon as I add whereclause in the detail view against the master
relationship of detail seems to have disappeared and are no detail record. I also tried to add a view criteria but with the same result.
Your comments will be appreciated.
ADF FACES 11g release 1.
JanYou can get the ViewLinkAccessor, then the ViewObject and try to apply the ViewCriteria, followed by executeQuery... what you are already doing.
Better to paste your code here... -
Confused about "Roll up 50-100 lines of detailed data for a global line."
Hello
When I read the main practices of OBIEE.
He mentions that when we do aggregate, one of the guidelines is to roll up to 50-100 lines of detailed data a global line... What does that mean?
And also confused on the extension table, what is the purpose of the extension table? And how to do it?
Kind regards
Anne
Published by: anne on October 19, 2011 19:32Hi Anne,.
Table extensions:
Region_D is NOT an extension for District_D table, because the relationship between them is not one by one. A region can have many neighborhoods, she 1:Many link. A perfect example will be w_person_d and w_person_dx tables.w_person_d table will have a primary key with all the attributes of a person, while w_person_dx will have the same primary key has several other attributes of a person as an address line, zip etc. The number of records will be the same in the tables d and dx.
Aggregates:
Yes, it's a way to create tables of aggregation as explained here:
http://www.rittmanmead.com/2007/10/using-the-OBIEE-aggregate-persistence-Wizard/
Another way is to model the aggregation tables in the datawarehouse iteself as explained here:
http://www.rittmanmead.com/2006/11/aggregate-navigation-using-Oracle-BI-server/
Rgds,
DpKa -
Title of TextField to fill in the subject line of a submit button
I need for the textfield title to assign automatically in the subject line of the Send button
What is the code goes into sub =?
var overtime
void =
ebody var
Thank you
Its probably too easy to use a normal button with the following
var sSubject = CTitle.rawValue; var sBody =
; event.target.submitForm({ cURL: "mailto: [email protected];[email protected],[email protected];&subject=" + sSubject + "&body=" + sBody, bEmpty: true, cSubmitAs: "PDF", cCharset: "utf-8" }); use? for the first parameter and & for each subsequent in mailto
-
Master / detail: several lines in detail are selected default
Hello world
I use Jdev 12 c and facing a problem, in a scenario of master / detail, several lines are by default selected in the secondary table, I checked the line selection unique option in the configuration of the table. Please see the snapshot for clarity.
Help, please
Kind regards
Crusher
You normally see this problem when the vo or eo is not a primary key defined. Check that each OT and vo should have a defined primary key that is unique for the vo.
Timo
-
Form master / detail apex 5 tries to update the lines of details without apparent change
A form master / detail of Apex default 5.0 creates buttons back and forward on the main table. When you move between records, the detail region launches a message: update 0 row (s), 0 or the inserted rows.
Glance in occasional of the user, it will look like a mistake: I, what has changed and why it has not been saved?
If nothing has changed, why is a MRU statement update being generated?
How do I remove this behavior? Is this a bug?
You can see in https://apex.oracle.com/pls/apex/f?p=74308:LOGIN_DESKTOP:113903018138704:, the application of MasterDetail Claim_Charge. Credentials are of assistance/Viewer.
Thank you!
Hello
Create a new hidden element Px_RUN_MRU and the value of
Source used "Always replace the value that exists in the session state."
Source of Type ' static assignment (the value corresponds to the source attribute) ' and
Value of source or phrase "N".
Then create new PL/SQL process for tabular and use the code
if :Px_RUN_MRU = 'N' and :APEX$ROW_STATUS IN('C', 'U', 'D') then :Px_RUN_MRU := 'Y'; end if;
Make sure that this process is captured in the form of process MRU.
Then change tabular MRU to love affection
(:request like ('SAVE') or :request like 'GET_NEXT%' or :request like 'GET_PREV%') and :Px_RUN_MRU = 'Y'
Kind regards
Jari
-
I have a series of forms that I access from a master form via buttons
The question is that I want my master shape to stay alive when I open a form from the button operated at the time wherever the main form closes when the next form is called, how do I open the form called in a new window?
After you have created the link (go to a page view), you must change the link for the action and you will be able to choose how the document opens.
-
Insertion of several lines on an 'Add button '!
I have an application that lists the members of the family (type address book application).
form page that lists "family relationships".
(http://apex.oracle.com/pls/otn/f?p=55283:2)
Page 2/3 are master detail where detail reports are "relationships".
Page three, if I select 'Create' it takes me to the page of form
(http://apex.oracle.com/pls/otn/f?p=55283:4) where I can create a relationship and press 'create' and the new record is now visible on page 3.
What I'm trying to do, is create the reverse tie at the same time. For example.
If I say
record 1 is related to the card 2 'value 3 '.
I want to then at the same time, create a reverse record:
record 2 relates to the plug 1 "value 4.
After researching on the forum, I put my best efforts in the creation of a button on the page 4 process, called 'New' (thanks to Andy for the idea!) and a page runs when this button is selected.
There is a PK for the table in question, which uses a sequence. I am just learning SQL AND APEX, so I may be completely missed the boat... or this error on my instance I also on a closed network.
(Unfortunately, my local firewall is not me to post my SQL to allow the)
Here's my process page that fails:
-Take the values among the three elements of page to create the first line:
--
INSERT INTO FAMILY_ASSOC
(FAMILY_ASSOC_ID, FAMILY_ID_1, FAMILY_ASSOC, FAMILY_ID_2) VALUES)
FAMILY_ASSOC_SEQ.nextval,
P4_FAMILY_ID_1,
P4_FAMILY_ASSOC,
P4_FAMILY_ID_2)
--
-Now to reverse the ID_1 and ID_2 to create the reverse record
-For example if the line above is 'X' is the child of 'Y '.
-Need to create the folder parent of 'X' 'y '.
--
UNION)
FAMILY_ASSOC_SEQ.nextval,
P4_FAMILY_ID_1,
DECODE (P4_FAMILY_ASSOC,
'1', '1',
'2', '2',
'3', '4',
'4', '3',
'5', '5',
"6", "6",
'7', '8',
'8', '7',
'9', '10',
'10', '9'),
P4_FAMILY_ID_2)
I have included reports on page 4 to show what the table looks like:
A report shows all the associations for the individual and replace the values with the search values.
The next report is exactly the same, but without the search for data.
The latest report is the same, but it shows the reverse relationship for the same person.
Appreciate any ideas!Devil! And there was me trying to keep things simple :D
So reports display data until it is written in the real files, you must have an intermediate table or, at least, to store values in the page in session BEFORE the execution of the process of the insert. To do this, you need a process in two steps - one to create temporary data or store the values, and the second actually write the records. The SQL statements that underlie the reports can easily be updated to refer to the staging table or the session values. Of course, you must create at least one additional button on the page - create/store data temporarily - this would be conditional - and the existing button should also be conditional, so that only one of the two buttons is displayed at all times.
Andy
-
Manually insert a fixed set of detail records in the master record is created
Hello
I have a requirement for the creation of several detail records manually when a new Master Record is created. I'll use information from a few fields of primary record that is created when you create the detail records. To do this, I put the INSERT statements in 'before Insert trigger"in the main Table (to insert records from the secondary table) . The problem arises when the trigger is trying to insert the record in the secondary table because of the Foreign Key constraint on detail record. Since the master record is yet to be established, it will not INSERT on detail table and raises foreign key constraint violation.
One way to overcome this is by simply creating the master record. And in the master report, providing a button (link column) and execution of a PL/SQL procedure that creates the detail of records.
I just wanted to know is there a way to do this when creating main drive itself?
Here's what I defined under master table before creating the trigger-
CREATE OR REPLACE TRIGGER bi_master_table BEFORE INSERT OR UPDATE ON "MASTER_TABLE" FOR EACH ROW DECLARE v_master_pk_column NUMBER; BEGIN IF INSERTING THEN v_master_pk_column := master_pk_column_seq.NEXTVAL; :NEW.master_pk_column := v_master_pk_column; INSERT INTO detail_table(detail_fk_column,account_code,credit) VALUES (v_master_pk_column,:NEW.dealer_account_code,:NEW.invoice_value); END IF; END;
Note: Detail table key primary value automatically filled using his own trigger and sequence.
Thank you and best regards,
-Anand
Hi Anand,
before the trigger for insertion to complete the primary key of the main table.
CREATE OR REPLACE TRIGGER bi_master_table before insert on MASTER_TABLE for each row begin SELECT master_pk_column_seq.NEXTVAL INTO :NEW.master_pk_column FROM DUAL; end; /
Trigger after Insert to insert the record in the detail table,
similar to this
CREATE OR REPLACE TRIGGER "DETAIL_TABLE_INSERT" AFTER INSERT ON MASTER_TABLE FOR EACH ROW BEGIN INSERT INTO detail_table(detail_fk_column,account_code,credit) VALUES (:NEW.master_pk_column,:NEW.dealer_account_code,:NEW.invoice_value); END; /
or you can implement the same writing Pl/Sql procedures without using triggers.
Check this Doc contains example with or without the help of relaxation: https://markhoxey.wordpress.com/2013/08/20/returning-into/
Hope this helps you,
Kind regards
Jitendra
-
Since the update to version 15.009.20071 and today 15.009.20077, I have no control of the drawing of the tools - lines always 'Reds' and the 'fill' is always transparent.
Before the update I could choose the line and color for filling tool tools right-clicking and selecting a range of.
Is this a problem of user (me) or has been removed from this capacity?
Your help is appreciated, as I frequently use these functions.
Hi Thomas,
If you use the comment line and you want to change the color or other settings then first draw a line, select and right click it and select Properties.
Please share more details on the other tool you want to know.
Thank you
Abhishek
-
Grouping of lines from common lines in detail header
Hello
I have two tables TAB_MST and TAB_DTL with the information as below:
{code}
CREATE TABLE TAB_MST
(
NUMBER OF MSTCOL
)
/ALTER TABLE TAB_MST ADD CONSTRAINT TAB_MST_PK PRIMARY KEY (MSTCOL)
/INSERT INTO TAB_MST (MSTCOL) VALUES (1);
INSERT INTO TAB_MST (MSTCOL) VALUES (2);
INSERT INTO TAB_MST (MSTCOL) VALUES (3);
INSERT INTO TAB_MST (MSTCOL) VALUES (4);CREATE TABLE TAB_DTL
(
NUMBER OF MSTCOL
NUMBER OF DTLCOL
)
/ALTER TABLE TAB_DTL ADD CONSTRAINT TAB_DTL_PK PRIMARY KEY (MSTCOL, DTLCOL)
/INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES (1, 1);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES (1, 2);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES (1, 3);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES (1, 4);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES (1, 5);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES (2, 4);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES (2, 7);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES (2, 8);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES (2, 9);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES (3, 8);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES (3, 9);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES (3, 10);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES (3, 11);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES (4, 12);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES (4, 13);
INSERT INTO TAB_DTL (MSTCOL, DTLCOL) VALUES (4, 14);COMMIT;
{code}
I want to group the rows in the Master table (TAB_MST) to different groups based on the data in the secondary table (TAB_DTL) with output like below
MSTCOL GROUPID
1 1
2 1
3 1
4 2Rule for grouping are as follows:
(1) if there is a common value of DTLCOL for two different values of MSTCOL, then two MSTCOL values should be grouped under the same group, for example for the above case of sample
DTLCOL (value = 4) is common for MSTCOL = 1 and MSTCOL = 2, so MSTCOL 1 and MSTCOL 2 belong to the same group (GROUPID = 1).
DTLCOL (value = 8, 9) is common for MSTCOL = 2, MSTCOL = 3, so 3 MSTCOL must belong to the same group as MSTCOL 2 (GROUPID = 1)
There is no common value of DTLCOL for MSTCOL = 4, so it is in a separate group.Here is the PL/SQL block to highlight this grouping behavior. Two temporary tables are created to achieve this:
{code}
CREATE TABLE TAB_MST_GROUP
(
NUMBER OF MSTCOL
GROUPID NUMBER
)
/CREATE TABLE TAB_TMP_GROUP
(
GROUPID NUMBER
)
/
DECLARE
CURSOR c1
IS
SELECT * FROM tab_mst;prevmstcol NUMBER;
prevgroupid NUMBER: = 1;
vtmpgroupid NUMBER;
BEGIN
DELETE tab_mst_group;FOR r1 IN c1
LOOP
IF prevmstcol IS NULL
THEN
INSERT INTO tab_mst_group
VALUES (r1.mstcol, prevgroupid);prevmstcol: = r1.mstcol;
ON THE OTHER
INSERT INTO tab_tmp_group
SEPARATE SELECT GroupID
OF tab_mst_group a, tab_dtl b, tab_dtl c
WHERE a.mstcol = b.mstcol
AND c.dtlcol = b.dtlcol
AND c.mstcol = r1.mstcol;IF SQL % ROWCOUNT = 0
THEN
prevgroupid: = prevgroupid + 1;INSERT INTO tab_mst_group
VALUES (r1.mstcol, prevgroupid);
ON THE OTHER
SELECT MIN (groupid) IN the vtmpgroupid OF tab_tmp_group;UPDATE tab_mst_group
SET groupid = vtmpgroupid
WHERE groupid IN (SELECT tab_tmp_group FROM groupid);INSERT INTO tab_mst_group
VALUES (r1.mstcol, vtmpgroupid);SELECT MAX (groupid) IN tab_mst_group prevgroupid;
DELETE tab_tmp_group;
END IF;
END IF;
END LOOP;
END;{code}
Question:a. can achieve us in SQL instead of PL/SQL?
b. fresh general reading of TAB_DTL grows exponentially if the number of cases in TAB_MST develops. How can we reduce the number of TAB_DTL reading as the real lines of TAB_DTL is very high.
Thank you
sukhijankHi, Sukhijank,
Thanks for the additional information. Has not only learned these details since posting your first message, did you? If you post information like that in your first post, and then people can use it to give you a better response to the first answer.
The idea I had for a recursive solution of WITH clause will not work after all.
I think that the best solution will be in PL/SQL, using a table like tab_mst_group that you posted, but with an extra column:
CREATE TABLE TAB_MST_GROUP ( mstcol NUMBER PRIMARY KEY, groupid NUMBER, levelnum NUMBER ); CREATE INDEX tab_mst_group_groupid_levelnum ON tab_mst_group (levelnum, groupid);
If llevelnum = 0, which means that the allocation of groupid is not certain; If levelnum > 0, then groupid is correct.
Here is a procedure you can use to fill in the table:
CREATE OR REPLACE PROCEDURE tab_mst_group_populate AS new_groupid tab_mst_group.groupid%TYPE := 0; new_levelnum tab_mst_group.levelnum%TYPE; num_added PLS_INTEGER; truncate_stmt VARCHAR2 (50) := 'TRUNCATE TABLE tab_mst_group'; BEGIN -- ***** Remove old entries from the table ***** -- dbms_output.put_line (truncate_stmt || ' = truncate_stmt in tab_mst_group_populate'); -- Debugging EXECUTE IMMEDIATE truncate_stmt; -- ***** Populate table with all mstcols, and 1-member groups ***** INSERT INTO tab_mst_group (mstcol, groupid, levelnum) SELECT m.mstcol , m.mstcol AS groupid , MIN ( CASE WHEN o.mstcol IS NULL THEN 1 ELSE 0 END ) AS lvlnum FROM tab_mst m LEFT JOIN tab_dtl d ON d.mstcol = m.mstcol LEFT JOIN tab_dtl o ON o.dtlcol = d.dtlcol AND o.mstcol != d.mstcol GROUP BY m.mstcol; -- ***** Get groupid for lowest mstcol that still needs one ***** WHILE new_groupid IS NOT NULL LOOP SELECT MIN (groupid) INTO new_groupid FROM tab_mst_group WHERE levelnum = 0; IF new_groupid IS NOT NULL THEN -- *** Confirm groupid for this one mstcol *** UPDATE tab_mst_group SET levelnum = 1 WHERE levelnum = 0 AND groupid = new_groupid; new_levelnum := 2; num_added := 1; -- *** Add neighboring mstcols to this group *** WHILE num_added > 0 LOOP UPDATE tab_mst_group SET groupid = new_groupid , levelnum = new_levelnum WHERE levelnum = 0 AND groupid IN ( SELECT d2.mstcol FROM tab_mst_group g1 JOIN tab_dtl d1 ON d1.mstcol = g1.mstcol JOIN tab_dtl d2 ON d2.dtlcol = d1.dtlcol AND d2.mstcol != d1.mstcol JOIN tab_mst_group g2 ON g2.mstcol = d2.mstcol WHERE g1.levelnum = new_levelnum - 1 AND g1.groupid = new_groupid AND g2.levelnum = 0 ); num_added := SQL%ROWCOUNT; dbms_output.put_line (num_added || ' = num_added'); new_levelnum := new_levelnum + 1; END LOOP; END IF; END LOOP; END tab_mst_group_populate; / SHOW ERRORS
The basic strategy is that we start assuming that each mstcol will have its own groupid. The CASE expression in the INSERT statement sets levelnum = 1 for the mstcols that do not exist in the tab_dtl table, or are not related to other mstcols in tab_dtl. The loop after that looks like for tab_mst_group lines are always 0, which means that the grpupid must still be confirmed or changed. He begins by finding the lowest mstcol which still has levelnum = 0 and makes a new group. The inner loop looking for related mstcols and the brand as being in the same group.
You could combine tab_mst and tab_mst_group; I see no need to have a separate table (but maybe do you). If combine you them, then you would not truncate the table in the procedure.
-
When I hover over or click a button in the toolbar it is messed up. Blocks, or more like pixels, appear on the buttons. They are white and they move. Few black lines appear too around the buttons. I tried to uninstall and re - download Firefox, a complete reset, etc. Nothing has worked so far. To see the pictures of the problem to use this URL (it will take you to Imgur): http://imgur.com/a/LXHQg
Hi, try updating your graphic driver - this should be the correct link for your system: http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y & DwnldID = 22375
-
can someone tell me why I can't update to El Capitan 10.11.2?
When I try to update "updates available have changed" guest shows up.i click "Show details" prompt to complete the update and when I do that, it just goes back to doing nothing, so I can never get past this point. can someone help me with this, please?
Thank you very much.
In some cases, this error message is caused by a problem in the network. Restart your router as your device at wide band, if they are separated. If there is no change, see below.
This procedure will remove some temporary and cache files. The files are generated automatically and do not contain any of your data. Sometimes they can become corrupted and cause problems like yours.
Please, back up all data and read this message before doing anything.
Triple-click anywhere in the line below on this page to select this option:
/var/folders/zz/zyxvpxvq6csfxvn_n00000s0000068
Right-click or Ctrl-click on the highlighted line and select
Services ▹ reveal in Finder (or just to reveal)
the contextual menu.* file should open with a selected subfolder. The subfolder has a long name beginning with "zyx" and ending with "68". Place this subfolder in the trash. Do not move other subfolders with similar names. You may be prompted for administrator login password. Restart the computer and empty the trash.
* If you do not see the item context menu copy the selected text in the Clipboard by pressing Control-C key combination. In the Finder, select
Go ▹ go to the folder...
from the menu bar and paste it into the box that opens by pressing command + V. You won't see what you pasted a newline being included. Press return.
Maybe you are looking for
-
I think that the battery run down more quickly after update to IOS 10. I have a new iPad 9.7 Pro and disappointed because of this problem and the heating of the devic.
-
New Satellite Pro U400-12y is very slow
Just bought Satellite Pro U400-12y with Vista Business pre-installed (1 GB preinstalled memory).However, the startup is very slow and actually the computer seems to work in a time warp. Any ideas? Is there a fundamental problem?
-
Remove the error of an instrument
I'm a vi uses to communicate with an oscilloscope Tek TDP by GPIB. The vi that I use, that come with the driver for the scope, read the pulse and waveform period. The problem is that I call the VI looped several times until you get the wave shape I w
-
try to download Netcleanup software__
My netframe will not download netframe security. I tried to download the Netcleanup software, but reached on an error the download is http:/blogs.msdw.com/astebner/attachment/8904493.ashx is that correct?
-
Title: Cannot get an Internet connection! Connection Wi - Fi comes with a warning that 'the settings saved on this computer for the network do not match the requirements of the network"what should I do to get a connection?