Xcelsuis SWF to be embedded inside Flashisland
Hi All
Please refer to the thread and my question is in continuation to the response provided by Thomas
[Re: Integrate Xcelsius Report in WebDynpro for ABAP|Re: Integrate Xcelsius Report in WebDynpro for ABAP]
If we would like to write a wrapper Flex application, the generated SWF in Xcelsuis compiles only with Flex SDK 2.0.1 Hotfix 3.
But this wrapper Flex cannot include Flashisland library as this is supported only by Flex SDK 3.0.
What is the solution or am I missing something here ?
Regards
Kareem
SAP supplies both a Flex 2 and Flex 3 version of the FlashIsland library.
Similar Messages
-
Xcelsuis SWF - Not able to open in browser using Object TAG
We want to open Xcelsuis analytic form outside InfoView, by providing user an option to click on link to open analytic directly from application. We used SSO and Object tag in our custom JSP page. We were able to successfully pass SSO but couldnu2019t load SWF file. Although there wasnu2019t any error in browser while loading JSP page, but Adobe Flash object returns message that movie can't be loaded.
Open Xcelsuis SWF using documentDownload and passing FlashVars like CELogonToken and CEWebServiceURL.
Following are the steps:
u2022 Created JSP file, which first generates logonToken and store in some variable.
u2022 Generated Flashvars variable using following code:
String Flashvars = "CELogonToken=" + Encoder.encodeURL(CELogonToken);
Flashvars+= "&CEWebServiceURL=" + Encoder.encodeURL("http://winiadv22.ams.com:9085/dswsbobje/services/session")
u2022 Used Flashvars in Object tag.
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase= "http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" WIDTH="100%" HEIGHT="100%" id="myMovieName">
<PARAM NAME="movie" VALUE= ="../../opendoc/documentDownload?iDocID=18094&sKind=Flashu201D> <PARAM NAME="quality" VALUE="high"> <PARAM NAME="bgcolor" VALUE="#FFFFFF">
<PARAM NAME="play" VALUE="true"> <PARAM NAME="loop" VALUE="true"> <PARAM NAME=bgcolor VALUE="#FFFFFF">
<PARAM NAME=FlashVars VALUE="<%=Flashvars%>">
<EMBED src="../../opendoc/documentDownload?iDocID=18094&sKind=Flash" FlashVars="<%=Flashvars%>" quality=high bgcolor=#FFFFFF WIDTH="100%" HEIGHT="100%" NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash" play="true" loop="true" PLUGINSPAGE=
"http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</EMBED>
</OBJECT>Have you set up a wildcard DNS entry for the spapps.com domain?
Also if you're trying to connect from the server you might be hitting loop back check issues. -
ExternalInterface not working when swf file is embed inside a dynamically cloned DIV element.
ExternalInterface not working when swf file is embed inside a dynamically cloned DIV element.
It seems that flash movie is identifed as 'undefined' inside document.
//a statically placed div
var staticdiv=document.getElementById('PropDiv');
//dynamically placed div with object tag
var dynDiv =staticdiv.cloneNode( true );
var xD=50;
var yD=50;
if(dynDiv)
dynDiv.style.display = "block";
dynDiv.innerHTML="<object classid=" + "\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\"" + "codebase=" +
"\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\"" + "width=" + xD + "height=" + yD +
"id=" + "\"external\"" + "align=" + "\"middle\"" + ">" +
"<param name=" + "\"allowScriptAccess\"" + "value=" + "\"sameDomain\"" + "/>" +
"<param name=" + "\"movie\"" + "value=" + "\"external.swf\"" + "/>" +
"<param name=" + "\"quality\"" + "value=" + "\"high\"" + "/>" +
"<param name=" + "\"wmode\"" + "value=" + "\"transparent\"" + "/>" +
"<param name=" + "\"bgcolor\"" + "value=" + "\"#ffffff\"" + "/>" +
"<embed src=" + "\"external.swf\"" + "quality=" + "\"high\"" + "wmode=" + "\"transparent\"" +"bgcolor=" + "\"#ffffff\""
+ "width=" + xD + "height=" + yD + "name=" + "\"external\"" + "align=" + "\"middle\"" + "allowScriptAccess=" + "\"sameDomain\"" +
"type=" + "\"application/x-shockwave-flash\"" + "pluginspage=" + "\"http://www.macromedia.com/go/getflashplayer\"" + "/>" +
"</object>";
dynDiv.style.top=50;
dynDiv.style.left=100;
document.body.appendChild(dynDiv);
In above situation communication is not establised when a funtion which is retruning boolean is called from flash using
ExternalInterfcae.call.The return value of this function is getting as false inside flash.But the value is true in javascript.
if (navigator.appName.indexOf("Microsoft") != -1) {
return window[movieName];
} else {
return document[movieName];
window["external"] is returning as 'undefined'.
Please give a solution to solve this.Note that you have different file names for the object (images/banner.swf) and the embed (images/banner1.swf)
You also placed the embed in the middle of a param tag and nested all param tags.
Because you didn't include a MIME type and the object doesn't have a classid for an ActiveX control for IE, I'm not sure what Firefox will be using.<br />
The object doesn't have a data attribute to specify the file.<br />
A separate embed is only needed when you specify a classid in the object.
<pre><nowiki><div class="bannercontainer">
<object width="940" height="445" type="application/x-shockwave-flash" data="images/banner.swf" >
<param name="wmode" value="transparent" />
<param name="movie" value="images/banner.swf" />
</object>
</div></nowiki></pre> -
How a collection embedded inside another collection can be read???
Is there anybody can provide me with a small exemple of how I can access the element inside a collection (set) embedded inside another collection itself embedded inside another collection. Each collection is declare in their own class.
i.e. Class 1
private Set col2 = new HashSet;
Class 2
private Set col3 = new HashSet;
Class 3
private Set col4 = new HashSet;
How can I read the element belong to col4 since the col4 is accessible through col3 and col3 through col2????
Hope I am clear enough. Could someone help???
Thankshi,
If set contains set0, set1, set2 at 0 ,1 ,2 index
and u want to get the element at index 3 of set1 then u should proceed as :-
Set set = new HashSet ();
Set set0 = new HashSet ();
Set set1 = new HashSet ();
Set set2 = new HashSet ();
set0.add("hello");
set.add(set0);
set1.add("how");
set1.add("are");
set1.add("you");
set.add(set1);
set2.add("i")
set.add(set2);
Iterator iter = set.iterator() ;
iter.next();
Set outSet = (HashSet)iter.next()
And now iterate through this set to get the required element
Gaurav -
Embedding SWF symbol with embedded video
AFAIK from Google search result, there is no official support
on embedding flv/mov into flex yet, so I take an alternative route,
which is not success yet.
I have built a swf with Flash 8 as the library of assets.
Inside the library, there are 12 videos set to be controlled by the
timeline, each is placed into a MovieClip with identifier set as
"videoSymbol1"..."videoSymbol12" respectively.
Then I use a class to collect all these embedded MovieClips.
However, if I try to create a few objects of different
classes within the same screen update interval, mostly all the
objects becomes the last called class on display, or the Video
inside the movie become damanged. However, if the object belongs to
the class "symbolCls_1", it will just be fine.
By running code in the Action Code section inside the code
attached, only c1 displays the correct video, while all c2 to c12
display either messed-up video or the video of symbolCls_12.
However, if I create objects of one same classes, it is just
fine.
Other than loading external flv, see if there is any other
solutions on this. Thanks in advance.My ultimate goal is to embed all the assets and program into
one swf for deployment as I don't feel comfortable exposing the
assets. And, since these assets are created and destroy very
frequently, I'm wondering the performance issue if I use SWFLoader
to load it just when I need to put the video on stage.
What about loading the external swf's as a template, and do a
byte-clone on creating the video instance? -
Why won't swf file play embedded videos?
I created a swf file in inDesign. I embedded 3 videos within the document, all of which are embedded (stored on my host's server). I created the videos in Premiere Pro, saving them as H.264 (mp4), with sound codec AAC. I placed each video on its appropriate page in inDesign using the media dialogue box, choosing a poster image and a set of controls that become visible when hovered over. The swf file I placed onto a webpage in Adobe Muse, then uploaded that page to its host. When the website comes up, and I click on the page that holds the swf file, it looks good ... I have page-turning applied, and that works fine. But, when I go to click on a video, the frame just disappears.
Here's the caveat: After saving the swf file, I opted for it to open in my browser window. When inspecting the file in the browser, the videos work fine.
I have opened the webpage in Chrome, Firefox & IE, but the videos won't play.
Here's a link to the webpage:
www.fridayharborpowersquadron.com/newsletter.html
Please help, if you can. I would hate to have to start over by rebuilding every single page in inDesign file inside of Muse (since Muse can't take a PDF file. I thought about saving each ID page as a jpg, then building a fullscreen slideshow in Muse, then placiing each page inside of the slideshow presentation .. then writing html code into those jpg pages in order to link my videos from vimeo or youtube ... but I dont' want to go that route. I've put in way too many hours as it is.
Sure hope someone can help ...
Phil in Friday HarborAlso, where you live is a consideration. I live in East Africa, and due to the servers in the surrounding areas, I had to subscribe to a VPN as well as make sure I had the right plugins.
-
RH 7 - How can I get .swf movies to work inside CHM output on Windows 7
Hi RHelpers,
I'm using RoboHelp Html (RH 7, latest patch) on my Win 7 64-bit machine to provide a HtmlHelp (CHM) output.
Now that we're close to releasing, I've been doing some testing, and I've noticed that my SWF movie files do not play inside of Windows 7 when viewing them inside of the CHM file. It keeps asking to install the Adobe Flash Player. But I've already clicked Yes several times to that message, and it still doesn't play the file. I've even manually downloaded and installed it as an administrator, restarted my system and still no go. It just shows a red X in the container where the movie should be playing.
However, viewing the same topic inside of RH's preview window (or inside a browser) seems to work fine. Also, I've copied and pasted the problem CHM onto a virtual machine running 32-bit Vista, and the movies display fine there. This tells me it's something to do with how how compiled files are handled in 64-bit environments.
Has anyone else experienced this? Any solutions out there?I see the answer here:
http://forums.adobe.com/thread/781427?tstart=2
Also I verified that our software does use the 32-bit hh.exe so I'm only seeing this when running the help by itself, outside of our software. That's good news. -
Load swf and play movieclip inside it
I want to load a swf and play a moveclip inside it, but the SWFLoad.content always is null. Does sombody know how to resolve this problem?
private var SWFLoader:Loader;
public function myApp3()
SWFLoader = new Loader();
var request:URLRequest = new URLRequest("FlashAS3_2Flex.swf");
SWFLoader.load(request);
this.addChild(SWFLoader);
var currentSWF = MovieClip(SWFLoader.content);//SWFLoader.content is null
currentSWF.myClip.gotoAndPlay(1);The code you show works fine for me. How is btn1 created/named in the second swf file? If you create it dynamically and do not assign a name property to it, it does not have the name you think it does.
-
Hi,
I was forwarded here in hopes of better understanding the architecture of Flash Player within the AIR environment.
1) Woulda SWF App compiled to target FP10.3 run in an AIR App that targets FP 9.0 and AIR 2.7?
* Would FP10.3 specific features work correctly within the AIR app since all the work is happening in the SWF app?
* Assumption: The user has AIR runtime 3.1 installed( which I assume embeds FP 11 )
Details:
* App #1 => is a swf app that targets FP10.3 + LCCS v2.2.0 ( FP 10.3 )
* App #2 => AIR 2.7 app that target FP 9.0
Execution Flow:
* App #2 creates an HTML view, loads the "App #1" within itself and runs it.
Will the App #1 have AEC working and/or any FP10.3 specific behavior ? Is it OK that the container AIR app is not be targeting FP10.3 ?
Thanks,
Alex G.
PS Original post came from: http://forums.adobe.com/thread/927781This question would be better directed to the FlashPlayer and/or AIR forum.
AIR embeds a version of WebKit to implement the HTML view and I am not sure of what FlashPlayer is used by that "browser" (it could be an embedded FlashPlayer, in which case I am assuming will be the same version of AIR FP, or the FlashPlayer installed at the OS / external browser level, in which case it could possibly be a newer version of the FlashPlayer).
Best thing to do: try it out
I would build an AIR app embedding a small SWF that prints out the FlashPlayer version and see what happen changing the targets for the AIR app and the SWF. -
Trouble in loading external swf file and embedded font dynamically
I have developed a flex application doing something like this: it loads A.swf from somewhere and show it on the stage
sometimes A uses fonts not installed on users' machine, so at this time my app will load B.swf with needed fonts embedded in it from another place
I have working it out that fonts in B.swf can be detected and shown in my app stage, but when I use SWFLoader to show A.swf, it still fails in showing the fonts properly...
Some of my codes pasted here:
// load fonts
private function onFontBytesLoadComplete(e:Event):void {
var data:ByteArray = e.target.data as ByteArray;
swfLoader.addEventListener(Event.COMPLETE, onSWFLoadComplete);
swfLoader.source = data;
private function onSWFLoadComplete(e:Event):void {
loadSM = SystemManager(swfLoader.content);
loadSM.addEventListener(FlexEvent.APPLICATION_COMPLETE, onFontLoadComplete);
private function onFontLoadComplete(e:FlexEvent):void {
var clazz:Class = loadSM.loaderInfo.applicationDomain.getDefinition(fontName) as Class;
var fun:Function = clazz.getFont as Function;
var fontClazz:Class = fun();
var font:Font = new fontClazz() as Font;
trace(getQualifiedClassName(new fontClazz()));
Font.registerFont(fontClazz);
if(loadFinishedHandler != null) {
loadFinishedHandler(fontName);
Anyone has idea about this? 3x~Hm, yes, I remember there being some challenges in this regards, with Modules loading fonts at runtime.
If you take a look at the section "Using run-time style sheets with modules," they describe the basic approach where everything has to be loaded and registered in the primary application domain.
I think it should work fine the way you have it, provided you are registering both the font and the loaded SWF in the primary application domain. If not, you may need to push the font registration down into the application domain being used by the loaded SWF.
Something like this perhaps:
childApplicatonDomain.getDefinition('flash.text.Font').registerFont(fontClass);
Where childApplicatonDomain is the application domain of the loaded SWF. -
How do I play FC swf with animation & video inside interactive pdf?
Hello...good people! I want to create an interactive PDF using a published FC swf (offline view version) with flv video and animation. The problem I'm having is with video playback inside the pdf. EVERYTHING ELSE WORKS EXCEPT VIDEO! It's as if Acrobat is not reading the asset folder (where the video file is located) created by FC. All animations work and even the video control (skin) appears! Just....no....video!
When I RUN PROJECT (inside browser), everything works perfectly!
As a matter of fact, I am able to create damn-near-the-same SWF (with flv video playback and animation) inside InDesign CS5 (hint hint!) using the animation and media panel and Export> SWF command (and again everything works perfectly!)
In case you want to know how I do it, here's how it works....
1. Drag-and-drop your SWF created in InDesign into Acrobat 9 Pro or Pro Extended.
2. When the INSERT FLASH dialogue box appears, check SHOW ADVANCED OPTIONS. Click the RESOURCES tab. Click the ADD DIRECTORY button. Then, locate the asset folder (with flv/f4v video) associated with your SWF. Click OK.
3. And bam!!...the SWF (video playback and animation) should appear and play as soon as the dialogue box closes.
But remember...this is with InDesign CS5! How do I do this with FC? Why does everything work BUT the video playback when I follow these same steps after publishing from FC? WHAT AM I MISSING OR DOING WRONG?!!! I know I can do a lot more with FC and I want to see the same awesomeness of FC interactivity in my PDF as I see in my browser!!! If InDesign can do it, I know there's a way FC can!!!! Now....a little help please!
Thanks,
Big WaddyHi,
Interesting application for the Fc output. I tried this out and it seems to work fine. Here are the steps I went through.
Created the fxp file and output the result
Created the pdf
From inside Acrobat Pro, I selected the Multimedia > Flash Tool and then chose the area in the document where I wanted to place the Fc output
I chose the Main.swf for placement
Acrobat Pro places the file
I saved the pdf and then opened the file in the browser
A play button appears and works when pressed
Not sure what would happen when placed on a server. Expect that you would need to keep all the files in the correct path/relationship to each other.
Hope this helps.
Tanya -
How to handle line break embeded inside CSV column
Hi there,
I am under the pressure to make it work. I already put this question on APEX forum, but on second thought, I think it relates more to PL/SQL rather than APEX since APEX 4.1 already have utility to handle CSV Upload.
If you read it already in APEX forum, please ignore.
I am sorry for that. Thanks for reading.
I need to develop an app that allows user to upload CSV file to a interface table.
The APEX version at my workplace is 4.0.2.
I used the code from
http://dbswh.webhop.net/htmldb/f?p=BLOG:READ:0::::ARTICLE:11000346061523
It all works well till recently I find out
If a column in a CSV file cotain a line break (or new line) e.g. (The tester copy and paste this text which has line break into a column in a spreadsheet)
This is the first sentence.
This is the second sentence.
It will break the “This is the second sentence”. To a new column.
The contents of the CSV viewed in Notepad look as below
Assessment Date,Scheduled Date,Assessment Provider,Assessor Name,Court,First Name,Middle Name,Last Name,PRN Person Record Number,NHI Number,Defendant Attended Y/N,Is Dependent Y/N,Notes,Primary Ethnicity,"Ethnicity Other, please specify",Gender,Currently in Treatment Y/N,Substance of Concern 5,Other Substance Specified
22/09/2012,,Provider Co Name,Warren Edgley,Wellington,,,Salty,2545554,dgsdf,ergerg,,"This is the first sentence.
This is the second sentence.",Japanese,,Female,b,,
Here is the code from the CSV UTIL, please help me to find out how can I replace the line break to a space so that the uploading process is correct.
CREATE OR REPLACE PACKAGE BODY "CSV_UTIL"
AS
--strip the beginning and the end quotes, then replace double quotation with single
FUNCTION de_quote (p_str IN VARCHAR2, p_enc_by IN VARCHAR2)
RETURN VARCHAR2
IS
v_str VARCHAR2(32767) := p_str;
BEGIN
IF (p_enc_by IS NULL)
THEN
RETURN p_str;
ELSE
IF SUBSTR(p_str,-1) = p_enc_by THEN
v_str := SUBSTR(p_str,1,LENGTH(p_str)-1);
END IF;
IF SUBSTR(p_str,1,1) = p_enc_by THEN
v_str := SUBSTR(v_str,2);
END IF;
RETURN REPLACE (v_str,
p_enc_by || p_enc_by,
p_enc_by
END IF;
END de_quote;
PROCEDURE parse (p_str IN VARCHAR2, p_enc_by IN VARCHAR2, p_sep IN VARCHAR2)
IS
l_n NUMBER DEFAULT 1;
l_in_quote BOOLEAN DEFAULT FALSE;
l_ch NCHAR (1);
l_len NUMBER DEFAULT NVL (LENGTH (p_str), 0);
BEGIN
IF (l_len = 0)
THEN
RETURN;
END IF;
g_words := g_empty;
g_words (1) := NULL;
FOR i IN 1 .. l_len
LOOP
l_ch := SUBSTR (p_str, i, 1);
IF (l_ch = p_enc_by)
THEN
l_in_quote := NOT l_in_quote;
END IF;
IF (l_ch = p_sep AND NOT l_in_quote)
THEN
l_n := l_n + 1;
g_words (l_n) := NULL;
ELSE
g_words (l_n) := g_words (l_n) || l_ch;
END IF;
END LOOP;
g_words (l_n) := de_quote (g_words (l_n), CHR(10));
g_words (l_n) := de_quote (g_words (l_n), CHR(13));
FOR i IN 1 .. l_n
LOOP
g_words (i) := de_quote (g_words (i), p_enc_by);
END LOOP;
END parse;
Author: Oleg Lihvoinen
Company: DbSWH
Changes:
10.02.2011, There was a miscalculation of the file line last position in case it is the end of file
PROCEDURE upload (p_file_name VARCHAR2, p_collection_name VARCHAR2, p_enc_by IN VARCHAR2, p_sep_by IN VARCHAR2, p_rows NUMBER)
IS
v_blob_data BLOB;
v_clob_data CLOB;
v_clob_len NUMBER;
v_position NUMBER;
v_char NCHAR (1);
c_chunk_len NUMBER := 1;
v_line VARCHAR2 (32767) := NULL;
v_data_array vcarray;
v_rows NUMBER := 0;
n_seq NUMBER := 1;
dest_offset NUMBER := 1;
src_offset NUMBER := 1;
amount INTEGER := DBMS_LOB.lobmaxsize;
blob_csid NUMBER := DBMS_LOB.default_csid;
lang_ctx INTEGER := DBMS_LOB.default_lang_ctx;
warning INTEGER;
l_sep VARCHAR2(100) := CASE WHEN p_sep_by = '\t' THEN chr(9) ELSE p_sep_by END;
BEGIN
htmldb_collection.create_or_truncate_collection
(p_collection_name => p_collection_name);
-- Read blob from wwv_flow_files
SELECT blob_content
INTO v_blob_data
FROM wwv_flow_files
WHERE NAME = p_file_name;
v_position := 1;
DBMS_LOB.createtemporary (lob_loc => v_clob_data,
CACHE => TRUE,
dur => DBMS_LOB.SESSION
DBMS_LOB.converttoclob (v_clob_data,
v_blob_data,
amount,
dest_offset,
src_offset,
blob_csid,
lang_ctx,
warning
v_clob_len := DBMS_LOB.getlength (v_clob_data);
IF v_clob_len = 0 THEN
RETURN;
END IF;
WHILE (v_position <= v_clob_len + 1)
LOOP
v_char := DBMS_LOB.SUBSTR (v_clob_data, c_chunk_len, v_position);
v_line := v_line || v_char;
v_position := v_position + c_chunk_len;
-- When the whole line is retrieved and not end of file or end of file
IF v_char = CHR (10) AND v_position < v_clob_len OR v_position = v_clob_len + 1
THEN
parse (p_str => v_line, p_enc_by => p_enc_by, p_sep => l_sep);
v_data_array := g_words;
FOR i IN 1..g_words.count LOOP
IF i <= 50 THEN
v_data_array(i) := g_words(i);
ELSE
exit;
END IF;
END LOOP;
FOR i IN g_words.count + 1..50 LOOP
v_data_array(i) := null;
END LOOP;
v_rows := v_rows + 1;
-- exit if uploaded specified number of rows
IF p_rows IS NOT NULL AND v_rows > p_rows THEN
EXIT;
END IF;
-- Store data to collection
n_seq :=
htmldb_collection.add_member
(p_collection_name => p_collection_name,
p_c001 => v_data_array
(1),
p_c002 => v_data_array
(2),
p_c003 => v_data_array
(3),
p_c004 => v_data_array
(4),
p_c005 => v_data_array
(5),
p_c006 => v_data_array
(6),
p_c007 => v_data_array
(7),
p_c008 => v_data_array
(8),
p_c009 => v_data_array
(9),
p_c010 => v_data_array
(10),
p_c011 => v_data_array
(11),
p_c012 => v_data_array
(12),
p_c013 => v_data_array
(13),
p_c014 => v_data_array
(14),
p_c015 => v_data_array
(15),
p_c016 => v_data_array
(16),
p_c017 => v_data_array
(17),
p_c018 => v_data_array
(18),
p_c019 => v_data_array
(19),
p_c020 => v_data_array
(20),
p_c021 => v_data_array
(21),
p_c022 => v_data_array
(22),
p_c023 => v_data_array
(23),
p_c024 => v_data_array
(24),
p_c025 => v_data_array
(25),
p_c026 => v_data_array
(26),
p_c027 => v_data_array
(27),
p_c028 => v_data_array
(28),
p_c029 => v_data_array
(29),
p_c030 => v_data_array
(30),
p_c031 => v_data_array
(31),
p_c032 => v_data_array
(32),
p_c033 => v_data_array
(33),
p_c034 => v_data_array
(34),
p_c035 => v_data_array
(35),
p_c036 => v_data_array
(36),
p_c037 => v_data_array
(37),
p_c038 => v_data_array
(38),
p_c039 => v_data_array
(39),
p_c040 => v_data_array
(40),
p_c041 => v_data_array
(41),
p_c042 => v_data_array
(42),
p_c043 => v_data_array
(43),
p_c044 => v_data_array
(44),
p_c045 => v_data_array
(45),
p_c046 => v_data_array
(46),
p_c047 => v_data_array
(47),
p_c048 => v_data_array
(48),
p_c049 => v_data_array
(49),
p_c050 => v_data_array
(50)
-- Clear the line
v_line := NULL;
END IF;
END LOOP;
END;
END;In my apps, I save these straight into a table rather than an APEX collection because the number of columns can be longer than 50.
I want to find out how can replace these line break inside a column to a space.
If any one has any ideas, please let me know.
Thanks a lot in advance.
AnnAnn586341 wrote:
I think the code split the whole thing by this line
-- When the whole line is retrieved and not end of file or end of file
IF v_char = CHR (10) AND v_position < v_clob_len OR v_position = v_clob_len + 1
THEN
Yes, exactly. That piece of code believes all CHR(10) occurences are record delimiters.
It is not smart enough to recognize that a CHR(10) within quotation marks are part of the data.
Optimally a solution should keep the CHR(10) rather than replacing with spaces, but that will be a bigger rewrite of the UTL_CSV code ;-)
If you are happy with replacing with spaces, a "simple" solution could be something like:
Declare a boolean variable in upload procedure:
v_within_text_column boolean := false;And use it like this:
WHILE (v_position <= v_clob_len + 1)
LOOP
v_char := DBMS_LOB.SUBSTR (v_clob_data, c_chunk_len, v_position);
IF v_char = '"' THEN
v_within_text_column := NOT v_within_text_column;
ELSIF v_char = CHR(10) AND v_within_text_column THEN
v_char := ' ';
END IF;
v_line := v_line || v_char;
v_position := v_position + c_chunk_len;
-- When the whole line is retrieved and not end of file or end of file
IF v_char = CHR (10) AND v_position < v_clob_len OR v_position = v_clob_len + 1
THEN
v_within_text_column := false; -- To be safe always set this on "true" linebreaks
{code}
+(This is untested code just written here in the text editor.)+
It should work by toggling a flag whether you are "within" the quotes or not and then replacing CHR(10) with a space if you are within a text column.
This way we avoid having to go through the clob more than once (it is enough that this code walks the clob one character at a time...)
It will not handle if the clob contains situations like:
{code}
abc,123,"This is a text with a quote from a man who said \"To Be,
or Not To Be\" some hundred years ago",123,xyz
{code}
Escaped quotes would need separate attention ;-) -
How to publish a swf WITHOUT an embedded player
Hi all,
I'm making some online content for a course, and it needs to be compatible with the pre-existing courseware. It can play swf, but it automatically wants to put it's OWN player on (including cc capability), and that's being thwarted by the player that Captivate puts on. Any ideas how to prevent that would be much appreciated. Thanks.
Prof paulOpen the Captivate project and from the Project > Skin Editor dialog deselect the option to Show Playback Control.
Rod Ward
http://www.infosemantics.com.au/troubleshoot-adobe-captivate -
UPK: Can it create a .swf file for embedding into Articulate?
We are combining a policy and systems training course. The policy part of the course is built in Captivate and the Systems part of the course is built in UPK. I am able to easily embed the Captivate Policy section into Articulate, but am struggling with the UPK Systems section. It appears that I can insert it as a web object, but that requires server access by our learners and it opens in a seperate window that the learners will have to close as IE won't auto close.
If UPK could output a .swf file, or if there was some way to convert the player.exe or topic.odtpc files to a .swf file, that would be great...any suggestions?Hello,
Many UPK customers are using their existing Flash content in the concept frames for topics, sections, and modules. This is quite easy to do. Since Flash content on its own isn't very easy to deploy, Adobe Flash has the option to create HTML pages that act as a "home" for the SWF files generated. You'll need to use these HTML files when you copy your Flash content into a UPK package. Once you have all of the files and folders created with the Flash content in a package, all you need to do is create a link to the main HTML page. I don't have Flash or Captivate installed, so I cannot provide exact steps, but I hope this helps.
EDIT: Oops! I just realized that I misread your question. I'm not familiar enough with Captivate or Articulate, but UPK can be treated like a collection of web pages. The UPK web pages require all the folders that come along with the published player as they contain style information in CSS files and more advanced stuff in Javascript files. If you can pull in all of the UPK files and folders, it should be possible to link to specific topics per the steps described in the UPK product documentation, specifically Content Deployment.pdf.
Best regards,
Marc
Edited by: Marc Santosusso on Aug 3, 2010 6:29 AM -
Is my swf save from hacking inside pdf?
I wonder if anyone know about the third party software that does not adhere to security settings and what degree of security breech that render the publication unsafe, I only meant to secure my animated sequence in swf not the action script, I know screen capture can record all activity but I will make it troublesome to delay if not deter from piracy.
I can't understand why we pay thousands and didn't get protected by software developer.While you may think I am shallow by asking for something that is not possible, I choose to publish it free of charge and paid by sponsorships. I am only concern about imitator who could hamper the noble publication and insert irresponsible web link to educational material, so I must include a disclaimer text before this incident.
Maybe you are looking for
-
Development and Production Requirements for a Forms/Report application
Dear all, We have an application witch run in client/Server mode using Forms/Reports 6i For 300 users.We want to migrate it on Forms/Reports 9I using Oracle 9IAS and Oracle 9IDB. I would like to have advises about material requirements of both develo
-
Application doesn't work after build (database toolkit and report gen toolkit).
I wrote an application using database toolkit and report gen toolkit to retrieve some data from a database, put into a Word doc, save the Word doc and print it. It works fine when I run the vi, but when I build and run it, it does nothing. I have
-
ADFc: No view port found when using both Browser dialog and TF inline-popup
Hi, Using JDev 11.1.1.2. We have a table with data and two commandlinks. One navigates to a task-flow-call configured to "run as dialog" in a modal inline-popup. This opens a modal inline-popup that can be used to modify the data. The second command
-
[JS][CS3] Insertion Point
HI All I need to get a hold of an insertion point between 2 characters and add some negative kerning to the characters either side. I have tried: myInsertion = myPara.characters[-3].insertionPoints; and many variations of that line, but with no joy.
-
System repair/ recovery for Satellite A300
Hello, I m new to this forum, I ve been reading through prior posts to see if anyone has a solution to my problem but none so far. I ve had a failure to boot in Win XP yesterday (single OS on my system), where I get the Toshiba screen, then nothing -