Need help with User Response function
I have the following formula:
=UserResponse(DataProvider([Segment Name]);"Effective Date")
The user response is a date which is displayed like this:
M/dd/yyyy h:mm:ss a
I would like to display the date as Mmm-dd-yyyy with no time at the end.
When I tried this formula:
=FormatDate(UserResponse(DataProvider([Segment Name]);"Effective Date");"Mmm-dd-yyyy")
I get the "invalid data type" message. I think I understand why (UserResponse isn't a date function), but I'm unable to come up with another formula that will do what I require.
When I tried this formula:
=ToDate((UserResponse(DataProvider([Segment Name]);"Effective Date"));"Mmm-dd-yyyy")
I get #ERROR in the cell.
I also tried formatting the cell to no effect.
Hi Ellen,
You have to use the format that the user is inputing in, and then format it as you would like it
so this should work.
FormatDate(ToDate((UserResponse(DataProvider(Segment Name);"Effective Date"));"M/dd/yyyy h:mm:ss a");"Mmm-dd-yyyy")
Regards
Alan
Similar Messages
-
Need help with user defined function
Hello SDN,
I need some help with a user-defined function. My source message contains multiple
generic records (1000 char string), and my target message is 1 header record,
then multiple generic records. See description of source and target messages below:
Source:
GenericRecordTable 1..unbounded
Row (1000 char string)
Target:
Field1 (char5)
Field2 (char5)
Field3 (char5)
IT_Data
GenericRecordTable 1..unbounded
Row (1000 char string)
Basically, what I need to do in my user defined funtion is to map the first record
in my source record to the 3 header fields, then map all of the rest of the records
(starting from line 2) into the GenericRecordTable.
Can someone please help me with the code for the user defined function(s) for this
mapping?
Thank you.hi,
Activities
1. To create a new user-defined function, in the data-flow editor, choose Create New Function (This
graphic is explained in the accompanying text), which is located on the lower left-hand side of the
screen. In the menu, choose Simple Function or Advanced Function.
2. In the window that appears, specify the attributes of the new function:
Name
Technical name of the function. The name is displayed in the function chooser and on the data-flow
object.
Description
Description of how the function is used.
Cache
Function type (see above)
Argument Count
In this table, you specify the number of input values the function can process, and name them. All
functions are of type String.
3. In the window that appears, you can create Java source code:
a. You can import Java packages to your methods from the Imports input field, by specifying them
separated by a comma or semi-colon:
You do not need to import the packages java.lang., java.util., java.io., and java.lang.reflect. since
all message mappings require these packages and therefore import them. You should be able to
access standard JDK and J2EE packages of the SAP Web Application Server by simply specifying the
package under Import. In other words, you do not have to import it as an archive into the Integration
Repository. You can also access classes of the SAP XML Toolkit, the SAP Java Connector, and the
SAP Logging Service (see also: Runtime Environment (Java-Mappings)).
In addition to the standard packages, you can also specify Java packages that you have imported as
archives and that are located in the same, or in an underlying software component version as the
message mapping.
b. Create your Java source text in the editor window or copy source text from another editor.
4. Confirm with Save and Close.
5. User-defined functions are limited to the message mapping in which you created the function. To
save the new function, save the message mapping.
6. To test the function, use the test environment.
The new function is now visible in the User-Defined function category. When you select this category,
a corresponding button is displayed in the function chooser pushbutton bar. To edit, delete, or add the
function to the data-flow editor, choose the arrow next to the button and select from the list box
displayed.
http://help.sap.com/saphelp_nw04/helpdata/en/d9/718e40496f6f1de10000000a1550b0/content.htm
http://java.sun.com/j2se/1.5.0/docs/api/
/people/krishna.moorthyp/blog/2006/07/29/documentation-html-editor-in-xi
/people/sap.user72/blog/2006/02/06/xi-mapping-tool-exports
http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
UDF -
http://help.sap.com/saphelp_nw04/helpdata/en/22/e127f28b572243b4324879c6bf05a0/content.htm
Regards -
Need Help With Save As function Very Important
i working on a project and i have to create a Save As function for it. When you click on Save As its supposed to open a dialog window where u can choose the where you would like to save the file and what you would like to name it. I know there is alot wrong with my code but i'm not sure on how to fix it so any and all help is greatly appreciated
private void doSaveAs(){
//display file dialog
FileDialog fDialog2 = new FileDialog (this, "Save As...", FileDialog.SAVE);
fDialog2.setVisible(true);
//Set the file name chosen by user
String name = fDialog2.getFile();
// user canceled file selection, return without doing anything.
if(name == null)
return;
fileName = fDialog2.getDirectory() + name;
// Try to create a file writer
FileWriter writer = null;
try{
writer = new FileWriter(fileName);
} catch (IOException ioe){
MessageDialog dialog = new MessageDialog (this, "Error Message",
"Error writing the file: "+ioe.toString());
dialog.setVisible(true);
return;
BufferedWriter bWriter = new BufferedWriter(writer);
//Try to write the file
StringBuffer textBuffer = new StringBuffer();
try {
String textLine = bWriter.write(2);
while (textLine != null) {
textBuffer.append(textLine + '\n');
textLine = bWriter.write(name);
bWriter.close();
writer.close();
} catch (IOException ioe){
MessageDialog dialog = new MessageDialog (this, "Error Message", "Error writing file: "+ioe.toString());
dialog.setVisible(true);
return;
setTitle("JavaEdit " +name); // reset frame title
text.setText(textBuffer.toString());
nullAnd again with indentation
private void doSaveAs(){
//display file dialog
FileDialog fDialog2 = new FileDialog (this, "Save As...",
FileDialog.SAVE);
fDialog2.setVisible(true);
//Set the file name chosen by user
String name = fDialog2.getFile();
// user canceled file selection, return without doing anything.
if(name == null)
return;
fileName = fDialog2.getDirectory() + name;
// Try to create a file writer
FileWriter writer = null;
try{
writer = new FileWriter(fileName);
} catch (IOException ioe){
MessageDialog dialog = new MessageDialog (this, "Error Message", "Error writing the file: "+ioe.toString());
dialog.setVisible(true);
return;
BufferedWriter bWriter = new BufferedWriter(writer);
//Try to write the file
StringBuffer textBuffer = new StringBuffer();
try {
String textLine = bWriter.write(2);
while (textLine != null) {
textBuffer.append(textLine + '\n');
textLine = bWriter.write(name);
bWriter.close();
writer.close();
} catch (IOException ioe){
MessageDialog dialog = new MessageDialog (this, "Error Message", "Error writing file: "+ioe.toString());
dialog.setVisible(true);
return;
setTitle("JavaEdit " +name); // reset frame title
text.setText(textBuffer.toString());
} -
Need help with User Defined Aggregates - Statistical Mode
I would like to use User Defined Aggregates (UDAG) to calculate the Statistical Mode. The mode is the most frequent value among a set of observations.
http://en.wikipedia.org/wiki/Mode_(statistics)
In my application I aggregate an address level table of 130 million records to a ZIP4 level table of roughly 36 million records. Some ZIP4s will have 1 record, some may have 1000+ records. I need to use statistical modes to pick the most frequent values for some of the attribute fields.
Presently I am using an approach from AskTom using the Analytic functions combined with nesting subqueries. The code works but it's cumbersome. I feel user defined aggregates should be able to perform a simpler more straightforward integration into SQL queries.
I've reviewed several of the other posts in this forum on User Defined Aggregates. I feel I could write a procedure that calculates and average or merely concatenates strings. But this particular application of the UDAGs is stumping me. Rather than just increased a running total or count or concatenating a master string, you'd have to keep every distinct values and a count for how many times that value occured. Then evaluate those items to pick the most frequent to pass to output. I'm finding it difficult as a novice.
Any, I'll post a quick example using the present approach that I want to replace with a UDAG:
Here's a small table:
DRD> desc statmodetest
Name Null? Type
ID NUMBER
STATE VARCHAR2(2)
REGION VARCHAR2(1)
1* select * from statmodetest
DRD> /
ID ST REG
1 TX W
2 MN W
3 CA W
4 VA E
5 VA E
6 KY E
7 MN W
8 FL E
9 OK W
10 NC E
11 TX W
12 WI E
13 CA W
14 MI E
15 FL E
16 FL E
17 TN E
18 FL E
19 WI E
20 MA E
Now here's a query approach that gets the MODE State value for each Region.
1 SELECT DISTINCT region, mode_state, mode_state_cnt FROM (
2 SELECT region,
3 FIRST_VALUE(state) OVER (PARTITION BY region ORDER BY stcnt DESC) AS mode_state,
4 FIRST_VALUE(stcnt) OVER (PARTITION BY region ORDER BY stcnt DESC) AS mode_state_cnt
5 FROM (
6 select id, state, region, COUNT(state) OVER (PARTITION BY region, state) AS stcnt
7* from statmodetest t ) )
DRD> /
R MO MODE_STATE_CNT
W CA 2
E FL 4
What I'd like to be able to do is have a UDAG that supports this style query:
SELECT region, UDAGMODE(state)
FROM statmodetest
GROUP BY region ;
Thanks,
PaulThis is not what you want..?
SQL> select * from test;
ID STATU REGIO
1 TX W
2 MN W
3 CA W
4 VA E
5 VA E
6 KY E
7 MN W
8 FL E
9 OK W
10 NC E
11 TX W
12 WI E
13 CA W
14 MI E
15 FL E
16 FL E
17 TN E
18 FL E
19 WI E
20 MA E
20 rows selected.
SQL> select region,max(status) keep(dense_rank first order by cnt desc,status) st,
2 max(cnt)
3 from(
4 select region,status,count(*) cnt
5 from test
6 group by region,status)
7 group by region;
REGIO ST MAX(CNT)
E FL 4
W CA 2
<br>
<br>
Or I misread..? -
Need help with XML response to refresh document with context and prompts
I've been working with the Restful api for a few weeks now and have been able to figure out most of what I need to automate testing of our reports. However, one task that I have not been able to figure out is how to refresh a document that contains both a context and two prompts for dates.
Here is what I have tried, and what the API responds with.
1) I queried the API for this document's parameters using the following call after logging in -
headers = {:accept=>'application/xml', :content_type=>'application/xml', :x_sap_logontoken=>@token}
url = "http://our.url.net:6405/biprws/raylight/v1/documents/12345/parameters"
RestClient.get(url, headers)
The response from the API is:
<parameters>
<parameter dpId="DP0" type="context" optional="false">
<id>0</id>
<technicalName>cQuery 1</technicalName>
<name>Select a context</name>
<answer type="Text" constrained="true">
<info cardinality="Single">
<lov partial="false">
<values>
<value id="CTX_1">LOAN</value>
<value id="CTX_9">LOAN_APPLICATION</value>
</values>
</lov>
<values>
<value id="CTX_1">LOAN</value>
<value id="CTX_9">LOAN_APPLICATION</value>
</values>
<previous>
<value id="CTX_9">LOAN_APPLICATION</value>
</previous>
</info>
<values>
<value id="CTX_9">LOAN_APPLICATION</value>
</values>
</answer>
</parameter>
</parameters>
2) This tells me I need to supply a context, so I then replace my RestClient.get call with a RestClient.put call with the following payload:
<parameters>
<parameter>
<id>0</id>
<answer>
<values>
<value id=\"CTX_9\"/>
</values>
</answer>
</parameter>
</parameters>
3) This satisfies the context portion of the refresh. The API replies with the following response, telling me I need to answer two prompts -
<parameters>
<parameter dpId=\"DP0\" type=\"prompt\" optional=\"false\">
<id>1</id>
<technicalName>psEnter value(s) for Start Date of Application Received Date</technicalName>
<name>Enter value(s) for Start Date of Application Received Date</name>
<answer type=\"DateTime\" constrained=\"false\">\
<info cardinality=\"Single\"/>
</answer>
</parameter>
<parameter dpId=\"DP0\" type=\"prompt\" optional=\"false\">
<id>2</id>
<technicalName>psEnter value for End Date of Application Received Date</technicalName>
<name>Enter value for End Date of Application Received Date</name>\
<answer type=\"DateTime\" constrained=\"false\">
<info cardinality=\"Single\"/>
</answer>
</parameter>
</parameters>
4) Here is where I am having problems. I have tried all kinds of permutations of the below payload/response body. All I ever get from the API is a 400 - BadResponse error.
<parameters>
<parameter>
<id>0</id>
<answer>
<values>
<value id=\"CTX_9\"/>
</values>
</answer>
</parameter>
</parameters>
<parameters>
<parameter type=\"prompt\">
<id > 1 </ id>
<answer type=\"DateTime\">
<values>
<value>2012-06-11T09:50:54.000-04:00</value>
</values>
</answer>
</parameter>
<parameter type=\"prompt\">
<id > 2 </ id>
<answer type=\"DateTime\">
<values>
<value>2014-07-11T09:50:54.967-04:00</value>
</values>
</answer>
</parameter>
</parameters>
I am not very good with XML and the terminology around it, and I haven't received much training around using the Restful API other than the SDK documentation. I have a feeling there is something very basic that Im missing here. What is the correct XML needed in the response body to properly refresh the document?If you are more confortable with JSON, Raylight supports it as well.
Best regards,
Anthony -
Need help with an array function
I'm using the array index function and i would like to be able to control what elements go out on it. For example, if i wanted only the first element to go out, i don't want the second element to send out zero. Is there any way i can control what elements leave the array index function. I also don't understand what the index inputs do on that function either. If anyone has any advice on the application or can modify it in any way, please help.
Attachments:
Array and for loop.vi 1190 KBThe index inputs determine what elements are retrieved. For example of you would wire a 10 and a 20 to your two index inputs, you would bet element #10 and element #20 of your array. You can resize it to get any desired number of elements.
If you don't wire the index inputs, you'll get the first two elements.
If you only wire the top index input (e.g a 10), you'll get element #10 and #11.
LabVIEW Champion . Do more with less code and in less time . -
Need help with User defined class
I need to create two Java classes. The first class will be used as a template for objects which represent students, the second will be a program which creates two student object and calls some of their methods.
Create a file called "Student.java" and in it definr a class called Student which has the following Attributes:
* a String variable which can hold the student's name
* a double variable which can hold the studnet's exam mark.
In the student class, define public methods as follows:
1 a constructor method which accepts no arguments. This method should initialise the student's name to "unknown" and set the examination mark to zero
2 A constructor method which accepts 2 arguments- the first being a string representing the student's name and the other being a double which represents their exam mark. These arguments should be used to initialise the state variables with one proviso- the exam mark must not be set to a number outside the range 0...100. If the double argument is outside this range,set the exam mark attribute to 0.
3 A reader method which returns the students name
4 A reader method which returns the students exam mark.
5 A writer method which sets the student's name
6 A writer method which sets the student's eeam mark. If the exam mark argument is outside the the 0...100 range,the exam mark attibute should not be modified.
7 A method which returns the studnet's grade. The grade is a string such as "HD" or "FL" which can be determined from the following table.
Grade Exam Mark
HD 85..100
DI 75..84
CR 65..74
PS 50..64
FL 0..49
Part2 Client Code
Write a program in a file called "TestStudent.java"
Make sure the file is in the same directory as tne "Student.java" file
In the main method of "TestStudent.java" write code to do each of the following tasks
1 Create a student object using the no argument constructor.
2 Print this student's name and their exam mark
3 Create another student object using the other constructor-supply your own name as the string argument and whatever exam mark you like as the double argument
4 Print this studnet's name and their exam mark
5 Change the exam mark of this student to 50 and print their exam mark and grade.
6 Change the examination mark of this studnet to 256 and print their exam mark and grade.
Can someone please help
gooberSorry, I have sent you the wrong version. Try this,
public class Student {
private String name;
private double examMark;
public Student() {
name = "unknown";
examMark = 0.0;
public Student(String n, double em) {
name = n;
if(em >0 && em < 100) {
examMark = em;
} else {
examMark = 0.0;
public String getName() {
return name;
public void setName(String n) {
name = n;
public double getExamMark() {
return examMark;
public void setExamMark(double em) {
if(em >0 && em < 100) {
examMark = em;
} else {
examMark = 0.0;
public String getGrade() {
if ( examMark > 84) return "HD";
else if(examMark > 74) return "DI";
else if(examMark > 64) return "CR";
else if(examMark > 49) return "PS";
else return "FL";
} and
class TestStudent {
public static void main(String a[]) {
Student st = new Student();
System.out.println("Student Name is : "+st.getName());
System.out.println("Student Marks is : "+st.getExamMark());
Student st1 = new Student("XXXX",78);
System.out.println("Student Name is : "+st1.getName());
System.out.println("Student Marks is : "+st1.getExamMark());
st1.setExamMark(67);
System.out.println("Student Marks is : "+st1.getExamMark());
System.out.println("Student Grade is : "+st1.getGrade());
st1.setExamMark(256);
System.out.println("Student Marks is : "+st1.getExamMark());
System.out.println("Student Grade is : "+st1.getGrade());
}Hope this helps.
Sudha -
Need help with user ID for this forum
I have problem that I can't seem to get resolved online which involves my Apple Support user ID... Sorry to post this here, but I don't know where to go for help.
I have been a member of the apple community for a long time (since 2002) but my login ID and user ID seem to have been disconnected. Happened when I tried to sign in once and had all kinds of problems. Now I've created a new user ID but would like my old one back. I've tried several times to get my original user ID back, but there seems to be no way to get it back... If I sign up for the user ID, it tells me that it is taken (because its mine).
Can you help me? Is there a real person I can contact who can help me?
Thanks for any support.try calling Apple suport
-
Need help with PL/SQL functions
Hi,
Is there a way to compare if a set of elements is present in another set using some function?
Example: Is it possible to find out if all words present in 'BANQUE SAFRA SA' is present in 'BANQUE JACOB SAFRA (SUISSE) SA' using some function in Oracle 9i?
Any suggestion would be appreciated.
Thank you,
AnushreeBoneist,
your solution would giv "false positives":
SQL> with my_tab as (select 'BANQUE JACOB SAFRA (SUISSE) SA' col1 from dual union all
2 select 'BANQUE SAFRA (SUISSE) SB' col1 from dual union all
3 select 'BANQUE SAFRA SA' col1 from dual union all
4 select 'BANQUE SAFRANE SA' col1 from dual)
5 -- end of mimicking your data. USE SQL below!
6 select * from my_tab
7 where col1 like replace('BANQUE SAFRA SA', ' ', '%');
COL1
BANQUE JACOB SAFRA (SUISSE) SA
BANQUE SAFRA SA
BANQUE SAFRANE SA Here is a PL/SQL funcion that does not expect the words in the specific order:
SQL> DECLARE
2 FUNCTION strInStr(
3 a IN VARCHAR2,
4 b IN VARCHAR2)
5 RETURN VARCHAR2
6 IS
7 i PLS_INTEGER;
8 startpos PLS_INTEGER;
9 endpos PLS_INTEGER;
10 word VARCHAR2(4000);
11 BEGIN
12 FOR i IN 1 .. LENGTH(a) - LENGTH(REPLACE(a, ' ')) + 1 LOOP
13 startpos := INSTR(' ' || a, ' ', 1, i);
14 endpos := INSTR(a || ' ', ' ', 1, i);
15 word := SUBSTR(a, startpos, endpos - startpos);
16
17 IF ' ' || b || ' ' NOT LIKE '% ' || word || ' %' THEN
18 RETURN 'N';
19 END IF;
20 END LOOP;
21
22 RETURN 'Y';
23 END;
24 BEGIN
25 DBMS_OUTPUT.put_line(strInStr('BANQUE SAFRA SA', 'BANQUE JACOB SAFRA (SUISSE) SA'));
26 DBMS_OUTPUT.put_line(strInStr('SAFRA BANQUE SA', 'BANQUE JACOB SAFRA (SUISSE) SA'));
27 DBMS_OUTPUT.put_line(strInStr('BANQUE SAFRA FRANCE', 'BANQUE JACOB SAFRA (SUISSE) SA'));
28 DBMS_OUTPUT.put_line(strInStr('QUE SAFRA SA', 'BANQUE JACOB SAFRA (SUISSE) SA'));
29 END;
30 /
Y
Y
N
N -
Need help with an analytic function I think
I have a table as such:
BID, POSITIONDATE
1 3/10/2009
1 3/11/2009
1 3/12/2009
1 3/13/2009
1 3/13/2009
1 3/13/2009
1 3/14/2009
I need to select a count(*) from this table for EACH day in MARCH, but the table is missing the days of 3/1 - 3/9
I need my result set to be:
BID, POSITIONDATE, COUNT(*)
1 3/1/2009 0
1 3/2/2009 0
1 3/3/2009 0
1 3/10/2009 1
1 3/11/2009 1
1 3/12/2009 1
1 3/13/2009 3
1 3/14/2009 1
I thought LAG would do it but I cannot figure out how to get it to "make up the dates of 3/1-3/9 since those dates aren't actually in the table)
I also tried creating a "FAKE" table (T1) with the dates of 3/1 -> 3/31 and outer joining to it, but that didn't seem to work either.
Any tips/suggestions??
Chriswith t1
as
select to_date('03/01/2009','MM/DD/YYYY')-1 + level as Date1
from dual
where (to_date('03/01/2009','MM/DD/YYYY')-1+level) <= last_day(to_date('03/01/2009','MM/DD/YYYY'))
connect by level<=31
select * from t1
DATE1
3/1/2009
3/2/2009
3/3/2009
3/4/2009
3/5/2009
3/6/2009
3/7/2009
3/8/2009
3/9/2009
3/10/2009
3/11/2009
3/12/2009
3/13/2009
3/14/2009
3/15/2009
3/16/2009
3/17/2009
3/18/2009
3/19/2009
3/20/2009
3/21/2009
3/22/2009
3/23/2009
3/24/2009
3/25/2009
3/26/2009
3/27/2009
3/28/2009
3/29/2009
3/30/2009
3/31/2009
31 Rows Selected
with t1
as
select to_date('02/01/2009','MM/DD/YYYY')-1 + level as Date1
from dual
where (to_date('02/01/2009','MM/DD/YYYY')-1+level) <= last_day(to_date('02/01/2009','MM/DD/YYYY'))
connect by level<=31
select * from t1
DATE1
2/1/2009
2/2/2009
2/3/2009
2/4/2009
2/5/2009
2/6/2009
2/7/2009
2/8/2009
2/9/2009
2/10/2009
2/11/2009
2/12/2009
2/13/2009
2/14/2009
2/15/2009
2/16/2009
2/17/2009
2/18/2009
2/19/2009
2/20/2009
2/21/2009
2/22/2009
2/23/2009
2/24/2009
2/25/2009
2/26/2009
2/27/2009
2/28/2009
28 Rows Selected
I probably should change the variable to MM/YYYY and leave out day I guess, because if they put a day larger than 1, then I would end up with less than a full month. -
Need help with oscillating grow function in effects
I am using the grow effect on a mouse over instead of a
click. I used the same code that was used in the example
distributed with the Spry 1.6 release. In the example it used an
onmouseclick. I am using an onmouseover and onmouseout to grow and
shrink the images.
At first I used one function and just called the same
function for onmouseover and onmouseout and specified the toggle
option. The problem with this, is that the image can get "stuck"
into the reverse state, and as you mouseover it shinks and
onmouseout it grows.
So I used two different functions for onmouseover and
onmouseout. One grows and the other shrinks. This works ok if you
use the toggle option set to true on at least one of the two
functions. The problem is that you can still get one of the images
stuck in the wrong size and it toggles the wrong way. If you set
them both to false, the image oscillates between the two states as
you mouseout. I assumed that setting toggle to false for both the
grow and shrink would avoid images stuck in the wrong direction,
but it is causing this strange oscillation. Am I using this option
wrong?
Thank you in advance for any clues you can provide....
Here are my code snippets:
on the Page:
<div class="thumbnails"><div><img height="24"
alt="your friend's icon" onmouseover="toggleThumbU(this)"
onmouseout="toggleThumbD(this)" id="img${status.index}"
style="padding:2px;" src="${contact.imageUrl}"
/></div></div>
In my Javascript code:
var effects = [];
function toggleThumbU(targetElement)
if (typeof effects[targetElement.id] == 'undefined')
effects[targetElement.id] = new
Spry.Effect.Grow(targetElement, {duration: 200, from: '100%', to:
'340%', toggle: false, setup:setzindex, finish:resetzindex});
effects[targetElement.id].start();
function toggleThumbD(targetElement)
if (typeof effects[targetElement.id] == 'undefined')
effects[targetElement.id] = new
Spry.Effect.Grow(targetElement, {duration: 200, from: '340%', to:
'100%', toggle: false, setup:setzindex, finish:resetzindex});
effects[targetElement.id].start();I have the same issue, anyone know a way around this? I have
a image i wish to grow onmouse over, then using the same behavior
but shrink with mouseout, it gets some wierd issues, like if you
put the mouse in between it oscillates back and forth, its not
smooth. -
Help with User Defined Function
Hi
I want to code a UDF which comapres an array that contains "X" or empty values,with an array which contains only "X" and return a boolean array with boolean arguments (true/false)
I tried using the exisiting functions but I didnt find something relevant
Thx,ShaiFunc 1: public void ChkForX(String[] a,ResultList result,Container container){
int flag = 0;
int count = 0;
for (int i = 0; i<a.length; i++)
if(a<i>equals("X"))
{flag = 0; }
else
{flag = 1;
count = count + 1;
if(count > 0)
result.addValue("1");
else
{result.addValue("0");
Func 2:
public void ChkSpaces(String[] a,ResultList result,Container container){
int flag = 0;
int count = 0;
for (int i = 0; i<a.length; i++)
if(a<i>equals(" "))
{flag = 0; }
else
{flag = 1;
count = count + 1;
if(count > 0)
result.addValue("2");
else
{result.addValue("3");
Kinda use both these functions with the same input then further build your logic ... but still i dont think you will get a array as output using UDF -
Need help with ora-hash function
I am doing a insert operation..in the actual view i came up with this expression ORA_HASH(c.cpt_code_grp_dscrptn
||c.cpt_code_grp_id) AS bwrse_link_idntfr
i was given to insert browse_link_idntfr value as 2910441270
how to proceed with the insertion in the actual table for those two columns?964145 wrote:
I am doing a insert operation..in the actual view i came up with this expression ORA_HASH(c.cpt_code_grp_dscrptn
||c.cpt_code_grp_id) AS bwrse_link_idntfr
i was given to insert browse_link_idntfr value as 2910441270
how to proceed with the insertion in the actual table for those two columns?HUH?
How do I ask a question on the forums?
SQL and PL/SQL FAQ -
Need help with user variable in the
Hi All,
We have 2 user entry variables of which one is an authorization variable. We want to avoid this 'user entry' and values directly taken ...how can this be passed in the URL. Is there any way that we can achieve this.
Thanks in advance
Edited by: rakshita hegde on Apr 18, 2009 8:44 AMSame thread in Expert Forums » Business Intelligence » BI Suite - Business Explorer ...
-
Need Help with Connect by function oracle 10g
Hi all.
I've a recursive table containing follow data:
ID ParentID PARENT_NAME PAGE_NAME
1363416 1 Central de Relacionamento Back Office
1363416 1 Central de Relacionamento Campanhas da Central de Relacionamento
1363416 1 Central de Relacionamento Cartas de Cobrança
1363416 1 Central de Relacionamento Cartão Pernambucanas
1363416 1 Central de Relacionamento Comunicados
1363416 1 Central de Relacionamento Localização
1363416 1 Central de Relacionamento Lojas
1363416 1 Central de Relacionamento Monitoria Qualidade
1363416 1 Central de Relacionamento PDD - Provisão para Devedores Duvidosos
1363416 1 Central de Relacionamento Pessoas
1363416 1 Central de Relacionamento Tabela de desconto para repactuação
1363416 1 Central de Relacionamento Telefones Úteis
1363416 1 Central de Relacionamento Voip
1363416 1 Central de Relacionamento Últimas Notícias
2554644 1363416 Telefones Úteis Escritorios de Cobrança
2554644 1363416 Telefones Úteis Ramais dos Supervisores
2554644 1363416 Telefones Úteis Telefone das Seguradoras
2554661 1363416 Monitoria Qualidade Check list
2554661 1363416 Monitoria Qualidade Circularização
2554661 1363416 Monitoria Qualidade Destaques em Qualidade
2554661 1363416 Monitoria Qualidade Dicas
2554661 1363416 Monitoria Qualidade Elogios
2554661 1363416 Monitoria Qualidade Estratégia da Monitoria
2554661 1363416 Monitoria Qualidade Etapas do Atendimento
2554661 1363416 Monitoria Qualidade O presente
2554661 1363416 Monitoria Qualidade Pontuação
2554661 1363416 Monitoria Qualidade Premiação
2554661 1363416 Monitoria Qualidade Quadro de Reclamações
2554661 1363416 Monitoria Qualidade Reciclagem 2008
2554661 1363416 Monitoria Qualidade Sugestão de frases para atendimento
2920342 18955293 Aniversariantes do Mês Escala de festa de aniversariantes do mês
2925074 18955293 Treinamento Inicial Projeto Tutor
2925111 68690269 Cartão Pernambucanas Anuidade
2925111 68690269 Cartão Pernambucanas Atendimento ao Cliente
2925111 68690269 Cartão Pernambucanas Bloqueio do Cartão
2925111 68690269 Cartão Pernambucanas Limite do cliente e Composição do Minimo
2925111 68690269 Cartão Pernambucanas Pagamentos
2925111 68690269 Cartão Pernambucanas Produtos Financeiros
2925111 68690269 Cartão Pernambucanas Repactuação
2925111 68690269 Cartão Pernambucanas Tarifas e Taxas
2927101 2925111 Pagamentos Dúvidas sobre pagamento não baixado
5429937 1363416 Cartas de Cobrança Modelo de carta que pode ser utilizada pela loja
5429937 1363416 Cartas de Cobrança Regua de Cobrança CRP
5431168 17275745 Cartas de Cobrança - 10 dias em atraso Cliente Alto ticket - 10 dias
5431168 17275745 Cartas de Cobrança - 10 dias em atraso Cliente Antigo - 10 dias
5431168 17275745 Cartas de Cobrança - 10 dias em atraso Cliente Novo com PPA
5431168 17275745 Cartas de Cobrança - 10 dias em atraso Cliente Padrão - 10 dias
5431251 17275745 Carta de Cobrança - 50 dias em atraso Cliente Alto ticket- 50 dias
5431251 17275745 Carta de Cobrança - 50 dias em atraso Cliente Antigo - 50 dias
5431251 17275745 Carta de Cobrança - 50 dias em atraso Cliente Padrão- 50 dias
5431251 17275745 Carta de Cobrança - 50 dias em atraso Cliente novo com PPA - 50 dias
5431521 17275745 Carta de Cobrança - 75 dias Cliente Alto ticket -75 dias
5431521 17275745 Carta de Cobrança - 75 dias Cliente Antigo - 75 dias
5431521 17275745 Carta de Cobrança - 75 dias Cliente Padrão - 75 dias
5431521 17275745 Carta de Cobrança - 75 dias Cliente novo com PPA - 75 dias
5431575 17275745 Carta de Cobrança - 90 dias Cliente Alto Ticket - 90 dias
5431575 17275745 Carta de Cobrança - 90 dias Cliente Antigo - 90 dias
5431575 17275745 Carta de Cobrança - 90 dias Cliente Padrão - 90 dias
5431575 17275745 Carta de Cobrança - 90 dias Cliente novo com PPA - 90 dias
9484330 1363416 Últimas Notícias Ura Ativa
11350383 1363416 Campanhas da Central de Relacionamento Campanha de Incentivo 2009
11350383 1363416 Campanhas da Central de Relacionamento Result campanha de arrecadação Brinquedos
17275745 5429937 Regua de Cobrança CRP Carta de Cobrança - 50 dias em atraso
17275745 5429937 Regua de Cobrança CRP Carta de Cobrança - 75 dias
17275745 5429937 Regua de Cobrança CRP Carta de Cobrança - 90 dias
17275745 5429937 Regua de Cobrança CRP Carta de cobrança de 90 a 120 dias - Reforço
17275745 5429937 Regua de Cobrança CRP Cartas de Cobrança - 10 dias em atraso
18955293 1363416 Pessoas Aniversariantes do Mês
18955293 1363416 Pessoas Critérios para participação no processo
18955293 1363416 Pessoas Serviço de fonoaudiologia
18955293 1363416 Pessoas Treinamento Inicial
18955293 1363416 Pessoas Troca de turno
19652362 1363416 Comunicados AcordoReacordo
19652362 1363416 Comunicados Assessoria Externa
19652362 1363416 Comunicados Atendimento
19652362 1363416 Comunicados Etapas do atendimento
19652362 1363416 Comunicados FaturasBoletos
19652362 1363416 Comunicados Mastercard
19652362 1363416 Comunicados Procedimentos Internos da Central de Relacionamento
19652362 1363416 Comunicados Produtos Financeiros
19652362 1363416 Comunicados Recado
19652362 1363416 Comunicados Rediscagem
19652362 1363416 Comunicados Result
19652362 1363416 Comunicados Rotativo
19652362 1363416 Comunicados Todos os Comunicados
19657794 19652362 AcordoReacordo 036 - Procedimentos para acordos - repactuação
19657881 19652362 Assessoria Externa 009 - Cobrança Externa
19657881 19652362 Assessoria Externa 025 - Bloqueio telefones – Envio Escritórios
19657881 19652362 Assessoria Externa CI 01409 - Opção de envio de Boleto Bradesco pelos Escrit
19658018 19652362 Etapas do atendimento 01407 - Etapas de atendimento - fechamento
19658018 19652362 Etapas do atendimento 01707 - Etapas do Atendimento- Negociação
19658018 19652362 Etapas do atendimento 04706 - Etapas de atendimento - Identificação
19658018 19652362 Etapas do atendimento 04806 - Etapas de atendimento - Fundamentação
19658018 19652362 Etapas do atendimento 05906 - Argumentação utilizada para pag da dívida
19658123 19652362 Atendimento 00408 - Consulta contrato - Artigos
19658123 19652362 Atendimento 00709 - Abordagem de Cliente em Dia
19658123 19652362 Atendimento 00907 - Informações sobre limite de crédito - análise.
19658123 19652362 Atendimento 00908 - Cartas de Cobrança enviada com menos de 10 dias
19658123 19652362 Atendimento 01107- Cobrança de Funcionários
19658123 19652362 Atendimento 01306 - Procedimento para cliente falecido
19658123 19652362 Atendimento 01508 - Script de encerramento do atendimento
19658123 19652362 Atendimento 01806 - Reclamações e Faltas Graves
19658123 19652362 Atendimento 02207 - Erro no Tempo de atraso do Cartão Pernambucanas Ma1
19658123 19652362 Atendimento 02207 - Erro no Tempo de atraso do Cartão Pernambucanas Mas
19658123 19652362 Atendimento 02606 - Fluxo de reclamações
19658123 19652362 Atendimento 03506 - Transferência para CCPE
19658123 19652362 Atendimento 03707 - Plano de crédito - 100 dias para pagar
19658123 19652362 Atendimento 03806 - Agendamento no prazo de bloqueio
19658123 19652362 Atendimento 03906 - Informações sobre Ação Judicial
19658123 19652362 Atendimento 06206 - Acionamento de cadastro - Blended
19658123 19652362 Atendimento 06306 - Espera de cliente em linha
19658123 19652362 Atendimento CI 00409 - Fluxo de depósito identificado
19658123 19652362 Atendimento CI 00809 - Notificação Extrajudicial
19658123 19652362 Atendimento CI 02708 - Novas regras para SACs (CCPE)
19658123 19652362 Atendimento Procedimento para alteração desbloqueio e inclusão de tel
19658123 19652362 Atendimento Queda de ligaçãoTel mudo
19658192 19652362 FaturasBoletos CI 00609 - Boleto Bancário
19658192 19652362 FaturasBoletos CI 01109 - Projeto Boleto
19658253 19652362 Mastercard 00309 - Cobrança do cartão Pernambucanas Mastercard
19658253 19652362 Mastercard 00807 -Telas para consulta do cartão Pernambucanas masterca
19658253 19652362 Mastercard 01808 - Problemas Mastercard
19658253 19652362 Mastercard 02808 - Pagamento do cartão Mastercard enquadrado
19658253 19652362 Mastercard 03607- Atraso na Baixa de pagamento Mastercard
19658253 19652362 Mastercard 05407 -Piloto Cartão de Crédito
19658308 19652362 Procedimentos Internos da Central de Relacionamento 006 - 08 Alteração conduta
19658308 19652362 Procedimentos Internos da Central de Relacionamento 01906 - Contato com terceiros
19658308 19652362 Procedimentos Internos da Central de Relacionamento 01907 - Novos números 0800
19658308 19652362 Procedimentos Internos da Central de Relacionamento 022-08 - Proc concessão de des
19658308 19652362 Procedimentos Internos da Central de Relacionamento 02507 - Políticas de cobrança
19658308 19652362 Procedimentos Internos da Central de Relacionamento 03206 - Segmen de cobrança
19658308 19652362 Procedimentos Internos da Central de Relacionamento 06407 - GAB -Gestão das
19658308 19652362 Procedimentos Internos da Central de Relacionamento CI 00105 - Orientação do uso
19658308 19652362 Procedimentos Internos da Central de Relacionamento CI 00909 - Saldo Residual no
19658308 19652362 Procedimentos Internos da Central de Relacionamento CI 01108 - Alteração da taxa de
19658308 19652362 Procedimentos Internos da Central de Relacionamento CI 01509 - Mensagem (Ura
19658308 19652362 Procedimentos Internos da Central de Relacionamento CI 01609 - Envio de SMS
19658308 19652362 Procedimentos Internos da Central de Relacionamento CI 01709 - Procedimento para
19658308 19652362 Procedimentos Internos da Central de Relacionamento CI 02308 - Cobrança G30
19658308 19652362 Procedimentos Internos da Central de Relacionamento CI 02408 - Tarifa de Cobrança
19658308 19652362 Procedimentos Internos da Central de Relacionamento CI 02508 - URA ativa
19658308 19652362 Procedimentos Internos da Central de Relacionamento Custo Efetivo Total - CET
19658364 19652362 Produtos Financeiros 012 - Informações sobre seguro
19658364 19652362 Produtos Financeiros 01208 - Seguro de Acidentes Pessoais
19658364 19652362 Produtos Financeiros 01807 - Cobrança de Seguro
19658364 19652362 Produtos Financeiros 02707 - Procedimentos para clientes que possuem seguro
19658364 19652362 Produtos Financeiros 028 - Roteiro cobrança
19658364 19652362 Produtos Financeiros 03107 - Garantia estendida por telemarketing
19658364 19652362 Produtos Financeiros 060 - Plano odontológico (OdontoPrev)
19658364 19652362 Produtos Financeiros CI 01608 - Auto Crédito Fácil Pernambucanas
19658428 19652362 Recado CI 00707- Abordagem no telefone de referência
19658428 19652362 Recado CI 01406 - Recados (complemento V)
19658428 19652362 Recado CI 02008 - Recados acima de 90 em atraso
19658428 19652362 Recado CI 04006 - Recados em caixa postal - Inclusão de telefones
19658461 19652362 Rediscagem CI 00106 - Rediscagem
19658461 19652362 Rediscagem CI 02306 - Rediscagem Estado do Mato Grosso
19658502 19652362 Result CI 00108 - Cobrança Suspensa – Alteração de result
19658502 19652362 Result CI 00208 - Registro das negociações
19658502 19652362 Result CI 00607 - Adequação de result (sem contato com o cliente
19658502 19652362 Result CI 01307 - Novo Detalhe (Hospitalizado_Detido_Incapacitado)
19658502 19652362 Result CI 03306 - Result - Acima de 3 Recados
19658502 19652362 Result CI 04506 - Rotinas Internas - Limpeza da base
19658502 19652362 Result CI 05206 - Circularização – Novo result
19658502 19652362 Result CI 05806 - Result Chamada Consulta
19658729 19652362 Rotativo CI 00406 - Rotativo e parcelado
19658729 19652362 Rotativo CI 00508 - Cobrança do Rotativo - Consulta extrato
19658729 19652362 Rotativo CI 00606 - Cobrança Saldo Rotativo
19658729 19652362 Rotativo CI 02607 - Despesa financeira indevida - rotativo
19658729 19652362 Rotativo CI00308 - Alteração na data de corte do Rotativo (Dezembro
19786821 18955293 Serviço de fonoaudiologia Dia Mundial da Voz
19786821 18955293 Serviço de fonoaudiologia Uso consciente do headset
43616876 2554661 Elogios Alexandre Porfírio da Costa
43616876 2554661 Elogios Edson Oliveira Carvalho
43616876 2554661 Elogios Ludmila Balbino
43616876 2554661 Elogios Maria de Nazaré Castro
49660886 18955293 Critérios para participação no processo Processo Seletivo Interno - (Blended)
63947787 11350383 Campanha de Incentivo 2009 Ganhadores de Junho - 07 a 60 Manhã
63947787 11350383 Campanha de Incentivo 2009 Ganhadores de Junho - 07 a 60 Tarde
63947787 11350383 Campanha de Incentivo 2009 Ganhadores de Junho - Blended Manhã
63947787 11350383 Campanha de Incentivo 2009 Ganhadores de Junho - Blended Tarde
68690269 1363416 Cartão Pernambucanas Cartão Pernambucanas Mastercard
68690269 1363416 Cartão Pernambucanas Plano Parcelado
68690269 1363416 Cartão Pernambucanas Plano Rotativo
68692287 68690269 Plano Rotativo Extrato Rotativo
68692287 68690269 Plano Rotativo Tabela de vencimento e data de corte
68692287 68690269 Plano Rotativo Taxas do Rotativo
69758205 1363416 Localização Procedimentos
69758205 1363416 Localização Result's e Gab
69758205 1363416 Localização Sites para consulta de telefone
72482521 1363416 Lojas Abertura de Lojas - Feriado 02.11.09
72482521 1363416 Lojas Abertura de Lojas 01.11.2009ok and what do you want us to do?
Even before you complete your questin please make sure we have
create/inserts
actual o/p expected o/p
Thanks,
Bhushan
Maybe you are looking for
-
Report for PO's/Pr's/Planned orders with exception code
Hi all, Is there any report which lists out Purchase Orders/Purchase requisitions/Planned orders for a specific exception message number? For example when MRP is run some times the finish date for a planned order may be in past (exception message num
-
I was trying to restore my photos in Iphoto through time machine. When I did so I clicked on the icon to replace and then a message saying that certain files were locked. I don't know how to unlock the files and now I cant open my iphoto. Another
-
Different ways of passing procedure's paramters
Hi, In the following example, I am calling the procedure p_test in different ways. I understood from reading examples, that we can pass parameters using the syntaxe : " Name of the parameters => Value". But I did not find anything official about it.
-
G/L account determination/change in confirmation
Hello, How can we achieve G/L account determination and change while creating a confirmation in SRM? Is it possible using the CHANGE_DOC BADI. Ultimately we shoudl be able to modify the G/L account copied from PO in case the product category changes
-
Why is that Java does not allow the declaration of a variable in a method, which may be static method or a non-static method to be a static variable? Is there any specific reason for that ....???? The other thing is that if i declare a constructor as