Once more about new "correct" PAR in CS4
I'd like to know if any of you have a real life example where this new "correct" SD pixel aspect ratio has helped the way you work.
For our company (broadcasting in PAL land) it has only made a big confusion.
We try to struggle through problems that appears daily when we work together with Avid editors,
FCP users, CS2 and CS3 users, 3D animators and with our old projects
or downconverting HD material to SD etc..
Some broadcast channels (like BBC for exemple) don't accept any old Par anymore (and I guess any SD video anymore, but not sure about it).
Similar Messages
-
Once more about "black" and "white" file lists.
Hello everyone!
I've got a task to find all unauthorized executables on all workstations in domain. The good point is that workstations are identical to each other (both hard and soft), bad point is that I have to find the existence of this files on HDDs, not their
launches. And I have to use SCCM 2012 SP1 for reporting as well. That's why I cannot use the AppLocker.
Well, what I've decided to do is to take one of workstations as the sample (SW - sample workstation). All updates, patches, etc. are provided at SW first, then are spread on whole domain. All .exe (and another file masks) on SW are presumed as "white",
all others on workstations are presumed as "black" ones.What I need now is to compare white-list from SW with file list from every computer in collection.
There already exists almost ready-to-use report that I need, but it has to be modified. Unfortunately, my knowledge of MS SQL is somewhere below zero (maybe absolute zero, -274C :) ). Thats,s why I'm asking for help. I've tried to find some articles about
creating or modifying reports, but most of them are the same: "Open Report Builder, now copy and paste there the sample query from below. Wonder what a pretty report you've got!"
The report is "Compare software inventory on two computers". What modifications do I need:
- Compare not "Computer name - Computer name" but "Computer name - Select a collection"
- Exclude files from white-list (from SW) from report.
- Exclude size, version and time check - only existence and (maybe) the difference in path..
- Group by machine name.
Maybe instead of ready query you can advice me some good article like "Composing reports in Report Builder for absolute newbies", I'll appreciate it very much as well.
Thank you for your time.
Sincerely, AlexeyHello, Daniel!
Thank you very much for your answer it was really helpful.
I really would like to delegate this report to programmers department but the problem is that they know nothing about SCCM, so I should explain to them what is SCCM, what is 'device collection' and all other things. Moreover, I've managed to find the list
of functions for SCCM 2012, but I didn't find the list of SQL views for it, found only for SCCM 2007 and I'm not sure that it will suit for 2012.
Well, I'm not too old yet to start learning something new :) , so I'll try to deal with this report myself.
Thank you again for your help.
Sincerely, Alexey. -
i am new in using Mac operating system, kindly suggest ebooks, videos or audio books to me so that i can learn more about it.
any kind of help would be appriciated. i am very eager to learn.how to make ios application? and how to effectively use terminal? where does the basic programming start in Mac? what are the different tools that can help me make an Mac application and ios application.
-Thank you
Shailendra (India)Apple has got some great guides to start developing in Objective-C, used for programming OS X and iOS apps > http://developer.apple.com/library/mac/#referencelibrary/GettingStarted/RoadMapO SX/chapters/01_Introduction.html
-
why would it state under the "more about this mac" that i already have10.8.3 and then in the app store say i need to "resume" do you know what i mean? is it possible i already did download mountain lion entirely once? I am confused and don't want it twice
This is cause by the way the App Store checks to see if an application is installed on your system.
Basically when an app is installed it is in the Applications folder and this is where the MAS looks for them. So it looks at your purchase history for the apps you bought and looks in the Applications folder to see if they are installed. If an app is in your purchase history but not in the Applications folder the MAS says you need to install it.
For normal apps this works fine but the OS doesn;t install into the Applications folder. So the MAS sees you have Mountain Lion in your purchase history but it's not in the Applications folder and so it says you need to download it.
Hopefully one of these days Apple wil fix this.
regards -
Advice needed about lens correction plugin's for Aperture 2.1
Please can I have some advice about lens correction plugin's for Aperture 2.1?
I see that the Apple Aperture Downloads site promotes two:
1)LensFix 4.3
An external editor. The Aperture Downloads site calls it Lens Fix 4.3 but when you go the developers site (Kekus Digital) it only shows LensFix CI is this the same thing? Am I supposed to download the PTLens database from epaperpress.com and install manually before it is any good?
OR
2)Edit FixLens 1.6
Their site looks very poorly designed and the link from the Apple page does not go to the Aperture plugin, you have to drill down until you find it! Does it use the exif data about your lens and the zoom setting it was on automatically or do you need to configure it each time?
Which one did you buy? Was it worth it?
Thanks for your time!LensFix CI is the same thing. It has the standalone version, the PS plug-in and the Aperture plug-in.
I've used LensFix via PS for a long time. It's great but... it can be a bit buggy if the image in use is 16-bit. Often it will work on the first image or two and then crash on the next.
I am told it's not compatible with PS CS4.
Another option is PTLens. It's also a PS plug-in and an Aperture plug-in. It's supposed to be CS4 compatible.
http://epaperpress.com/ptlens/index.html
It uses the same database of lens corrections as LensFix.
FWIW, I've tended to do this kind of work in Photoshop, either round tripping an image in Aperture or exporting an image from Aperture. Since Aperture plug-ins are going to 16-bit Tiff files anyway and since most images (if they are final files for clients) need some more PS work, I just go that route.
Jon Roemer
site: http://www.jonroemer.com/
blog: http://jonroemer.typepad.com/jon_roemer/ -
Wrong information about new inc cartridge installed
When I intall a new HP original inc cassette (for example black nr 363) the computer shows that I must install a new cassette once more - either the inc writer shall "simulate" black and I must mark "continue" on the screen before the writer starts writing with all colours - and the test prints shows all colours including black in correct way.
I have also made a new instllation aof all inc cartridges after shutting down the writer (taken out all cables and inc) and also made "wasting" procedure and made new test prints that all are OK!!
What´´s wrong?
Mats Berg
[removed for privacy]China Oracle wrote:
I'm a chinese in Dalian.
I want study from Oracle WDP in china.
I found a company which address like this 'http://www.dlocp.com.cn/' ,they said that they can take the 'OCP' education and exam,but i search 'Institution Name Department Name Location ' from 'https://workforce.oracle.com/pls/wdp/rd_psp_find_member0',i could't found anymore in it.
It's not really ? or the 'Search Member' update lowly?
Thks for everyone who can tell me!
Thank you!It seems to me that verifying legitimate workforce training remains a headache, especially for some countries:
for india [http://www.oracle.com/education] - training locations - [http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=317] gives good results, for others countries (and I believe this includes China) it doen't.
Sometimes [https://workforce.oracle.com/pls/wdp/new_home.main] provides reliable results, sometimes it doesn't.
The best course of action is to try and contact the workforce development programme contact for China - See [https://workforce.oracle.com/pls/wdp/rd_psp_contact]
Notes:
- There was a case in India recently of an Institution claiming to offer it was even a Oracle Authorized Edcuation Centre when it wasn't, and I believe it was force to remove its logo's tc.
- It's not really any concern of mine, but I find it annoying/frustrating/unethical that Workforce Development Programme to not seem capable of understanding the importance of maintaining a reliable check so potential students can reliably check a training location is legitimately offering training. Legiimate students can lose out and Oracle itself loses out - only fraudstaers gain (Workforce is not connected with the Certification team)
- It is perfect possilbe to receive education on Oracle from any institution not using unauthorized training materials, however this training will not count towards hands on course requirements. -
In elements 11, I would like to know more about slide shows. Specificly individual slide duration.
Donald,
There are two ways to address Still Image Duration. One is global, and applied before Import. One would determine the approximate Duration desired, go to Edit>Preferences>General>Still Duration. Then, all Stills Imported will have that Duration (as will Titles, and New Items, like Black Video).
Once that general Duration has been set, one can still, and on an Image by Image basis, click + drag on the Still Image's Head, or Tail, to adjust the Duration. When doing that, I like to have the Info Panel open and visible, to see exactly what Duration I have changed to.
Good luck,
Hunt
PS - I think that you will love Steve's book. -
Where can I learn more about the Logic Environment?
I've been using LogicPro for a while now - since version 7 came out - and I'm ready to learn more about the mysterious Logic Environment. Anyone know of a good tutorial or website on this topic? I don't have a specific question - what I need is a general overview.
My sessions are primarily audio recording and mixing with a virtual instrument from time to time. I rarely use MIDI except to play the synths and instruments.
My environmental experience so far has been limited to creating and naming audio objects, accessing "hidden" faders and as an alternate to the mix views provided in the global and track mixers.
I'd prefer free advice but I'm not against paying if it's worth it. I have read the manual but I have a feeling that it will be more helpful once I have a better grasp on the big picture. It's a reference manual more than a how-to.
My MIDI devices are an Axiom-61 and PreSonus FaderPort.
Thanks,
John
Message was edited by: John CurleyApple has what they call "online seminars" available on the main Logic page
http://www.apple.com/logicpro/
If you look on the bottom right hand side of the page, you see a link for online seminars. You'll have to go through a regstration process, then you can watch 3 or 4 streaming Quicktime videos of people using different functions in Logic. There's nothing really in depth there, but it does show you a few useful shortcuts and methods. -
Want to know more about Business Analytics in SAP and its scope
Hi all,
I would like to know more about Business Analytics in SAP and its scope. My wife has finished her MBA (HR) and currently working as HR. She is more interested Business analytics, so please guide her how to startup her career in this field in the entry level, what prerequisites should be met and how the job market will be.
Thanks a lot in advance.
SriniDear,
Its good decision to go with Business Analytics in SAP ERP.
Both businesses and SAP AG no more requires consultants, requires efficient dynamic skilled business analytics professionals to advance in current international market. Business Strategic planning plays a major role in Business Analytics.
If you search google with "Business analytics" you will find hundreds of results which everyone of us has to read and learn what really stands for Strategy and Planning.
http://www.sap.com/corporate-en/press.epx?pressid=14491
http://marksmith.ventanaresearch.com/2011/02/25/sap-retrofits-business-intelligence-and-information-management-to-meet-it-and-business-needs/
http://www.sap.com/solutions/sapbusinessobjects/index.epx
As you mentioned, its not a difficult task for an MBA(HR) person to read and understand the subject available.
Please check and Best of luck.
Regards,
Syed Hussain.
P.S: "no more requires consultants" my intention is already plenty of consultants in market today. When competition is tough and plenty - invent new technologies and upgrade.
Edited by: Syed Hussain on Jun 22, 2011 9:21 AM -
Learning more about the features in PS touch
I was looking at PS touch, maybe for my ipod mini.
I was hoping to get more of a sense of what the features are, but it seems Adobe has replaced information with hype, giving us the Disney version of what their programs are about.
I'd like to know more about the features of PS Touch, specifically:
I assume I can use layers, but do they have modes such as darken, lighten, overlay, soft light, etc?
Can I create masks in these layers, so I have control over which part of the layer is applied to the image?
Does the curves tool have more than 3 points to adjust, can you add points as with full PS?
If I was working off my camera's memory card hooked up to the iPod mini, can I then do a save as of the image I'm working on, either saving it to the card or my device (in part to create a new image and to also keep the original) ?
It's very frustrating that this information is not more readily available to us. also, I may have missed it, but i didn't see a link to the forums from the Adobe pages, not under Learning, or about Adobe, or?
Regards, DavidIn order:
Yes, PS Touch uses layer blending modes just like in Photoshop (and Photoshop Elements). It doesn't have *every* blending mode, but the basics (like the ones you listed) are there.
The best that I can explain it as far as "masks" in PS Touch goes is that you paint your desired effect onto your image (via the Effects Paint tool). You do not need a mask layer per se as the effect is contained as you paint over the desired area. (You can adjust size, hardness, flow and opacity of the brush in this tool. If you have a tablet with pressure-senstive support, you can control size and opacity as well dynamically like you would with a Wacom graphics tablet connected to a desktop.)
You can add/subtract as many points as you want in the Curves adjustment. (There's a general Curves adjustment and one provided under the Effects Paint tool; both use the same interface for options.)
I don't think so, as the file system in PS Touch is self-contained (at least under Android; not sure about iOS). When you go to save a project, it's added into the main interface. (You can create folders to manage these projects, btw.) You can then export projects under a desired file type (like PSD or JPEG) locally or to a service like Adobe's own Creative Cloud or Dropbox. -
I want to know more about the Sanapshot tool. What is its purpose? how do I use it? I have searched Firefox Help, but did not find a clear answer.
That is not part of Firefox. It is either an add-on for Firefox which you installed, or it is a separate program you have.
Also, is '''Sanapshot tool''' the correct name? Or did you mean '''''Snapshot'''''? -
I want to know more about transaction(Container-managed).
i want to know more about transaction,how to use Container-managed
transaction?
can someone give me an example?
fish
That is not part of Firefox. It is either an add-on for Firefox which you installed, or it is a separate program you have.
Also, is '''Sanapshot tool''' the correct name? Or did you mean '''''Snapshot'''''? -
I talked to your guys yesterday about installing correct version of Lightroom 5 which I legally owned, and your guy provided me a download link (different from Creative cloud account), but somehow it was for Windows version not for Mac version. I would very much like to download a Mac version, so please send my correct web link. By the way my s. number for Lightroom 5 up is [removed], and I also have s.number for 4 up and 3 full.
The latest non-CC version of LR 5 is 5.7.1 and download links are available on the Adobe Updates page:
http://www.adobe.com/downloads/updates/
Both Mac and Win links are there.
If you are asking for a LR 5 CC link, which wouldn't require a serial number, please be more clear about that. -
Hi
I want to know the policy of replacement under 14 days of purchase iPad-3. I bought ipad-3 3 days ago before the launch of iPad-4. I want to know more about 14 days policy. I bought my iPad-3 not from the apple store , but it was the authorized apple center. If they are not the part of you so why you giving the license to sell your product. Is this not a cheating? We are purchasing Apple product. We have trust on Aplle thats why we purchase from them.
I bought Apple's iPad-3 not samsung or nokia iPad-3 so Apple is responsible not ANYONE. Because Apple dint announce anything before neither they cut off their prices on iPad-3.
Now my point is this i want to know more about 14 days exchange policy who bought their ipad-3 within 14 days from the dealers.
Now I want to replace my iPad-3 with iPad-4 because i bought just 3 days before new one is Launch.Same price less Technology 3 days before woowwwwww....
New CEO Tim Cook is taking gr8 step for its loyal customers. Tim are you working with samsung now? How much money they pay you to destroy Apple?I have rang my local apple store this morning and they have told me that they will swap out the ipad 3 to the ipad 4. I have the 4G version and im in the uk im sure that this may be the reason why they will for me due to 4g networks in uk not being compatible with the ipad 3..
Just ring your local store they will im sure help you with all the info -
Learn More About JQuary and Apex
Hi Jari,
i want to learn more about JQuary
[http://actionet.homelinux.net/htmldb/f?p=100:90|http://actionet.homelinux.net/htmldb/f?p=100:90]
i have seen that demo application, there are more features to learn more about apex ,could you please give me login details .
i want to see how to use Code and JQuary in APEX.
ThanksHi Jari,
when i run Packages_procedure then show me error
URL Enclosed SQL length exceeds allowed 32k limit.
CREATE OR REPLACE PACKAGE "CSV_UTIL"
as
By Oleg Lihvoinen:
Parse and de_quote procedures are taken from AskTom and modified
type vcArray is table of varchar2(32767) index by binary_integer;
g_words vcArray;
g_empty vcArray;
g_last_string varchar2(32767);
procedure parse( p_str in varchar2,
p_enc_by in varchar2,
p_sep in varchar2 );
procedure upload(p_file_name VARCHAR2, p_collection_name VARCHAR2, p_enc_by IN VARCHAR2, p_sep_by IN VARCHAR2, p_rows NUMBER);
function de_quote( p_str in varchar2,
p_enc_by in varchar2 )
return varchar2;
end;
CREATE OR REPLACE PACKAGE BODY "CSV_UTIL"
AS
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
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)
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
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;
This package is from AskTom web site.
Modified a bit.
CREATE OR REPLACE PACKAGE "OLS_PRINT_SYLK_FORMAT" as
type owaSylkArray is table of varchar2(2000);
procedure show(
p_query in varchar2,
p_parm_names in owaSylkArray default owaSylkArray(),
p_parm_values in owaSylkArray default owaSylkArray(),
p_sum_column in owaSylkArray default owaSylkArray(),
p_max_rows in number default 10000,
p_show_null_as in varchar2 default null,
p_show_grid in varchar2 default 'YES',
p_show_col_headers in varchar2 default 'YES',
p_font_name in varchar2 default 'Courier New',
p_widths in owaSylkArray default owaSylkArray(),
p_titles in owaSylkArray default owaSylkArray(),
p_strip_html in varchar2 default 'YES' );
procedure show(
p_cursor in integer,
p_sum_column in owaSylkArray default owaSylkArray(),
p_max_rows in number default 10000,
p_show_null_as in varchar2 default null,
p_show_grid in varchar2 default 'YES',
p_show_col_headers in varchar2 default 'YES',
p_font_name in varchar2 default 'Courier New',
p_widths in owaSylkArray default owaSylkArray(),
p_titles in owaSylkArray default owaSylkArray(),
p_strip_html in varchar2 default 'YES' );
PROCEDURE get_usable_sql (p_sql_in IN VARCHAR2, p_sql_out OUT VARCHAR2);
end ols_print_sylk_format;
CREATE OR REPLACE PACKAGE BODY "OLS_PRINT_SYLK_FORMAT" as
g_cvalue varchar2(32767);
g_desc_t dbms_sql.desc_tab2;
type vc_arr is table of varchar2(2000) index by binary_integer;
g_lengths vc_arr;
g_sums vc_arr;
procedure p( p_str in varchar2 )
is
len NUMBER;
begin
htp.p(p_str);
--dbms_output.put_line(p_str);
exception
when others then null;
end;
function build_cursor(
q in varchar2,
n in owaSylkArray,
v in owaSylkArray ) return integer is
c integer := dbms_sql.open_cursor;
i number := 1;
begin
dbms_sql.parse (c, q, dbms_sql.native);
loop
dbms_sql.bind_variable( c, n(i), v(i) );
i := i + 1;
end loop;
return c;
exception
when others then
return c;
end build_cursor;
function str_html ( line in varchar2 ) return varchar2 is
x varchar2(32767) := null;
in_html boolean := FALSE;
s varchar2(3);
begin
if line is null then
return line;
end if;
for i in 1 .. length( line ) loop
s := substr( line, i, 1 );
if in_html then
if s = '>' then
in_html := FALSE;
end if;
else
if s = '<' then
in_html := TRUE;
end if;
end if;
if not in_html and s != '>' then
x := x || s;
end if;
end loop;
return x;
end str_html;
function ite( b boolean,
t varchar2,
f varchar2 ) return varchar2 is
begin
if b then
return t;
else
return f;
end if;
end ite;
procedure print_comment( p_comment varchar2 ) is
begin
return;
p( ';' || chr(10) || '; ' || p_comment || chr(10) || ';' );
end print_comment;
procedure print_heading( font in varchar2,
grid in varchar2,
col_heading in varchar2,
titles in owaSylkArray )
is
l_title varchar2(2000);
begin
p( 'ID;DBSWHWEBSHOP' );
print_comment( 'Fonts' );
p( 'P;F' || font || ';M200' );
p( 'P;F' || font || ';M200;SB' );
p( 'P;F' || font || ';M200;SUB' );
print_comment( 'Global Formatting' );
--p( 'F;C1;FG0R;SM1' ||
p( 'F;C1;FG0L;SM0' ||
ite( upper(grid)='YES', '', ';G' ) ||
ite( upper(col_heading)='YES', '', ';H' ) );
for i in 1 .. g_desc_t.count loop
--p( 'F;C' || to_char(i+1) || ';FG0R;SM0' );
p( 'F;C' || to_char(i+1) || ';FG0L;SM0' );
end loop;
print_comment( 'Title Row' );
p( 'F;R1;FG0C;SM2' );
for i in 1 .. g_desc_t.count loop
g_lengths(i) := g_desc_t(i).col_name_len;
g_sums(i) := 0;
begin
l_title := titles(i);
exception
when others then
l_title := g_desc_t(i).col_name;
end;
if i = 1 then
--p( 'C;Y1;X2;K"' || l_title || '"' );
p( 'C;Y1;X1;K"' || l_title || '"' );
else
--p( 'C;X' || to_char(i+1) || ';K"' || l_title || '"' );
p( 'C;X' || to_char(i) || ';K"' || l_title || '"' );
end if;
end loop;
end print_heading;
function print_rows(
c in integer,
max_rows in number,
sum_columns in owaSylkArray,
show_null_as in varchar2,
strip_html in varchar2 ) return number is
row_cnt number := 0;
line varchar2(32767) := null;
n number;
begin
loop
exit when ( row_cnt >= max_rows or
dbms_sql.fetch_rows( c ) <= 0 );
row_cnt := row_cnt + 1;
print_comment( 'Row ' || row_cnt );
p( 'C;Y' || to_char(row_cnt+1) );
for i in 1 .. g_desc_t.count loop
dbms_sql.column_value( c, i, g_cvalue );
g_cvalue := trim( both chr(10) from g_cvalue );
g_cvalue := trim( both chr(13) from g_cvalue );
g_cvalue := translate( g_cvalue,
chr(13)||chr(10)||chr(9)||';', ' ' );
g_cvalue := ite( upper( strip_html ) = 'YES',
str_html( g_cvalue ),
g_cvalue );
g_lengths(i) := greatest( nvl(length(g_cvalue),
nvl(length(show_null_as),0)),
g_lengths(i) );
line := 'C;X' || to_char(i);
line := line || ';K';
begin
n := to_number( g_cvalue );
if upper( sum_columns(i)) = 'Y' then
g_sums(i) := g_sums(i) + nvl(n,0);
end if;
exception
when others then
n := null;
end;
line := line ||
ite( n is null,
ite( g_cvalue is null,
'"'||show_null_as||
'"', '"'||g_cvalue||'"' ),
n );
p( line );
end loop;
end loop;
return row_cnt;
end print_rows;
procedure print_sums(
sum_columns in owaSylkArray,
row_cnt in number ) is
begin
if sum_columns.count = 0 then
return;
end if;
print_comment( 'Totals Row' );
p( 'C;Y' || to_char(row_cnt + 4) );
p( 'C;X1;K"Totals:"' );
for i in 1 .. g_desc_t.count loop
begin
if upper(sum_columns(i)) = 'Y' then
p( 'C;X' || to_char(i+1) || ';ESUM(R3C:R' ||
to_char(row_cnt+2) || 'C)' );
end if;
exception
when others then
null;
end;
end loop;
end print_sums;
procedure print_widths( widths owaSylkArray ) is
begin
print_comment( 'Format Column Widths' );
--p( 'F;W1 1 7' );
for i in 1 .. g_desc_t.count loop
begin
--p( 'F;W' || to_char(i+1) || ' ' ||
--to_char(i+1) || ' ' ||
p( 'F;W' || to_char(i) || ' ' ||
to_char(i) || ' ' ||
to_char(to_number(widths(i))) );
exception
when others then
--p( 'F;W' || to_char(i+1) || ' ' ||
--to_char(i+1) || ' ' ||
p( 'F;W' || to_char(i) || ' ' ||
to_char(i) || ' ' ||
greatest( g_lengths(i), length( g_sums(i) )));
end;
end loop;
p( 'E' );
end print_widths;
procedure show(
p_cursor in integer,
p_sum_column in owaSylkArray default owaSylkArray(),
p_max_rows in number default 10000,
p_show_null_as in varchar2 default null,
p_show_grid in varchar2 default 'YES',
p_show_col_headers in varchar2 default 'YES',
p_font_name in varchar2 default 'Courier New',
p_widths in owaSylkArray default owaSylkArray(),
p_titles in owaSylkArray default owaSylkArray(),
p_strip_html in varchar2 default 'YES' ) is
l_row_cnt number;
l_col_cnt number;
l_status number;
begin
dbms_sql.describe_columns2( p_cursor, l_col_cnt, g_desc_t );
for i in 1 .. g_desc_t.count loop
dbms_sql.define_column( p_cursor, i, g_cvalue, 32765);
end loop;
print_heading( p_font_name,
p_show_grid,
p_show_col_headers,
p_titles );
l_status := dbms_sql.execute( p_cursor );
l_row_cnt := print_rows(
p_cursor,
p_max_rows,
p_sum_column,
p_show_null_as,
p_strip_html );
print_sums( p_sum_column, l_row_cnt );
print_widths( p_widths );
end show;
procedure show(
p_query in varchar2,
p_parm_names in owaSylkArray default owaSylkArray(),
p_parm_values in owaSylkArray default owaSylkArray(),
p_sum_column in owaSylkArray default owaSylkArray(),
p_max_rows in number default 10000,
p_show_null_as in varchar2 default null,
p_show_grid in varchar2 default 'YES',
p_show_col_headers in varchar2 default 'YES',
p_font_name in varchar2 default 'Courier New',
p_widths in owaSylkArray default owaSylkArray(),
p_titles in owaSylkArray default owaSylkArray(),
p_strip_html in varchar2 default 'YES' ) is
begin
show( p_cursor => build_cursor( p_query,
p_parm_names,
p_parm_values ),
p_sum_column => p_sum_column,
p_max_rows => p_max_rows,
p_show_null_as => p_show_null_as,
p_show_grid => p_show_grid,
p_show_col_headers => p_show_col_headers,
p_font_name => p_font_name,
p_widths => p_widths,
p_titles => p_titles,
p_strip_html => p_strip_html );
end show;
PROCEDURE get_usable_sql (p_sql_in IN VARCHAR2, p_sql_out OUT VARCHAR2)
IS
v_sql VARCHAR2 (32767);
v_names DBMS_SQL.varchar2_table;
v_pos NUMBER;
v_length NUMBER;
v_exit NUMBER;
BEGIN
v_sql := p_sql_in;
v_names := wwv_flow_utilities.get_binds (v_sql);
FOR i IN 1 .. v_names.COUNT
LOOP
<<do_it_again>>
v_pos := INSTR (LOWER (v_sql), LOWER (v_names (i)));
v_length := LENGTH (LOWER (v_names (i)));
v_sql :=
SUBSTR (v_sql, 1, v_pos - 1)
|| v_names (i)
|| SUBSTR (v_sql, v_pos + v_length);
v_sql :=
REPLACE (v_sql,
UPPER (v_names (i)),
'(SELECT v('''
|| LTRIM (v_names (i), ':')
|| ''') FROM DUAL)'
IF INSTR (LOWER (v_sql), LOWER (v_names (i))) > 0
THEN
GOTO do_it_again;
END IF;
END LOOP;
p_sql_out := v_sql;
END get_usable_sql;
end ols_print_sylk_format;
CREATE OR REPLACE PROCEDURE "PRINT_SYLK" AS
v_region_sql VARCHAR2(32767);
v_plug_source_type VARCHAR2(32767);
v_filenm VARCHAR2(2000);
l_cursor NUMBER := dbms_sql.open_cursor;
BEGIN
SELECT region_source, source_type
INTO v_region_sql, v_plug_source_type
FROM apex_application_page_regions
WHERE region_id = to_number(LTRIM(v('REGIONID'), 'R'))
AND page_id = v('APP_PAGE_ID');
-- Apex 2.1 if v_plug_source_type like 'SQL%' then
if v_plug_source_type like 'Report' then -- Apex 3.2.1
ols_print_sylk_format.get_usable_sql(v_region_sql, v_region_sql);
else
v_region_sql := upper(v_region_sql);
v_region_sql := replace(v_region_sql,'BEGIN',' ');
v_region_sql := replace(v_region_sql,'RETURN ',' ');
v_region_sql := replace(v_region_sql,';',' ');
v_region_sql := replace(v_region_sql,'END',' ');
execute immediate 'select ' || v_region_sql ||
' from dual ' into v_region_sql;
end if;
v_filenm := v('EXCELNAME') || '.xls';
owa_util.mime_header('application/vnd.ms-excel', FALSE);
-- Set up HTTP header
htp.p('Content-Disposition: attachment; filename="' || v_filenm || '"');
-- Close the headers
owa_util.http_header_close;
dbms_sql.parse(l_cursor, v_region_sql, dbms_sql.native);
ols_print_sylk_format.SHOW(p_cursor => l_cursor, p_max_rows => 60000);
dbms_sql.close_cursor(l_cursor);
HTMLDB_APPLICATION.g_unrecoverable_error := TRUE;
END PRINT_SYLK;
How can i remove it.
Thanks
Maybe you are looking for
-
I lost much of the music in the itunes library on my computer, but all songs are on my ipod. Am I able to safely put the songs from my ipod back to my itunes music library ( safely)??
-
Group Titles not working in Marker lists
Framemaker 7.2 I've created a special alphabetical list of markers, using a custom name for the marker. The list generates just fine and I have the page formated as I want, except for the need to add group titles. I created, on the resource page, a
-
How can I hold values in a variable
I am looking for someone to point me in the right direction - I'm somewhat new to Java, but am a dinosaur from the mainframe, and sometimes get frustrated at the amount of effort I need to go through to do something that would have been simple on the
-
Null Pointer exception in accessing EJB in 9.0.3
Hi The application is working fine with 9.0.2, but when I deployed in 9.0.3 it is giving Null Pointer Exception, throwing the error message in Stack Trace. ========================================================== java.lang.NullPointerException
-
Trouble with contacts photos in iOS5
Hi everyone, Since updating to iOS 5 last night every time one of my contacts called me for which I have a picture for, their picture becaomes the wallpaper while I am on the call with them. Previosuly, it was just a little thumbnail up by their nam