Help with cascading pop-up list on slot form of table
I'm new to APEX (on APEX 5.0) Please bear with me! Let's say I have a tabular form with 4 columns (A, B, C, D)
Here's the logic:
1 column A is just a static list of 2 values.
2 column B is determined by what you choose in column a.
3. column C is determined by what you choose in column A and column B
4 D column is determined by what you choose in column A and column C
I need a list of popup cascading for columns B, C and D but since its under table, with several lines it is difficult. I followed this link:
Jari APEX blog: 'cascading' list Article on slot form table
I was able to get the above to work in my application to meet business #2 logic, but I can't figure out how to make it work for the logic #3 and #4 because there are several critical values. Is there an easier way to do this? Can someone help me understand what the javascript code does in the link above?
More precisely:
(function ($) {;})
/ * Cascading pop-up list * /.
$.fn.htmldbCascadePopup = function (parent, tempItem, options) {}
options = $.extend({)
loadingTxt: 'Loading... '. »,
loadingCss: {'width': '80px","float": 'left'}
(}, options);
return this.each (function (i) {}
var $self = $(this);
$anchor = $self.next ("a").
$parent = $(parent) .eq (i).
popupFn = new Function ($anchor.attr("href").substr (11));
$parent.change (function () {$self.val("").effect("highlight",{},2000) .focus () ;});})
{$anchor.click (function (e)}
e.preventDefault ();
var parentVal = $parent.val ();
if(!parentVal) {parentVal =' ";};}
Apex. Server.Process ("DUMMY", {}
p_arg_names: tempItem,
p_arg_values: parentVal
},{
data type: "text",
beforeSend: function() {}
$self
. Hide()
.after ($("< div/>", {"html":options.loadingTxt,"la classe css":options.loadingCss",": "ui-saisie semi-automatique-chargement"})
. Width ($self.outerWidth ())
. Height ($self.outerHeight ())
);
},
complete: function() {}
popupFn();
$self
. Show()
. Next ("div. UI-AutoComplete-Loading")
. Remove();
}
});
});
});
};
(}) (apex.jQuery);
I have a Monday deadline for this so my time is up. Here's what I did to help someone, even if it has a very quick and dirty solution.
After the example of Jari blog work, I learned the following: Popup LOVs have a display value and a return value. They correspond each to their own field in tabular form. For example, the display for my column 'B' column is f10 and the back column is (hidden) f09. Column C depends on A and b. So, I did the return value of B for the concatenation of A & B. Then I pass that value into a variable of the APEX with Jari javascript and try the parse to the LOV for column C.
It gives me values in the table that I don't really want. If column A is supposed to be "12345" and column B is supposed to be "XXXXX", then the value in column B is "12345". XXXXX. " So I'll make a post process clean.
All this could be increased if I know enough javascript to add multiple parameters to the code of Jari.
Tags: Database
Similar Questions
-
I get an error indicating cc cookies dir: cannot do file / cookies: permission denied (error 13) when I tried to download the installer of creative cloud on my Mac. Can anyone help with similar pop-up window? I try to get a trial version of CS5.
You don't need to involve creative cloud to install try the trial version of CS5...
You can download the demo version of the software through the page linked below and then use your current serial number to activate it.
Don't forget to follow the steps described in the Note: very important Instructions in the section on the pages of this site download and have cookies turned on in your browser, otherwise the download will not work correctly.
CS5: http://prodesigntools.com/all-adobe-cs5-direct-download-links.html
-
Hello
I have a problem with the plugin save before exit that I downloaded from Skillbuilders. As I use Oracle APEX version 4.0.2 and Oracle 10 g r2 database; so I downloaded one that says "Save before release (version 3.0.1 for APEX 4.0)" skillbuilders and follow-up of their documentation to import the plugin and use it.
My problem is that even if I do not make any changes to data in the form and go to another tab. the alert message always appears, and by the way, I have an element of list manager on my form and it gets highlighted. So, even if I make the changes or do not change; still, the alert message is displayed and highlights the element of list manager. I think maybe the problem is to have a crèche in the form list item. I have reproduced the same problem in my personal workspace. Here are the details.
http://Apex.Oracle.com/pls/Apex/f?p=55129
Details of the workspace
Name of the workspace: raghu_workspace
username: orton607
password: orton123
App # 55129
Page: 2 - has the element of list manager.
Page 3 - works fine without the element of list manager
Please help with possible suggestions.
Thank you
Orton
Orton,
I have connected to the workspace you and added a replacement JS file that corrects this error.
If please, give it a whirl and let me know if you find other problems with it.
It is to the 3.0.2 version of the plugin and I do not know if this even fix will work for your local Apex version earlier.
When you are ready to go to the APEX 4.0.2 Please contact me directly for assistance. In the meantime, I'll work on the creation of a patch for this kind of new downloads of the plugin will contain this change.
Greg
-
Help with lab "display a list of complex cases.
I'm trying my first project BB and I have problems with the sample 'to view a list of complex cases'.
I'm passing 2 fields, 1 image and 1 labelfield, to the Manager without problem. I resized the line to the right size, although I'm probably not doing things. The first element of the list is not properly sized. I can't understand why each item after the first is the right size.
I need to be able to vertically Center the image and the labelfield within the line. I'm unable to know where and how to proceed.
I also need to be able to add a click event to the line to perform an action.
I also had problems, change the color of the text when the.
Any help would be greatly appreciated.
Thank you!
OK, you can ignore my previous comments. What you have here is even more complex than I thought.
I usually warn against this method of creating a line of the list. It works, but it's a nightmare. You using the functions of layout of BB available space than a ListField has a line, then paint directly on this line, fields that you use for page layout, the line are not really fields at all, they are just devices to help line available.
The only time wherever I have even made it for real, was when I went to the layout as a text field and I really could not be bothered to return line myself.
For your first assignment of BB you ripped a complex.
Unfortunately, what you have given us here is the treatment that layouts and paints each line, which, according to me, I really need are the fields that you add to the line. In fact, I suggest that you must send me the whole project, because it will be too big for a post on the forum and the answer type. You want PM me?
-
help with this pop up! Adobe Application Manager
I own a creative suite design standard 6 for the last 3 years. It works beautifully and I am a photographer. Today, for some reason, I get the pop-up when I try to open my Photoshop. The pop up according to download a new application manager. I tried everything to open the application. Impossible! It works not there 2 days I post-processing of the images.
Went to the site and don't know what I'm supposed to do. Very frustrated because I miss a deadline for the competition. I talked to someone, but refuse to help me because I'm not on the basis of a phone call. He spent three minutes to tell me that he cannot answer my question. I have to go on the Chat!
Either way, I tried in June to get the CC of Photoshop with Lightroom. For some reason, I had a corrupt and my Mac was going biserk. I cancel the whole and clean each link attached to it!
Thanks I hope someone can tell me what to do
I read the info and there is nothing significant to what is my problem. I have no CC on my mac and I won't! I just want to be able to use the Creative suite as before CS6. The pop-up gel the photoshop application as soon as I open it. Please just answer my question; This pop up to tell me to go to the application manager
Message:
Adobe Application Manager, needed to verify your license is missing or damaged.
Please download a new copy of Adobe Application Manager of http / / www.adobe.com/go/applicationmanager
If I click ok. Stop Photoshop trying to open!
I own and pay for the CS6, I should be able to use it! I don't want the CC and I'm not the only photographer who do not.
What should I do to get rid of this pop up! I need to work!
-
Help with my drop-down list in the fluid grid view
I built the site of "fluid" and that's great, up and running and I am delighted! A big thank you to the DW forum. URL is: tyndall.net.au
Now, I want to add a drop-down in the three 3 sizes: mobile, Tablet and desktop. And I want it to develop the ' Services ' section. On the 'Services' page there are links to 21 different types of services.
It is these types of different services, have to be displayed in the drop-down list button.
Objective: in hover mode, the fall down to look identical to the head key, centered with a complete history! To inherit.
You can see on the screenshots:
In Mobile, there is a complete history, but it is not centered and not the same size
Tablet & Desktop - background not complete, not centered, not the same size
I can't find a tutorial on this issue. Tutorial of Daniel Walter - Scott in BYOL helped a long way, thanks mate.
Can someone help me with this problem?
Concerning
Jonathan
Byron Bay, Australia
__________________________________________________________________
Reach:
Here is the HTML code for the nav div:
< nav id = 'mainNav' class = "fluid" > < ul id = "menuSystem" class = "fluid fluidList" > "" ""
< li = class "menuItem fluid zeroMargin_tablet zeroMargin_desktop" > < a href = "/ index.html" > home < /a > < /li >
"< class li ="fluid menuItem"> < a href="/About/about.html "> on < /a > < /li >
"< class li ="fluid menuItem"> < a href="/Services/services.html "> Services < /a >
< ul >
< class li = "fluid menuItem" > < a href="/Services/otherpage.html" > Immigration < /a > < /li > ".
< class li = "fluid menuItem" > < a href="/Services/otherpage2.html" > Banking < /a > < /li > ".
< class li = "fluid menuItem" > < a href="/Services/otherpage3.html" > bankruptcy < /a > < /li > ".
< /ul >
< /li >
< class li = "fluid menuItem" > < a href="/Articles/publication.html" > items < /a > < /li > ".
< class li = "fluid menuItem" > < a href="/Migrate/migrate.html" > migrate < /a > < /li > ".
"< class li ="fluid menuItem"> < a href="/Journal/journal.html "> Blog < /a > < /li >
< class li = "fluid menuItem" > < a href="/Contact/contact.html" > Contact < /a > < /li > < /ul > < / nav >.
< / header >
Here are all the css in style.css code:
@charset "utf-8";
/ * Simple fluids
Note: Fluid requires that you remove the attributes height and width of the media of the HTML
http://www.alistapart.com/articles/fluid-images/
*/
IMG, object, embed, {video
Max-width: 100%;
}/ * IE 6 doesn't support max-width so 100% width by default * /.
. IE6 img {}
Width: 100%;
}/*
Properties Grid Dreamweaver fluid
----------------------------------
DW-num-CLO-mobile: 4;
DW-num-CLO-Tablet: 7;
DW-num-OCOL-Office: 14;
DW-gutter-percentage: 25;
Inspiration of "Responsive Web Design" by Ethan Marcotte
http://www.alistapart.com/articles/responsive-web-design
Golden by Joni Korpi grid system and
http://goldengridsystem.com/
*/{.fluid}
Clear: both;
left margin: 0;
Width: 100%;
float: left;
display: block;
}{.fluidList}
list-style: none;
list-style-image: none;
margin: 0;
padding: 0;
}/ * Mobile layout: 480px and below. */
{.gridContainer}
left margin: auto;
margin-right: auto;
Width: 86,45%;
padding-left: 2,275%;
padding-right: 2,275%;
Clear: none;
float: none;
font size: small;
}
#top {}
}
#top img {}
left margin: auto;
margin-right: auto;
display: block;
}
{#mainNav}
}
{#menuSystem}
list-style-type: none;
}
.menuItem {}
top of the margin: 2px;
margin-bottom: 2px;
padding-top: 1px;
padding-bottom: 1pk;
text-align: center;
color: #FFFFFF;
background-color: #051383;
border-radius: 5px;
Width: 100%;
left margin: 0;
Clear: both;
}
{.photois}
}
body p {}
do-family: Arial;
}
{.jonofigcaption}
make-style: italic;
Police-family: Garamond;
font size: small;
text-align: left;
}
body figcaption p {}
}
{motto}
Police-family: Garamond;
font size: large;
make-style: italic;
text-align: left;
}
.Text1 {}
}
. Header {}
do-family: Tahoma;
font-size: medium;
}
{.jonotext}
do-family: Arial;
text-align: justify;
}
.Text2 {}
do-family: Arial;
text-align: left;
}
{.footer1}
text-align: right;
do-family: Arial;
do-size: x-small;
}
{.footer2}
text-align: right;
Police-family: Garamond;
do-size: x-small;
}
{.footer3}
text-align: right;
do-family: Arial;
Police-weight: 900;
make-style: italic;
}
. gridContainer.clearfix. fluid.footer2 p img {}
}
{#jonominibutton}
left margin: 1px;
right margin: 1px;
padding-left: 1px;
padding-right: 1px;
}
#mainNav a {}
display: block;
text-decoration: none;
color: #FFFFFF;
}
#mainNav a: hover, #mainNav a: active, #mainNav one: {emphasis
background-color: #A3C3FF;
text-decoration: none;
color: #051383;
}. gridContainer.clearfix #top img {}
padding-bottom: 5px;
padding-top: 5px;
}
UL {}
list-style-type: none;
}
{body
}
a: link {}}
{.footer4}
do-family: Arial;
font size: small;}
. gridContainer.clearfix. fluid.footer2 p an img {}
}
{.officearea}
}
.officearea img {}
vertical-align: bottom;
}
{.jonofooter4}
do-family: Arial;
do-size: x-small;
text-align: left;
}
.jonothumb img {}
vertical-align: baseline;
}
{.footer7}
do-family: Arial;
Police-weight: 900;
make-style: italic;
font size: small;
}
{.zeroMargin_mobile}
left margin: 0;
}
{.hide_mobile}
display: none;
}
#mainNav ul ul {}
display: none;
position: absolute;
}
#mainNav li: hover ul > ul {}
display: block;
}
#mainNav ul ul li {}
float: none;
text-align: center;
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
background-position: center
%;
}#mainNav a: hover, a: active {}
}/ * Tablet Layout: 481px to 768px. Inherits the styles of: Mobile layout. */
@media only screen and (min-width: 481px) {}
{.gridContainer}
Width: 90.3428%;
padding-left: 1.3285;
padding-right: 1.3285;
Clear: none;
float: none;
left margin: auto;
}
#top {}
}
{#mainNav}
}
{#menuSystem}
}
.menuItem {}
Width: 11.7647%;
Clear: none;
margin left: 2.9411%;
}
{.photois}
}
.Text1 {}
}
.Text2 {}
}
{.footer1}
}
{.footer2}
}
{.footer3}
}
{.footer4}
}
{.officearea}
}
{.footer7}
}
{.hide_tablet}
display: none;
}
{.zeroMargin_tablet}
left margin: 0;
}
}/ * Office Layout: 769px to a maximum of 1232px. Inherits the styles of: Mobile and tablet. */
@media only screen and (min-width: 769px) {}
{.gridContainer}
Width: 88.7142%;
Max-width: 1232px;
padding-left: 0,6428%;
padding-right: 0,6428%;
margin: auto;
Clear: none;
float: none;
left margin: auto;
}
#top {}
}
{#mainNav}
}
{#menuSystem}
}
.menuItem {}
Width: 13.0434%;
Clear: none;
margin left: 1.4492%;
}
{.photois}
}
.Text1 {}
}
.Text2 {}
text-align: left;
}
{.footer1}
}
{.footer2}
}
{.footer3}
}
{.footer4}
}
{.officearea}
}
{.jonoboldarial}
Police-weight: 900;
do-family: Arial;
make-style: italic;
}
{.footer7}
}
{.zeroMargin_desktop}
left margin: 0;
}
{.hide_desktop}
display: none;
}}
It's these types of different services, I should show up in the drop-down buttons. >
Drop-down lists that appear to move the mouse do not work on touchscreens because they do not have a mouse. The current trend is to keep the navigation simple & simplified. 21 links dropdown under Services is going to be too expensive for mobile users. Just keep the simple navigation with a link to the Services page you did and your users will have fewer problems with your site.
Either way, justified text links seem strange. See screenshot. You can see that.
Finally and most importantly, provide enough space between links to help mobile users. Android recommended that links be 10mm high providing for easier faucet finger gestures. When the links are stacked too close together, which makes it very difficult selecting the link desired without the aid of a stylus.
Nancy O.
-
need help with change in spark list itemRenderer
Hey guys... so I have a spark list, where I've made available to tileLayout and I use the converter component to display an image and two buttons in each tile... what im trying to do is when you hover over each tile I want buttons fade in and out... and by default... I need to no visible buttons...
I had pimples fade in and out when you hover over the point... but the problem is that I have when I initialize the application buttons are all visible... If there is no sence...
any help is greatly appretiated!
Here is the code I have... can you tell me what changes I need to make...
<s:List id="searchResultImages" borderVisible="false" dataProvider="{searchImages}" width="100%" height="100%"> <s:layout> <s:TileLayout requestedColumnCount="6" horizontalGap="30" columnWidth="100" rowHeight="85" /> </s:layout> <s:itemRenderer> <fx:Component> <s:ItemRenderer> <s:states> <s:State name="hovered" /> <s:State name="normal" /> </s:states> <s:transitions> <s:Transition fromState="normal" toState="hovered"> <s:Fade id="hoveredFade" targets="{[delBtn, editBtn]}" alphaFrom="0.0" alphaTo="1.0" duration="1000" /> </s:Transition> <s:Transition fromState="hovered" toState="normal"> <s:Fade id="normalFade" targets="{[delBtn, editBtn]}" alphaFrom="1.0" alphaTo="0.0" duration="1000" /> </s:Transition> </s:transitions> <s:VGroup> <mx:Image source="{data.fileLoc}" width="100" height="50" useHandCursor="true" buttonMode="true" verticalCenter="0" /> <s:HGroup> <mx:LinkButton id="delBtn" label="DEL" skin="{null}" color="#0184C7" rollOverColor="#333333" useHandCursor="true" buttonMode="true" /> <mx:LinkButton id="editBtn" label="EDIT" skin="{null}" color="#0184C7" rollOverColor="#333333" useHandCursor="true" buttonMode="true" /> </s:HGroup> </s:VGroup> </s:ItemRenderer> </fx:Component> </s:itemRenderer> </s:List>
Hello
With a lot of intelligence are already integrated into state transitions, when for example the transition fading knows when to fade in or fade out, get your components placed in the States you want is all that is necessary.
This is a simple example, but as you can see there is almost no code involved...
http://gumbo.flashhub.NET/Cyber/ source included
David.
-
Help with the drop-down list boxes
Hello. I am working on a form that contains three drop-down lists that have different names. All three have the same point selections, but I want that each of the three to automatically fill in its respective field (it is essentially a price sheet where up to three elements may be selected and you'd see every price indicated in front of it). I got concerning depression the 1st drop to fill its field using the script "setvalues.
However, when I try to create the following scripts for two other menus, it seems that I finally, create all three drop-down lists that all fill in the very field that corresponds with the latest script, that I added, instead of the respective field. To clarify, after 1 was created, it works normally. When I create a second script for the 2nd menu drop-down & price field, both drop-down lists only affect the 2nd price field.
I assured the fields have different names, and these names are specified in each script. I do not understand why acrobat would allow, when the script specifies the field that I entered. It is essentially in a field that isn't in the script. Of course, I am a novice, so any idea how works this process is very appreciated!
Thanks for your reply, George! I really love it! What I was doing wrong placed the code in the javascript Document, so it was essentially apply the script all dropdowns. What I did instead was delete and go in each drop-down list individual and added the script as the custom format script. Just in case someone else did the same thing, here's the script that I use [details omitted to save space...]
Put all vorkriegsbevölkerung data in a single data structure
var LaborCode = {SelectCode: {cost: ' '},}
XYZ {cost: "123.45"},
};
function SetFieldValues (cLaborCode)
{
this.getField("LaborPrice").value = LaborCode [cLaborCode] .cost
}
Thank you!!
-
Help with Hidden Drop Down lists in the subforms RBList
I've created a form that contains 3 remote option button lists, each with hidden subforms that are unique in each button.
Two of my RBLists and subforms work perfectly, showing the hidden options drop down and other fields as they should when a button is selected.
However, RBList3 has the lists dropdown as user input fields only. Each subform hidden in RBList3 contains a menu drop down and a text box for instructions.
I used the same javascript to hide/show the hidden fields when buttons are selected. All the settings seem to be upward. Here is a sample of my code:
If (RBList3.F.rawValue! = 2)
{
This.Presence = 'hidden ';
newsubform. Presence = "hidden";
}another if (RBList3.F.rawValue == 2)
{
This.Presence = "visible";
newsubform. Presence = "hidden";
}Does anyone have suggestions for how make my Drop-Down lists in RBList3 show that lists functional Drop?
I have attached the reference form.
Code not woirk for E, F and G. I check if the user selects G if they do not, then they must chose one of two other options (which means that the rest of the logic is executed). If I understand the question is in the initial state of the EdgeDropDown2 objects.
PanzDrawTxt, and
EdgePanelChkBxTxt. If you set the initial value of invisible presence, then you will not need to change any code. You must do this for each object individually. Click on one of the objects and on the object palette click the tab field near the bottom of this tab is a drop-down list to set the initial value of presence. Set it to the invisible. Repeat for the other two objects.
Paul
-
help with the pop-up skillbuilder
All,
IAM trying to create a ToolTip on the close icon (X) page popup so whenever you move the mouse over or hover over the icon it gives the ToolTip like you (click the close, etc.).
I tried
something like this, but it has not selected
.....
$(document) .ready (function)
{
$("div#cboxClose").hover (function () {also .mouseover (...
$(this) .attr ("title", "This is the hover-over text");
});
});
.....
any help is appreciated... cordially
Thanks to the power of jquery.
-
Help with a script to search for text in a table cell and apply the cell style
Hello
I build the script which Jongware wrote in his post here http://indesignsecrets.com/tackling-tables-through-scripting.php - I am trying to create a variable in which I can add a number of different parts of the text, in this case it's different parts of the United Kingdom i.e. 'London', 'East', 'Scotland' etc. I just need the script to apply the cell Style - 'District Cell' - to any cell that contains text in the variable. Here's the script, if anyone can help I would be grateful.
function checkWhichTable() { // ensure the user made a selection if (app.selection.length != 1) return null; var currentTable = app.selection[0]; if (currentTable.hasOwnProperty("baseline")) { currentTable = app.selection[0].parent; } while (currentTable instanceof Cell || currentTable instanceof Row || currentTable instanceof Column) currentTable = currentTable.parent; if (!(currentTable instanceof Table)) { // No table selected return null; } return currentTable; } app.doScript(checkUserSelection, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "Process Table"); function checkUserSelection () { var a_table = checkWhichTable(); if (a_table == null) { if (confirm("No table selected. Do you want to process *all* tables?") == false) return; allTables = app.activeDocument.stories.everyItem().tables.everyItem().getElements(); for (aTable=0; aTable<allTables.length; aTable++) { processTable (allTables[aTable]); } } else { processTable (a_table); } } function processTable(table) { // do something here! //Find Text in Cell and apply Cell Style var textInCell=['London', 'Scotland', 'South West']; for (i=0; i<table.cells.length; i++) { if (table.cells[i].texts[0].contents==textInCell) table.cells[i].appliedCellStyle = "District Cell"; } }
Hello
Change this feature:
function processTable(table) { //Find Text (exactly as it is) in Cell and apply Cell Style var textInCell=['London', 'Scotland', 'South West'], mFound, cFound; app.findGrepPreferences = null; app.findGrepPreferences.findWhat = "^(" + cities.join("|") + ")$"; mFound = table.findGrep(); while( cFound = mFound.pop() ) cFound.parent.appliedCellStyle = "District Cell"; }
Jarek
-
Need help with SQL Query - change of name history of audit table.
I need your help to find the result in the following way...
Emp No New_name Old_Name ----------------------------------------------- 1 Name3 Name2 1 Name2 Name1
Thank you...create table emp(emp_id number(10), emp_name varchar(50), constraints emp_pk primary key(emp_id) ); create table emp_audit( audit_id number(10), emp_id number(10), emp_name varchar(50), audit_date date, constraints emp_audit_pk primary key (audit_id), constraints emp_audit_emp_fk foreign key(emp_id) references emp(emp_id)); insert into emp values(1,'Name3'); insert into EMP_AUDIT (audit_id, emp_id, emp_name, audit_date) values (1, 1, 'Name1', to_date('14-08-2011', 'dd-mm-yyyy')); insert into EMP_AUDIT (audit_id, emp_id, emp_name, audit_date) values (2, 1, 'Name2', to_date('15-08-2011', 'dd-mm-yyyy')); commit;
Dipabkar Bédard (DB) wrote:
We write is the query without using "partition by" in oracle...?
with t as ( select audit_id, emp_id, emp_name, row_number() over(order by audit_id) rn from emp_audit order by emp_id, audit_id ) select a.audit_id, a.emp_id, a.emp_name old_name, nvl(b.emp_name,(select c.emp_name from emp c where c.emp_id = a.emp_id)) new_name from t a left join t b on ( b.emp_id = a.emp_id and b.rn = a.rn + 1 ) / AUDIT_ID EMP_ID OLD_NAME NEW_NAME ---------- ---------- -------------------------------------------------- ------------ 1 1 Name1 Name2 2 1 Name2 Name3 SQL>
And without analytical functions:
with t1 as ( select audit_id, emp_id, emp_name from emp_audit order by emp_id, audit_id ), t2 as ( select audit_id, emp_id, emp_name, rownum rn from t1 ) select a.audit_id, a.emp_id, a.emp_name old_name, nvl(b.emp_name,(select c.emp_name from emp c where c.emp_id = a.emp_id)) new_name from t2 a left join t2 b on ( b.emp_id = a.emp_id and b.rn = a.rn + 1 ) / AUDIT_ID EMP_ID OLD_NAME NEW_NAME ---------- ---------- -------------------------------------------------- ---------- 1 1 Name1 Name2 2 1 Name2 Name3 SQL>
SY.
-
Need help with the code to add dates to form
Hello fans forum
I am new to make forms and understood how to auto add the date, but I need the shape to change the date for each copy made.
For example, is today 08/06/2012 if I print 10 copies of the form it will display 10 pages from 08/06/2012 to 17/06/2012. If the code exists for this I would be very gratefull to one who helps, I also wouldn't mind if this is not possible for manually inputing start / end dates.
Currently I have print 15-30 copies of the form and hand write each of the dates but I get just to busy to do it. Also I can't print one a day, it must be in batches.
Thanks in advance.
I think that you misunderstood my comment about the Console window. Please see the Console window tutorial link in my previous answer. The Acrobat JavaScript Console window is internal to Acrobat, so there is no system restrictions that may prevent you from using it. It's a perfect place to run short automation scripts that do things like print separate copies.
George also underscores a great solution, put the script in a (non-printable) button on the document itself. However, due to security restrictions this solution can be a bit tricky, but no more so than using the Console window. Each solution takes a little extra effort.
The problem with having multiple pages, it's that you must manually create a document with pages already in it. It is certainly a feasible solution, it comes you limit the number of pages that you have already created manually. At least one solution AcroForm. If you re-create your form as a dynamic LiveCycle, then creating new pages on the fly is not a problem.
None of these solutions will work fine, the real trick is to increment the date.
Here's a short script that begins with today's date and adds a day for each iteration of the loop and then prints
One day in milliseconds
var nOneDay = 24 * 60 * 60 * 1000;
var nToday = (new Date()) .getTime ();
for (var i = 0; i)<>
{
oTheDate = new Date (nToday + i * nOneDay);
Date format
cTheDate = util.printd("mm/dd/yyyy",oTheDate);
this.getField("MyDate").value = cTheDate;
This.Print)
}
This same loop could be used to fill in a form on the page - multi (repeated) fields.
Using the util.scand () function, this loop could be setup to start at an arbitrary date.
See you soon,.
-
Need help with the merger of the lines of a virtual Table based on a foreign key
The following is the result of the sample of a large SQL SELECT statement exits from a single table. I used - to show the values of X in each column
CODE - XX - YY - ZZ_
AD------------X-----------------------------------
AD-----------------------------------------------X
AD---------------------------X--------------------
CD------------X-----------------------------------
CD-----------------------------------------------X
CD---------------------------X--------------------
I would like to further clarify the results above by the merger on a single line for each CODE. Example below.
Please note that each line for each code, has only a single value. Thus, by using a CONCAT function would be fine for me. I am at a loss to identify the parent SQL statement to merge data as below
CODE - XX - YY - ZZ_
AD - X - X - X
CD - X - X - X
Seek help from people on this forum
Published by: cseshan on October 18, 2010 21:04
Published by: cseshan on October 18, 2010 21:05
Published by: cseshan on October 18, 2010 21:08
Published by: cseshan on October 18, 2010 21:09
Published by: cseshan on October 18, 2010 21:09
Published by: cseshan on October 18, 2010 21:11also - if you put the [code] [/ code]
Tags around your code (without spaces) you can format it slightly betterBy asking questions on the forum it is also good to add table creation/insert script or use a statement and other you should reproduce your data
for example:SQL> with t as (select 'AD' code, 'X' xx, null yy, null zz from dual 2 union all 3 select 'AD',NULL,'X',NULL FROM DUAL 4 UNION ALL 5 SELECT 'AD',NULL,NULL,'X' FROM DUAL 6 union all 7 select 'CD' , 'X' , null , null from dual 8 union all 9 select 'CD',NULL,'X',NULL FROM DUAL 10 UNION ALL 11 SELECT 'CD',NULL,NULL,'X' FROM DUAL) 12 SELECT code, max(xx), max(yy),max(zz) 13 from t 14 group by code ; CODE MAX(XX) MAX(YY) MAX(ZZ) -------------------------------- -------------------------------- -------------------------------- - AD X X X CD X X X 2 rows selected.
-
Help with button for search data &; put in form fields
I thought clicking on a button to fill out a few fields of the form with the data of a previous record would be simple, but there is something it clutter. I created 3 components are:
1. a button "Copy last Pickup & drop-off Instructions" in my form box. It sets the button ask the value of 'COPY_PICKUP_DROPOFF '.
2. a conditional branch, which sets fire ' on submit after treatment "conditional on the button, which branches off to the same page, and affects the application of 'COPY_PICKUP_DROPOFF '.
3. a process (On Load - after header) Page that defines the shape of field values, that is subordinated to the request = COPY_PICKUP_DROPOFF (Type of Condition: Request = 1 Expression). Finally, it queries the database, but now the PL/SQL to define the shape of the field values is very basic:
Start
: P71_PICKUP_INSTRUCTIONS: = "debug set PICKUP INSTRUCTIONS."
: P71_DROPOFF_INSTRUCTIONS: = "debug set DROP-OFF INSTRUCTIONS."
end;
Can anyone spot what I am missing which is required for this configuration to work? In that time by pressing the button submits the page but not to fill the form fields, do not raise errors.Hi Mark,
I do not see the code for this link, so can't do any real investigation myself.
In debug mode, when you click on 'Copy last Pickup and drop-off Instructions', you see that the application is actually the value?
What is the source of the items you want to refresh? Populated each time or only when it is null?
Cheers, Rob
Maybe you are looking for
-
Firefox stopped uploading documents Word and PDF of the email and DOWNLOAD history wiped.
Never had this problem before. Can not download, view or save the docs. Perfomed reset as recommended and still cannot get the documents.
-
Re: Equium A200-1VO hard drive upgrade
Hello there, I am hoping that there is someone out there who could give me a little advice! I have a laptop Equium A200-1VO, but unfortunately I need to replace the hard drive. He currently holds a 120 GB drive, but I wonder if the laptop could face
-
How to dissassociate a file association for nothing
I put .lnk failing open with IE now all programs (word, excel, quicken, e-mail) now open with IE how to change anything?
-
Where can I adjust the speed of the mouse/indicator?
How to adjust the speed of the mouse/indicator?
-
Simulate the MLAG on N1524 battery?
Hello Documentation, I know that the N1500 series does not support MLAG. But if I stacked 2 N1524s, then I create a normal SHIFT with links on the two switches? For example, with is 2 switches stacked, possible to put an item in gi1/0/10 and Gi2/0/10