Passing columns with UTF8 code on fx formula
Hi! I'm using obiee 11.1.1.5.0
I have an analysis that contains HTML Code, some code is passed to a URL, so I need to convert diferent symbols like ó to %C3%B3 etc. I have a lot of symbols...so I can't use REPLACE function in my formula column of my analysis.
Is possible to use URLEncoder.encode("parameter value", "UTF-8") in my analysis?? How?
Anyway...which is the best solution to achieve this?
Thanks!
Append &charset=utf-8 to the URL.
If helps mark
Similar Messages
-
Execute immediate with using clause to pass column name dynamically
Hai,
Is there any way using execute immeidate to pass the column name dynamically. I used to pass the column value as dynamic with the help of "Using clause" . But if i use to pass column name, it is giving numberic error at run time. Eg,. for testing has been given below.
1. Column value as dynamic, which is working correctly.
create or replace function testexeimm (acctnum char)
return number as
acctbal number;
begin
execute immediate 'select balance from acct_master where acct_no=:a' into acctbal using acctnum;
return acctbal;
end;
2. Column name as dynamic which is not working
create or replace function testexeimm (colnam char)
return char as
acctbal char;
begin
execute immediate 'select :a from ch_acct_mast where rownum=1' into acctbal using colnam;
return acctbal;
end;
Any help in this regard will be highly appericated.
Regards
SridharSo the variable has to be numeric too:
create or replace function testexeimm (colnam char)
return number as
acctbal number;
begin
execute immediate 'select '|||colnam||' from ch_acct_mast where rownum=1' into acctbal;
return acctbal;
end;Max
http://oracleitalia.wordpress.com -
Logical Agregated Column with formula
Hi all,
I need to create an agregated column of a field that have a formula. I know you haven't understood anything so here is an example :)
Source Table:
A B C
001 'ZZ' 'ZZ'
001 'ZZ' 'ZZ'
001 'ZZ' 'YY'
002 'XX' 'TT'
003 'JJ' 'JJ'
Desired Result: (E is--> SUM(CASE WHEN B=C THEN 1 ELSE 0 END)) )
D E
001 2
002 0
003 1
What I have tried:
In the Business Model, I created a column with the option: "Use existing logical columns as the source" where I typed the formula: SUM(CASE WHEN B=C THEN 1 ELSE 0 END)), that rises the following error: "State: S1000. Código: 10058. [NQODBC] [SQL_STATE: S1000] [nQSError: 10058] A general error has occurred. [nQSError: 22019] Function Sum does not support non-numeric types. (S1000)".
I changed the formula adding CAST operators for 1 and 0 to be INT but it didn't work.
* Creating the column "E" in Answers with the formula -->SUM(CASE WHEN B=C THEN 1 ELSE 0 END)) works but I would like to have "E" already in the repository.
Thanks in advance.Use (CASE WHEN B=C THEN 1 ELSE 0 END) using physically mapped columns and not through "Use existing logical columns as the source".
Then specify sum as aggragation rule. -
Report with piped Column incl. html-code
Hi,
I have a SQL Report with a table based function behind, like:
SELECT * FROM table(my_function());
One of the column in this report is with html-code. In the Column Attributes of this column I have changed the "Display As" to "Standard Report Column". That works perfect for me. But if I enable the report to print (pdf or excel) the export shows the html-code.
Is it possible to change the html-code in the pdf/excel export to the same view like the "Display As"/"Standard Report Column"?
thanks,
carstenI dont think so.
How will you display a textbox in PDF?
If you need similar look and feel then using XML Publisher you can create a similar output.
Regards,
Abhishek -
HT3354 How do i create a column with a percentage formula
Im really struggling creating a line of columns with different formulas.
colinThe title of your post and the text of your post sound like two different questions. One is about creating a column of percentages and the other is about a "line of columns with different formulas". Neither gives enough information about the problem for anyone to provide a good answer, unless we guess at what you are asking. Here is my guess:
If B2 has a number in it and C2 has the formula =B2*5%, C2 will be 5% of B2. If you copy/paste or fill-down that formula to the rest of the column, C3 will be 5% of B3, C4 will be 5% of B4, etc.
I have no idea what "a line of columns with different formulas" means so I'm not going to hazard a guess. -
Table with a column with RANK formula does not sort properly
Hello,
I have a table in excel with Rank function that reference another column with numerical values. The results in the column (called Rank) with rank function are as expected but Sorting (ascending or descending) doesn't
work as expected on the column . The Rank gets sorted in the following order: 1,15, 2,19, 8 , 4......
Few things that I've verified are:
1. Verified that there are no text values in the column.
2. Tried changing the format to number but this still doesn't resolve the sort issue.
3. Copied the values from the Rank column to a different sheet and applying sort works as expected.
Does anyone have any idea on what could be wrong? Appreciate your help!
Thanks!Resolved the issue. I had an incorrect formula in one of the that was referenced by the Rank column.
-
Low pass filter with formula node
Hi guys.
My teacher gave me an exercise (attached) in which i have to realize a low pass filter with the formula node. He gave me also the input/output but I have no idea where to start.
Can you help me?
Attachments:
Exercise6.vi 10 KBCheck out this thread:http://forums.ni.com/t5/LabVIEW/Butterworth-Filter/m-p/2496680
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
Pass column-name as a parameter to reports
Hello,
the code below calls a report. But now I want to sort the rows in the report. For example I have a text-item in my form-modul. If I type a column-name and press the button then the rows should be sorted in the report. Is it possible tp pass column-names as parameter to reports?
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
repid := find_report_object('STATIONSTOPOLOGIE');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,RUNTIME);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'html');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_oracle-dev');
-- SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no pdeptno='||:dept.deptno);
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
END LOOP;
IF rep_status = 'FINISHED' THEN
WEB.SHOW_DOCUMENT('http://oracle-dev:8888/reports/rwservlet/getjobid'||
substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=rep_oracle-dev','_blank');
ELSE
message('Error when running report');
END IF;
END;Hi,
the work has been done in reports. You can use a lexical parameter in reports to add a condition for sorting to the query like:
select .. from .. where ... &p_order.
Then add another parameter to the report (for example p_param). Fill p_param via your interface in forms (SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, ....) with the column name. Then build a report trigger like:
if :p_param is null
then
:p_order:= null;
else
:p_order:= 'order by '||:p_param;
end if;
But have a look, that p_param can only get correct values.
Rainer -
Problem with "locked records" on Oracle with UTF8
Hello,
Can somebody help me with "record is locked by another user" problem on Oracle 10.1.0.2 ?
Oracle is installed with UTF8 character set, and is running on Windows Server 2003. Whenever I try to edit numeric column I get the message "record is locked by another user". Selecting locks from v_$locked_object view, gets empty resultset - nothing is locked.
The problem occurs only when I edit numeric columns using client applications like TOAD or my own applications. When I do the same column update by sql query, everything works fine.
Is the problem connected with client configuration or maybe with UTF8 character set, or Windows Server2003?
We also have second Oracle 10.1 server on Linux, but with WIN1250 character set, and there's no problems like that.
Thanks in advance for any help,
remgAbout the only thing you can do is automatically commit or rollback when the user presses the Enter Query key/button. In your key-entqry trigger, you would need to code this:
Clear_form(no_validate,full_rollback);
Enter_Query; -
Stopdb - Terminating with error code 13
Hi experts,
on a linux ASE System I get the following error on executing stopdb:
./stopdb: Terminating with error code 13
I didn't really find something regarding this, does anybody know what it is about?
Kind regardsThese are the last lines of <sid>log.
But as said, there is not entry created on executing stopdb.
e 'sybmgmtdb'.
00:0006:00000:00001:2015/03/24 20:30:30.63 server Database 'sybmgmtdb', checkpoint=(2347, 24), first=(23
47, 23), last=(2347, 32).
00:0006:00000:00001:2015/03/24 20:30:30.63 server Completed estimating recovery log boundaries for datab
ase 'sybmgmtdb'.
00:0006:00000:00001:2015/03/24 20:30:30.63 server Started ANALYSIS pass for database 'sybmgmtdb'.
00:0006:00000:00001:2015/03/24 20:30:30.63 server Completed ANALYSIS pass for database 'sybmgmtdb'.
00:0006:00000:00001:2015/03/24 20:30:30.63 server Log contains all committed transactions until 2015/03/
24 19:08:10.19 for database sybmgmtdb.
00:0006:00000:00001:2015/03/24 20:30:30.63 server Started REDO pass for database 'sybmgmtdb'. The total
number of log records to process is 10.
00:0006:00000:00001:2015/03/24 20:30:30.63 server Roll forward transaction '$dmpxact'.
00:0006:00000:00001:2015/03/24 20:30:30.63 server Redo pass of recovery has processed 1 committed and 0
aborted transactions.
00:0006:00000:00001:2015/03/24 20:30:30.63 server Completed REDO pass for database 'sybmgmtdb'.
00:0006:00000:00001:2015/03/24 20:30:30.69 server Timestamp for database 'sybmgmtdb' is (0x0000, 0x0000a
5b3).
00:0006:00000:00001:2015/03/24 20:30:30.69 server Recovery of database 'sybmgmtdb' will undo incomplete
nested top actions.
00:0006:00000:00001:2015/03/24 20:30:30.69 server Started recovery checkpoint for database 'sybmgmtdb'.
00:0006:00000:00001:2015/03/24 20:30:30.71 server Completed recovery checkpoint for database 'sybmgmtdb'
00:0006:00000:00001:2015/03/24 20:30:30.71 server Started filling free space info for database 'sybmgmtd
b'.
00:0006:00000:00001:2015/03/24 20:30:30.71 server Completed filling free space info for database 'sybmgm
tdb'.
00:0006:00000:00001:2015/03/24 20:30:30.72 server Started cleaning up the default data cache for databas
e 'sybmgmtdb'.
00:0006:00000:00001:2015/03/24 20:30:30.72 server Completed cleaning up the default data cache for datab
ase 'sybmgmtdb'.
00:0006:00000:00001:2015/03/24 20:30:30.73 server Checking external objects.
00:0006:00000:00001:2015/03/24 20:30:30.84 server The transaction log in the database 'sybmgmtdb' will u
se I/O size of 16 Kb.
00:0006:00000:00001:2015/03/24 20:30:30.85 server Database 'sybmgmtdb' is now online.
00:0006:00000:00001:2015/03/24 20:30:30.85 server Recovery has restored the value of 'local async prefet
ch limit' for '128K' pool in 'default data cache' from '80' to 'DEFAULT'.
00:0006:00000:00001:2015/03/24 20:30:30.85 server Recovery has restored the value of 'local async prefet
ch limit' for '16K' pool in 'default data cache' from '80' to 'DEFAULT'.
00:0006:00000:00001:2015/03/24 20:30:30.95 server Recovery has restored the original size for '128K' poo
l and '16K' pool in 'default data cache'.
00:0006:00000:00001:2015/03/24 20:30:30.95 server Recovery complete.
00:0006:00000:00001:2015/03/24 20:30:30.96 server ASE's default unicode sort order is 'binary'.
00:0006:00000:00001:2015/03/24 20:30:30.97 server ASE's default sort order is:
00:0006:00000:00001:2015/03/24 20:30:30.97 server 'binary' (ID = 25)
00:0006:00000:00001:2015/03/24 20:30:30.97 server on top of default character set:
00:0006:00000:00001:2015/03/24 20:30:30.97 server 'utf8' (ID = 190).
00:0006:00000:00001:2015/03/24 20:30:30.97 server Master device size: 400 megabytes, or 204800 virtual p
ages. (A virtual page is 2048 bytes.)
00:0006:00000:00015:2015/03/24 20:30:31.23 kernel Initializing Job Scheduler Task
00:0006:00000:00015:2015/03/24 20:30:31.26 kernel Installed Job Scheduler sequencer code version 0.29 -
29 tokens
00:0006:00000:00015:2015/03/24 20:30:31.33 kernel Job Scheduler Task started with a clean 'js_history' t
able
00:0006:00000:00015:2015/03/24 20:30:31.43 kernel Job Scheduler Task state set to running, startcount 1.
00:0006:00000:00015:2015/03/24 20:30:32.34 kernel Job Scheduler Task connected with Agent on port 4903
00:0006:00000:00001:2015/03/24 20:30:32.34 kernel Warning: Cannot set console to nonblocking mode, switc
hing to blocking mode.
00:0006:00000:00001:2015/03/24 20:30:32.34 kernel Console logging is disabled. This is controlled via th
e 'enable console logging' configuration parameter. -
Hide Matrix column With Parameter
Hi
I,m trying to hide matrix columns with parameters. If i for example have one matrix column with for example tre metrix values (Jan, Feb, and Mar). I have an expression with the values Jan, Feb, Mar with witch i would like to decide which
columns to show in the matrix column. In cases when i have a real column i use code as below in the column. But now that this three columns basically exists in one matrix column i dont know how to solve it. Anybody that has a soluiton on this preferably
some example code on the example.
IIF(INSTR(JOIN(Parameters!ColumnChoser.Value,
","),"Jan")>0,False,True)
Best regards Arne
Arne OlssonWhy not restrict data to only show the months you passed. Matrix creates columns based on data available so what you need is a filter like this in query below
WHERE ','+ @MonthList + ',' LIKE '%,' + MonthName + ',%'
assuming @MonthList as parameter through which you pass Jan,Feb etc and MonthName is column of the table containing corresponding month names used as matrix column group.
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
ODI Error: ODI-1217: Session jobname (2197102) fails with return code 700
Hi All,
We are getting the below error when running an interface in our ODI 11.1.6 environment.
ODI-1217: Session <interfacename> (2197102) fails with return code 7000.
Caused By: com.sunopsis.tools.core.exception.SnpsSimpleMessageException: ODI-17517: Error during task interpretation.
Task: 147
java.lang.Exception: BeanShell script error: Parse error at line 26, column 38. Encountered: >= BSF info: Insert flow into I$ table at line: 0 column: columnNo
at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:485)
at com.sunopsis.dwg.dbobj.SnpSessStep.createTaskLogs(SnpSessStep.java:711)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:461)
The interface is a simple pass-through one which loads data from one table to another. We have checked in the interface for any discrepancies but could not find any issue. We ran the same interface in another environment and it ran fine there. Restarting the agent also didnt help. We could not find any lead for any solutions. Any help on the issue would be highly appreciated.
P.S: Interface name has been kept generic to <jobname>
Thanks,
ShrinivasPlease give the code generated in that step ( Insert flow into I$ table.)
-
IF statement (Compare column with String)
Hi all,
i want to compare the Content of a Column with a text but i always get an error message because of a Syntax error.
It the Content of the column Approval Status is Approved the System should write in the calculated column the String "Approved"
my code:
=IF([ApprovalStatus]="Approved","Approved"," ")
can you help me ? what is wrong here?
thank you in advanceHi
yes, because you should numeric values
Approval Status
Value
Approved
0
Rejected
1
Pending
2
Draft
3
Schedule
4
https://farhanfaiz.wordpress.com/2010/12/17/sharepoint-approval-status-value-of-publishing-pages/
Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you. -
Can you help me out in letting me know what this means and how I can fix this? I found it in my tools menu under error console. It was listed as a warning, but then there was a option to highlight and evaluate the original warning message that was listed as
Warning: Expected color but found 'null'. Error in parsing value for 'background-color'. Declaration dropped.
Source File: http://www.msn.com/
When I cut and pasted message in the code evaluate box and pressed enter the warring message became an error then stated:
Error: missing ; before statement
Source File: javascript:%20Warning:%20Expected%20color%20but%20found%20'null'.%20%20Error%20in%20parsing%20value%20for%20'background-color'.%20%20Declaration%20dropped.%20Source%20File:%20http://www.msn.com/%20Line:%200
Line: 1, Column: 10
Source Code:
Warning: Expected color but found 'null'. Error in parsing value for 'background-color'. Declaration dropped. Source File: http://www.msn.com/ Line: 0
I am writing to ask for guidance on what to do and how to fix this.
I current have Firefox as my default browser. I have IE 9 and Windows 7 home ed on my HP lap top that has AOL preloaded into it as the mail provider. I am a beginner user and when I got the computer my cousin set up Mozilla and Firefox as a search browser and I like it.
I also have norton securityI think, the problem is with the order (in configuration file) of path to search headers:
/opt/oracle/product/10g/10.2.0/precomp/admin/pcscfg.cfg
sys_include=(/usr/include,/opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/4.2.0/include)
include
include=(/usr/include)
include=(/opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/4.2.0/include)
In the filesys:
./usr/include/sys:
-r--r--r-- 1 bin bin 17786 Aug 13 2007 types.h
./opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/4.2.0/include/sys:
-rw-r--r-- 1 root system 18288 Mar 22 2008 types.h
mode_t came from:
#include <sys/types.h>
sys/types.h:
* POSIX Extensions
typedef unsigned int uint_t;
typedef unsigned long ulong_t;
* POSIX and XOPEN Declarations
#if defined(_LP64) || defined(_I32LPx)
typedef uint_t mode_t; /* file attribute type */
#else
typedef ulong_t mode_t; /* (historical version) */
#endif -
Move Table Column with AppleScript in Microsoft Word
Microsoft Word has a flaw (in my opinion) with tables in that it aligns the left and right text with the margins rather than aligning the table columns with the margins. This results in sloppy tables, because the left and right borderlines lie outside the margins.
I would like to fix the word tables by
calculating the left cell padding and right cell padding in points and setting them to variables {left_pad,right_pad} respectively
move left column by left_pad to the right
move right column by right_pad to the left
The script I was working on does not work, but I will post it to show my thought process as I hone in on my solution.
tell application "Microsoft Word"
--595 points is width of A4 paper
-- Set page margin in points to variables
set {l_margin, r_margin, t_margin, b_margin} to {(get left margin of page setup of active document), get (right margin of page setup of active document), get (top margin of page setup of active document), get (bottom margin of page setup of active document)}
get {l_margin, r_margin, t_margin, b_margin}
-- Set specific Paragraph margins
-- NOTE: If you select a table thinking you wish to drag just the left margin to the right, or the right margin to the left, this code does not accomplish this because each cell has its own paragraph formatting. This code will set the margin for every single cell, because each cell has its own margins! (separate from padding).
set para_sel to paragraph format of selection
set paragraph format left indent of para_sel to (centimeters to points centimeters 0.5)
-- Aligning left and right columns of table with the margins
-- NOTE: There is a command to set left row indent, but not right row indent (very stupid of Microsoft)
end tellI have worked up something that seems to work (although I cannot promise it is the best way). Hope it helps anyone else who has this need.
tell application "Microsoft Word"
activate
set findRange to find object of selection
clear formatting findRange -- clear any previous formatting used in a find operation
set forward of findRange to true -- find forward
set style of findRange to "List Bullet" -- the style to look for
tell findRange
set gotIt to execute find find text "" -- do the search w/o matching any text
end tell
if gotIt is true then -- if a match was found
copy object selection -- copy it to the clipboard
set mySelection to (the clipboard) -- then put clipboard into a variable
set myOffset to ¬
(get selection information selection information type ¬
(horizontal position relative to page)) -- now put selection info into a variable
display dialog mySelection & return & (myOffset as text) -- then display it
end if
end tell
Maybe you are looking for
-
When my hard drive was replaced by Apple, I had to re-install iTunes myself. Then I noticed that there was a question mark on my dock where the App Store Icon was supposed to be. I did a software update, and now the question mark is gone. How do I ge
-
HT1364 How to install iTunes, but access music library from external drive?
I tried to install iTunes (11) on a new computer with Windows 8. I keep the iTunes library on an external drive. I tried to move the media files over to the newly installed iTunes within the hard drive program files, but it doesn't seem to work. T
-
How to display web interface in full screen mode
Hi, I would like to view my web interface in full screen mode in internet explorer. Is there anyway we can switch off the toolbars and URL automatically while calling the web interface Thanks SR
-
Page break, or start to next page?
Hi, I have a paragraph style that must be mirrored in a running header. So, I must create a single style for both paragraphs staying in the same page, and paragraphs starting in a new page. Therefore, I must add the break manually when needed (unless
-
How to create report from report painter??
Hi, how to create report from report painter?? from transaction code GRR1