Hide/show columns only when exporting to CSV on an IR
HelloI would not include a column displayed in my interactive report when you export one. CSV.
I've seen on the blog of andy that it is possible to do it on a region in relation WWV_FLOW.g_excel_format = false;
Is is it possible to do it also on an IR with something else?
Thank you
Published by: Ujitsu on June / 09/2010 20:00
Hello
You can set the column conditionally by request.
For example the condition function body of PL/SQL returning a Boolean column set that you do not export
RETURN NVL(:REQUEST,'EMPTY') NOT IN('CSV','XLS','PDF','XML','RTF');
I have some examples here
http://Apex.Oracle.com/pls/OTN/f?p=40323:63
EMPNO column is not exported by the report
BR, Jari
Tags: Database
Similar Questions
-
A column value a comma, which leads to a column different while export to CSV file
Hi all
I have a few columns that will be built in the CSV file. The problem is in one of the column value of a comma in there. Thus, it creates a separate column two in CSv file.
For example:
Name of the column: description.
Value: Bumpers, cushion
But then that export in CSV file, it gives me bumper as a column and seat cushion in the second column.
I'm using Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
Appreciate your help.
Thank you
Suresh
Hello
REPLACE (str
, '"'
, '"'
)
Returns a copy of the string str, but with all the ' "" ' changed substrigs in ' ' ' "
This assumes that your front-end is not treat & like variable substitution marker. If it is so, and -is your SQL * more escape character, then you can say
REPLACE (str
, '\"'
, '"'
)
-
Show LOV only when the field is empty
Hi all
My surroundings:
Oracle 10g on Windows
Forms [32 bit] Version 9.0.4.1.0 (Production)
Oracle Database 10 g Enterprise Edition Release 10.2.0.5.0 - 64 bit Production
With partitioning, OLAP, Data Mining and Real Application Testing options
Oracle Toolkit Version 9.0.4.1.0 (Production)
PL/SQL Version 9.0.1.5.1 (Production)
My problem:
I have a field in a block, which is text_item and is linked to an element of LOV. I want the LOV appears automatically, whenever I tab in there, only when the element is EMPTY (for example when I try to insert in the block). When, upon request, it should show only the value in the field, and user can choose to activate the LOV, by pressing F9, if she wants to. It now displays automatically each time text agenda is a debate (works very well when the user is inserted, but annoying when she questioned the shape and trying to tab thru.) Every time she focuses on the field, LOV is popping up!)
The current setting for the property on the element of text field: Type: text element
The list of values: MY_LOV_NAME
Validation of list: Yes
Properties on MY_LOV_NAME
Auto display: Yes
Any suggestions? Or trigger level I can use, and if so, what build_in can use?
New forms and will greatly appreciate advice from pros!
Thank you
Libran_girlIt's very simple,
IN once - new - item - Instance
DECLARE
V_LOV BOOLEAN;
BEGIN
IF: NOM_ELEMENT IS NULL
THEN
V_LOV = SHOW_LOV (LOV_NAME);
END IF;
END;Try it, you will get your result, if it doesn't work, try: block_name.item_name
Abbas
-
Slide show ignores only when it is online
Hi all
I would really appreciate the help on this... I have a slide show that works quite well when it is on my machine, however, once he has published on the web, instead of having a smooth transition between external SWF, he jumps and shows a white background with a second charger... Not only when it is load the first time, but all the time... Any help in this would be SUPER APPRECIATED. Here is the code:
I thank very you much in advance!
package
{
IMPORT FLASH
import flash.display. *;
import flash.events. *;
flash.net import. *;
import flash.text. *;
import flash.geom.ColorTransform;
import flash.media.Sound;
import flash.media.SoundChannel;
import flash.net.URLRequest;
import flash.media.SoundTransform;
import flash.media.SoundMixer;
Import fl.transitions.Tween;
Fl.transitions.easing import. *;
Import fl.transitions.TweenEvent;
import flash.utils.Timer;
import flash.events.TimerEvent;
Import caurina.transitions.Tweener;
//--------------------------------------------------------------------------------------- -------------
// MAIN CLASS
//--------------------------------------------------------------------------------------- -------------
Slideshow/public class extends MovieClip
{
-YOU CAN CUSTOMIZE THE VALUES VAR!
color for the original text is: 0xA28565 for bkg is: 0xECD7B2, at the border is: 0xC8B18F
private var numberOfSlides:Number = 3; number of slides, it's going to be a
private var spacingBtn:Number = 25; the distance between the buttons
private var bkgColorStart:uint = 0xf2d0b0; the first loading bkg color button
private var borderColorStart:uint = 0xC8B18F; the border color of the button on the first load
private var txtColorStart:uint = 0xA28565; the color of text on the first load button
private var bkgColorOver:uint = 0xffeddb; the bkg on mouse over event color button
private var borderColorOver:uint = 0xC8B18F; the border color of the button on the mouse on the event
private var txtColorOver:uint = 0xA28565; the text color of the button on the mouse on the event
private var bkgColorOut:uint = 0xECD7B2; the color of bkg button on the mouse of the event
private var borderColorOut:uint = 0xC8B18F; the event's mouse button border color
private var txtColorOut:uint = 0xA28565; the text color of the button on the mouse of the event
private var bkgColorActive:uint = 0x1fbbfc; When the bkg color button is active
private var borderColorActive:uint = 0xffffff; the border color of the button when is active
private var txtColorActive:uint = 0xffffff; the text of the button when the color is active
private var my_speed:Number = 8; the next loading in swf format speed
private var my_swfs:Array = new Array("swfs/one_btn.swf","swfs/two_btn.swf","swfs/three_btn.swf");
//------------------------------------------------------------------------------------- PRIVATE VAR
private var slideBtn:_SlideBtn; make new instance
private var myBkgColorTransform = new ColorTransform();
private var myBorderColorTransform = new ColorTransform();
private var currentlyActive: *;
private var activeSet:Boolean = false;
private var slideButtons:Array;
private var urlSong:String = "ocean2.mp3";
private var urlSong2:String = "squeeak.mp3";
private var song: SoundChannel;
private var song2:SoundChannel;
private var myTransform = new SoundTransform();
private var myTransform2 = new SoundTransform();
private var my_total:Number = numberOfSlides;
private var my_preloader:TextField;
private var my_timer:Timer = new Timer(my_speed * 1000);
private var my_success_counter:Number = 0;
private var my_playback_counter:Number = 0;
private var my_loader:Loader;
//--------------------------------------------------------------------------------------- -------------
// MAIN
//--------------------------------------------------------------------------------------- -------------
public void show (): void
{
init();
}
private function init (): void
{
slideButtons = new Array;
for (var i: Number = 0; i < numberOfSlides; i ++)
{
slideBtn = new _SlideBtn();
controlsContainer.addChild (slideBtn);
slideBtn.x = 59 + (I * spacingBtn);
slideBtn.y = 8;
slideBtn.txt.text = String (i + 1);
slideBtn.buttonMode = true;
slideBtn.mouseChildren = false;
slideBtn.useHandCursor = true;
slideBtn.addEventListener (MouseEvent.MOUSE_OVER, buttonEventsHandler);
slideBtn.addEventListener (MouseEvent.MOUSE_OUT, buttonEventsHandler);
slideBtn.addEventListener (MouseEvent.CLICK, buttonEventsHandler);
slideBtn.name = "slideBtn" + (i + 1);
myBkgColorTransform.color = bkgColorStart;
slideBtn.bkg.transform.colorTransform = myBkgColorTransform;
myBorderColorTransform.color = borderColorStart;
slideBtn.border.transform.colorTransform = myBorderColorTransform;
slideBtn.txt.textColor = txtColorStart;
slideButtons.push (slideBtn);
slideBtn.urlPath = my_swfs [i];
slideBtn.itsID = i;
}
setFirst();
startSound1();
startSound2();
controlsContainer.play_btn.addEventListener (MouseEvent.CLICK, playSound);
controlsContainer.stop_btn.addEventListener (MouseEvent.CLICK, stopSound);
controlsContainer.go_btn.addEventListener (MouseEvent.CLICK, playTimer);
controlsContainer.pause_btn.addEventListener (MouseEvent.CLICK, stopTimer);
controlsContainer.play_btn.visible = false;
controlsContainer.go_btn.visible = false;
}
private void changeColor(e:*,_bkgColor:uint,_borderColor:uint,_txtColor:uint):void
{
myBkgColorTransform.color = bkgColor;
e.bkg.transform.colorTransform = myBkgColorTransform;
myBorderColorTransform.color = borderColor;
e.border.transform.colorTransform = myBorderColorTransform;
e.txt.textColor = txtColor;
}
private function setFirst (): void
{
slideButtons [0] .dispatchEvent (MouseEvent (MouseEvent.CLICK)) of new;
my_timer.addEventListener (TimerEvent.TIMER, timerListener);
}
//--------------------------------------------------------------------------------------- -------------
// BUTTON METHODS
//--------------------------------------------------------------------------------------- -------------
private void buttonEventsHandler(e:MouseEvent):void
{
Switch (e.type)
{
case MouseEvent.MOUSE_OVER:
changeColor (e.target, bkgColorOver, borderColorOver, txtColorOver);
break;
case MouseEvent.MOUSE_OUT:
changeColor (e.target, bkgColorOut, borderColorOut, txtColorOut);
break;
case No. MouseEvent.CLICK:
my_playback_counter = e.target.itsID;
Loadimages() (e.target.urlPath);
stayActive (e);
my_timer. Reset();
my_timer. Start();
break;
by default:
trace ("no matches found for switch (e.type) '");
}
}
private void stayActive(e:MouseEvent):void
{
changeColor (e.target, bkgColorActive, borderColorActive, txtColorActive);
e.target.removeEventListener (MouseEvent.MOUSE_OVER, buttonEventsHandler);
e.target.removeEventListener (MouseEvent.MOUSE_OUT, buttonEventsHandler);
e.target.removeEventListener (MouseEvent.CLICK, buttonEventsHandler);
If (Meridio73)
{
currentlyActive.target.addEventListener (MouseEvent.MOUSE_OVER, buttonEventsHandler);
currentlyActive.target.addEventListener (MouseEvent.MOUSE_OUT, buttonEventsHandler);
currentlyActive.target.addEventListener (MouseEvent.CLICK, buttonEventsHandler);
changeColor (currentlyActive.target, bkgColorOut, borderColorOut, txtColorOut);
}
currentlyActive = e;
Meridio73 = true;
}
//--------------------------------------------------------------------------------------- -------------
// SOUND METHODS
//--------------------------------------------------------------------------------------- -------------
public function startSound1 (): void
{
var request: URLRequest = new URLRequest (urlSong);
var soundFactory:Sound = new Sound();
soundFactory.load (request);
song = soundFactory.play ();
song.addEventListener (Event.SOUND_COMPLETE, soundComplete);
myTransform.volume =. 1;
song.soundTransform = myTransform;
}
public function startSound2 (): void
{
var request2:URLRequest = new URLRequest (urlSong2);
var soundFactory2:Sound = new Sound();
soundFactory2.load (request2);
Song2 = soundFactory2.play ();
Song2.addEventListener (Event.SOUND_COMPLETE, soundComplete2);
myTransform2.volume =. 7;
Song2.SoundTransform = myTransform2;
}
private void soundComplete(e:Event):void
{
startSound1();
}
private void soundComplete2(e:Event):void
{
startSound2();
}
function playSound(event:MouseEvent):void
{
SoundMixer.stopAll ();
controlsContainer.play_btn.visible = false;
controlsContainer.stop_btn.visible = true;
startSound1();
startSound2();
}
function stopSound(event:MouseEvent):void
{
Song.Stop ();
Song2.stop ();
SoundMixer.stopAll ();
controlsContainer.stop_btn.visible = false;
controlsContainer.play_btn.visible = true;
}
//--------------------------------------------------------------------------------------- -------------
// SLIDESHOW METHODS
//--------------------------------------------------------------------------------------- -------------
private void loadImages(thePath:String):void
{
var my_url:String = path;
my_loader = new Loader();
my_loader. Load (new URLRequest (my_url));
my_loader.contentLoaderInfo.addEventListener (Event.COMPLETE, onComplete);
If (holder.numChildren == 0)
{
holder.addChildAt (my_loader, 0);
my_loader.Alpha = 0;
Tweener.addTween (my_loader, {alpha: 1, time: 1, transition: "linear"});
} Else if (holder.numChildren == 1)
{
holder.addChildAt (my_loader, 1);
my_loader.Alpha = 0;
Tweener.addTween (my_loader, {alpha: 1, time: 1, transition: "linear", onComplete: fact, onCompleteParams:[0]});})
} Else if (holder.numChildren == 2)
{
holder.addChildAt (my_loader, 0);
my_loader.Alpha = 0;
Tweener.addTween (my_loader, {alpha: 1, time: 1, transition: "linear", onComplete: fact, onCompleteParams:[1]});})
}
function done(theNum:Number)
{
holder.removeChildAt (theNum);
}
my_preloader = new TextField();
my_preloader. Text = "Loading";
my_preloader. AutoSize = TextFieldAutoSize.Center;
my_preloader.x = (stage.stageWidth - my_preloader.width) / 2;
my_preloader.y = (stage.stageHeight - my_preloader.height) / 2;
addChild (my_preloader);
}
private void onComplete(e:Event):void
{
var my_loaderInfo:LoaderInfo = LoaderInfo (e.target);
my_loaderInfo.removeEventListener (Event.COMPLETE, onComplete);
removeChild (my_preloader);
my_preloader = null;
}
private void timerListener(e:TimerEvent):void
{
my_playback_counter ++;
If (my_playback_counter == my_total) {}
my_playback_counter = 0;
}
slideButtons [my_playback_counter] .dispatchEvent (MouseEvent (MouseEvent.CLICK)) of new;
}
private void stopTimer(e:MouseEvent):void
{
my_timer. Stop();
controlsContainer.pause_btn.visible = false;
controlsContainer.go_btn.visible = true;
}
private void playTimer(e:MouseEvent):void
{
my_timer. Reset();
my_timer. Start();
controlsContainer.pause_btn.visible = true;
controlsContainer.go_btn.visible = false;
}
End of the course
}
}Not too many people will descend through all this code to try to figure out how it works and what part relates to your question. Since the problem occurs online and not locally, it's probably a problem with loading times. What you need to do if you have not already, is to wait until a file is fully loaded before add you it to the screen. So if you use a charger and a COMPLETE receiver for this be, use the COMPLETE event handler function to add the file newly loaded to the screen.
-
Is it possible to hide / show columns in the dashboard?
Hi all
It is my very first post in this forum OBIEE.
My requirement is to allow users to select what they want to see answers of columns asking in dashboard. For example in the application of responses he is 10 columns and 5 of them are hidden. Is it possible to change this property hide these columns hidden in the Dashboard?
Thanks in advance.If you are thinking about a multiple selection prompt that has your names of columns as values, then no, you can't. But don't forget to uncheck the "Automatically refresh when a new column is selected" at the top of the display of the column selector. This will allow your users to choose all the appropriate columns before clicking on the button 'Go '. Which ' forget to mark the message useful (s) (at the top right of the post there) If you helped.
Thank you!
Edited by: David_T May 21, 2010 07:08
-
Remove "<; div" Excel file when exporting to CSV format
Hello
I have a report has the following properties:
Export of reports
Activate the output CSV = > Yes
Bind the Label = > export to CSV format
but when I run the report and press the link, I get an excel sheet indicating the reeport data, but the problem is that the report began with
< div id = "report_11749113153378136_catch" >, Iam if you're wondering how to solve the problem.
Thank you
Abdul Alkhateeb
Published by: dtabed on March 18, 2009 07:58Hi Adam,.
What version of APEX are you running? I think that this has been fixed in 3.1.2. If you disable partial-page refresh, that should get rid of your problem.
Martin
-----
[http://apex-smb.blogspot.com/] -
Hide / show column for download in CSV format
Interactive report how to include a hidden column of the report for download file (CSV).
For example, if I have the 'Note' field, which is hidden in the IR, but what happens if I need this field to downloaded. CSV file.
Thank youCopied OK delete now
-
Master-detail-shape; Hide/show columns in the form of details according to the column
Hello
I have a form master detail. In the long form, I have the columns:
ID, MASTER_ID_FK, PC_SOURCE, A_C1, A_C2, A_C3, B_C1, B_C2, B_C3
The PC_SOURCE of the column must be a LOV with values
NULL VALUE
A
B
So if I choose or enter a master record the detailed form appears and I can enter one or more detail records.
PC_SOURCE is the first column.
If I choose one, the columns B_C1, B_C2, B_C3 should disappear as there should be no possible entry.
If I have B, A_C1, A_C3, A_C2 columsn should disappear as there should be no possible entry.
Is this possible?
I tried a bit of my own, but without success. I tried to put in the first column (lov SOURCE PC) in the attributes of the element a javascript call like onChange = "do_Refresh('#PC_SOURCE#'); »
The javascript funktion do_Refresh tries to grab the value of the column and the value of a hidden item P1_SOURCE as document.getElementById('P1_SOURCE').value = v_source;
But this does not work, because there is not the value of the recovered column.
And probably can´t work because of more lines of a detail.
Thank you and best regards,
MatthiasHello
The html code of your detailed form will be an array of the elements of entry with names f01, f02, etc.. The columns of the key of the fields are normally hidden, so your PC_SOURCE column will probably use the name f03. A_C1 column name will be f04 etc.
Once you have the input names for your columns, you can create a dynamic action (DA) to hide the items you want.
You want the DA to fire when any element PC_SOURCE is changed if you want when to be:
Event: change
Selection type: jQuery Selector
jQuery Selector: input [name = "f03"]
Condition: no strings attachedThe action is to hide an element in the same line, if the changed item is a value. The action must therefore:
Action: Run the JavaScript Code
Fires when the event is: true
Code: if(this.triggeringElement.value=="A") {$x_Hide ('f04_' + this.triggeringElement.id.split ('_') [1])}You then need a lot of real actions for each item that you want to hide.
Rod West
-
When I click on the + sign up open a new empty tab, I don't see any of my favorite sites / pins. I see this when I start a new window browser and only for the 'landing page '. Once I go to any other page, I can't get my new tabs tabbed page to display.
I fixed it. I went in: config and had to change browser.newtab.url to about: newtab
Thank you very much! Mark as resolved, have a nice day
-
Hide the caption only when the content of the field is empty for an Adobe form field
Hi all
We try to hide only the caption of a field if the content of the field is empty.
(a) the following code allows you to hide all cru (the entire field including the legend). What we should change the code to hide the legend?
-------------------------------------------------------
If (this.) RawValue is nothing)
{
This.Presence = "hidden".
}
-------------------------------------------------------
(b) another option would be to use the conditional formatting-> change of text in the caption to the text color white, if the content of the field is empty to make it invisible on print.
Are there options available ALD or code that must be used to achieve one of the options above?
Thank you in advance!
Kind regards
Roy
Modify the script to:
If (this.) RawValue is nothing)
{
xfa.resolveNode("this.caption.value.#text").value = "";
}
-
Hide / show region - skins when updating
Hello
I have a few drop-down elements in a skin and see the area... I use these drop downs to filter a report... everything works fine, except that when I select a value of one of the bottom drop the report refreshes and hide it "hide / display area"... is there a way to keep the area H & S open when the user opens for the first time...
Thank youHello
In your example nothing set items in session state.
Interactive use of the attributes of the report-> Page elements to submit to define elements such as session state in the original sample
Kind regards
Jari -
Hide/show the ObjectChoiceField...
Hello
I have a screen that has hierarchical menus (ObjectChoiceFields). For example, category, subcategory, and Type.
Type of choice will fill a selection of the subcategory. Same subcategory will be filled based on the selection of the category. In some case there is no subcategories and Types for certain categories and so on for the subcategories. In this scenario, OS 5 and above to show the space reserved for the empty ObjectChoiceFields.
Is it possible to hide when I don't need them and show them only when I need it?
I really apprecaite your answer. If the solution is little complex so please give me an example on how to do it because I'm still growing in this area.
Thank you very much in advance,
Vincent
It's actually a pretty common question.
You can dynamically add and remove fields from managers, and when you do, these managers are re-built-out.
It means finding a way to determine when you should add and/or remove the category and Type. You can do this with a FieldChangeListener on the category field, will get called whenever the user switches to another choice in the categories available, you can add and delete (and repopulate) fields then, according to the selected index.
The next problem is where to 'Add' them. Normally, you just make one
. Add ( ); but who's going to the field at the bottom of the Manager. Another option is
. Insert ( , index); That you will get through the fields to the right place.
How do detect you if the area has indeed been added. General, I do the following
Manager m =
. getManager(). If (m == null) {}
has not been added
} else {}
has been added
}
I hope that you get. As stated, this question was asked before, typically on the addition or deletion of checkboxFields. If you want more search for this.
Good luck.
-
Leading zeros and export to CSV
HelloI run a sql query for retrieving telephone numbers and when exporting to CSV 0 are deleted. I understand that this is a problem of excel formatting, however does it perform a work around in the SQL that can preserve the leading zeros when exporting to CSV?
sliderrules wrote:
The format of data is of type char
SELECT «=» | test ctelno
When they are copied to surpass the value bed = 0999 6767 in excel (including =)
You need double quotes
'="'|| c.ctelno |' » "
-
How to hide a column in the report when there are only zeros.
Hi Experts.,.
Is it possible to hide a column in the report when there are only zeros.
Thanks in advance
VincentVincent Krishna wrote:
Hi Experts.,.Is it possible to hide a column in the report when there are only zeros.
Thanks in advance
VincentNo out-of-the-box, but there are several workaround solutions if you want to continue an any of them:
(1) use a view selector. A single report will be a pivot table with the column, the other will have the same report less column. Users can switch reports.
(2) use a column selector. The two choices would be this column or an empty space. If white is chosen (because the user has no values), the column "will disappear" according to the report.
(3) guided use NAV. This method involves the intervention of the user. Build a small report using the single column and put a filter "is not equal to" 0. Because there is only a single column, so all lines are 0, the report returns no rows.
Use this report in the properties of guided navigation from one section of the dashboard. Assign to this "If the report returns lines" and put the report that contains the column in this section. Now add another article on your table edge and in the properties of guided navigation of this section, set on "If the report will return no rows" and it points to the small report as well. In this section, put a second version of your report without the column in it.
When the column contains all zeros, the second section with column will not display in it; the first section is not displayed. When at least a line contains a value not zero, the first section is displayed with the column, and the second part will not be.
-
How show/hide a column of link in a report, according to another column?
Hello!.
I have an interactive report. A column is a link to another form, but I need to hide/show or enable/disable the link on some lines by a pl/sql function that require values of field of the current line.
I can use the standard conditional visualization on the column, but I do not know how do refers to the value of the column in the body of pl/sql affection.
The page number is 32.
Normally, this could be ": p32_id_indicencia" in the code pl/sql, but now the page is an interactive record, without elements, there is no such thing as p32_id_incidencia.
: id_incidencia and #id_incidencia # does not work.
Sorry for my English, and I hope that I explained...
Thanks in advance.Well, you can just change the "Link" text with "", or whatever image you use in your link to column generated by the wizard. The link to the image in the column binding attributes when you create a. Just copy it. And instead of
else null
put
else ''
and it should work fine.
Best regards
Mathieu
Maybe you are looking for
-
Four questions about how to change the Satellite L650 - 1 M 0
Hello The laptop Toshiba L650 - 1 M 0 is possible to add the Bluetooth?Currently, I don't have a WiFi card. I have a second question:The laptop Toshiba L650 - 1 M 0 is possible to replace the ports USB 2.0 to 3.0? And the third question:The laptop To
-
Lost Screenlock pine (Webos doc has failed)
I have not used my touchpad for mths... yesterday, after I take took my touchpad fees it and try to use my touchpad, I discovered that I don't remember the PIN to the lockscreen. I went online and google for help and found something called WebOS Doct
-
Lenovo A6000 more display turns off
Hi all I recently got a Lenovo A6000 more and gave it to my mother. It was fine for a few days. Recently updated the version of sw to S015_150819 and repeatedly the screen turns white during a call or after entering standby mode and pressing the powe
-
Cannot read. File PDF in Wordpad?
Help, please. Everytime I open a pdf file in wordpad, I can't read it because it is not the text and signs and symbols. I'm using windows vista 32. Thank yu
-
BlackBerry Smartphones Yahoo Messenger.
I tried to install Yahoo messenger on my "BOLD", the other week, and it said that it was not available and said that they would keep him my details for when the beta version was released. Does anyone else have this problem. I have live messenger wind