Analysis not getting the right value off ADM Tool
Hello people,
I'm trying to do one difficult thing, but, first of all the simple thing is not working.
In ADM tool, I have this logic column: avg(Fact_AGR_ESCOPO_MEDIAPPM.MEDIA_PPM_TIPO)
The physical table that have this attribute is: TFAGR_ESCOPO_MEDIAPPM
When I do this Search:
SELECT DISTINCT T3.TIPO_PTB, T2.NOME, T1.MEDIA_PPM_TIPO FROM TFAGR_ESCOPO_MEDIAPPM T1
JOIN TD_ESCOPO T2 ON T1.ESCOPO_SK = T2.ESCOPO_SK
JOIN TD_MOTIVO T3 ON T1.MOTIVO_SK = T3.MOTIVO_SK
WHERE T2.ESCOPO_SK = 1;
I get this TIPO_PTB:
Complaint and Não Complaint.
Now, when I go to the analysis and use the MEDIA_PPM_TIPO att, I got all the TIPO_PTB, not only the Complaint and Nao Complaint.
Someone know whats is this or how I can search for the problem ?
The problem was because I'm trying to use some aggregation rule.
When I put none to aggregation rule, I got only the representation of the DB.
But now, I have another problem and is my initial problem:
How can I spread one value to anothers, always getting the last value by month ?
Example:
JAN FEB MAR
10 20 5
JAN FEB MAR
5 5 5
This is what I want. Always spread the last value base on month to the others (The filter is not a good solution because the prompt changes and the last month will not be the same)
Similar Messages
-
Not getting the return value of a program though it has no errors
public static String giroReturnFileDate(String strType)throws IOException{
try{
SimpleDateFormat getFormatDate = new SimpleDateFormat("yyMM");
Date date = new Date();
String str = getFormatDate.format(date);
System.out.println("Current Date is : "+ str);
System.out.println("Fetching the Giro file now");
if(strType.equalsIgnoreCase("WPD") || strType.equalsIgnoreCase("ISTD")) {
FileReader inputFileReader = new FileReader("giro2itcs_"+strType+".txt");
ArrayList list = new ArrayList();
ArrayList list1 = new ArrayList();
System.out.println("Reading the file");
BufferedReader inputStream = new BufferedReader(inputFileReader);
String inLine = null;
String str1 = null;
while((inLine = inputStream.readLine()) != null && inLine.length() < 2)
list.add(inLine);
System.out.println("Control Record for giro2itcs_"+strType+"is:"+ inLine);
inputFileReader.close();
inputStream.close();
for (int i=0; i<inLine.length(); i++ )
str1 = inLine.substring(19,23);
System.out.println("date of the transaction is:"+str1);
if (str .equals(str1)){
System.out.println("giro2itcs_"+strType+".txt file is created today");
return "true";
else{
System.out.println("giro2itcs_"+strType+".txt file is not created today");
return "false";
}// end of if
return "test";
}// end of try
catch(Exception e) {
System.out.println("The Exception is ::::::::::::::"+e);
return "one";
}//end of giroReturnFileDate(...) method
}//end of of the class
main method is seperate. this program compiles fine but am not getting the return value for this. none of the return values. plzzz help me.can you send me the code complete one ...
i will debug and solve the problem
[email protected]
By publishing your email address you are likely to get loads of spam. -
My nephew put the Hallmark Channel on my computer and I can not get the sound turned off.
My nephew put the Hallmark Channel on my computer and I cannot get the sound turned off.
Is this a separate application? Where did your nephew install it? If you do a force quit (command - option - esc) does it show up so you can force quit it?
-
The parameter 'host_name_full' of ICM not showing the right value
Hi ,
The parameter 'host_name_full' is not showing the correct value.
It is still showing the value as fully qualified domain name, where as we have reverted the setting some time back .
can anyone let me knwo from where does it pick up the value from .
and how can i Edit the value to show the correct value
Thanks
NikhilHi Nikhil,
Check this 2 links will be useful to u r query...
http://help.sap.com/saphelp_nw04/helpdata/en/e7/7af83b0255a206e10000000a11402f/content.htm
http://www.basisconsultant.com/modules.php?name=Content&pa=showpage&pid=12
Regards,
Sridhar -
I'm not getting the right "Home" page for Itunes.
I had my hard drive replaced about six months ago. I have all my the music that I want on my Iphone 3G and is backed up on my PC. I haven't synced by Iphone to the computer since the drive was changed. I use another charger that I have plugged directly into an outlet.
The first picture below is what it should look like AND WHAT I WANT. The second is what I get when I open Itunes. I added a CD and a few voice memos while trouble shooting this. I have around 45 CD's of music on my Iphone and I can listen to them. When I sync my Iphone, which it does automatically, I can transfer photos to my computer but not vice versa. I don't get this first picture I get the second. Also this second screen does not recognize the music I already have on my Iphone and does not put the one CD from the second picture onto my phone.
I've removed Itunes from my computer and then reinstalled it. I thought that would solve the issue. It didn't. I got the second picture when I connect my Iphone. Is there some version of Itunes that I don't know about? Why would I not get the screen in the first picture below?
Can anyone shed some light on this and help me figure out what to do?
Any help would be greatly appreciated!!! THANK YOU!!!- plug in your iPhone
- on your keyboard press "Control" & "S" together, this will bring up the side bar on the left hand side
- select the name of the iphone underneath "devices"
Now you should be on the summary page. -
I can not get the ringer symbol off of my home screen on a frequent basis.
I can not get the ringer symbol removed from my home screen on a frequent basis. I have tried pushing the volume keys and the mute button, but nothing helps.
Hold Sleep Button with Home Button toghether until it restarts Always it takes 8 to 15 seconds, after it restarts leave the sleep button and remember do not leave the home button it automaticlly switches to DFU mode.
-
Why I can not get the email value?
I tried to pull out the email address from database, but for some reason i could not get it. Here is the code.
Javabean:
public class ProgramBean {
private String programId;
private String programTitle;
private String programDesc;
private String sponsorId;
private String sponsorName;
private String providerId;
private String provider;
private String providerEmail;
private String providerPhone;
private String programStatus;
private String receiveDay;
private String receiveMonth;
private String receiveYear;
private String receivedDate;
private String approvedDay;
private String approvedMonth;
private String approvedYear;
private String approvedDate;
private String approvedBy;
private String notifyBy;
private String expiredDay;
private String expiredMonth;
private String expiredYear;
private String expiredDate;
private String attachments;
private String website;
private String programComments;
private String section;
private String notes;
private String requestedMaxCeu;
private String approvedMaxCeu;
private String whoAdded;
private String dateAdded;
private String whoChanged;
private String dateChanged;
public ProgramBean() {
public ProgramBean(String programId,String programTitle, String programDesc, String sponsorId, String sponsorName,String providerId,String provider, String providerEmail, String providerPhone,String programStatus,
String receiveDay,String receiveMonth,String receiveYear, String approvedDay, String approvedMonth, String approvedYear,
String approvedBy,String notifyBy,String expiredDay,String expiredMonth,String expiredYear,String attachments, String website,String programComments,
String section,String notes,String whoAdded,String dateAdded,String whoChanged,String dateChanged){
this.programId = programId;
this.programTitle = programTitle;
this.programDesc = programDesc;
this.sponsorId = sponsorId;
this.sponsorName = sponsorName;
this.providerId = providerId;
this.provider = provider;
this.providerEmail = providerEmail;
this.providerPhone = providerPhone;
this.programStatus = programStatus;
this.receiveDay = receiveDay;
this.receiveMonth = receiveMonth;
this.receiveYear = receiveYear;
this.approvedDay = approvedDay;
this.approvedMonth = approvedMonth;
this.approvedYear = approvedYear;
this.approvedBy = approvedBy;
this.notifyBy = notifyBy;
this.expiredDay = expiredDay;
this.expiredMonth = expiredMonth;
this.expiredYear = expiredYear;
this.attachments = attachments;
this.website = website;
this.programComments = programComments;
this.section = section ;
this.notes = notes;
this.whoAdded = whoAdded;
this.dateAdded = dateAdded;
this.whoChanged = whoChanged;
this.dateChanged = dateChanged;
public void setProgramId(String b_programId){
this.programId = b_programId;
public String getProgramId(){
return programId;
public void setProgramTitle(String b_programTitle){
this.programTitle = b_programTitle;
public String getProgramTitle(){
return programTitle;
public void setProgramDesc(String b_programDesc){
this.programDesc = b_programDesc;
public String getProgramDesc(){
return programDesc;
public void setProgramStatus(String b_programStatus){
this.programStatus = b_programStatus;
public String getProgramStatus(){
return programStatus;
public void setApprovedDay(String b_approvedDay){
this.approvedDay = b_approvedDay;
public String getApprovedDay(){
return approvedDay;
public void setApprovedMonth(String b_approvedMonth){
this.approvedMonth = b_approvedMonth;
public String getApprovedMonth(){
return approvedMonth;
public void setApprovedYear(String b_approvedYear){
this.approvedYear = b_approvedYear;
public String getApprovedYear(){
return approvedYear;
public void setApprovedDate(String b_approvedDate){
this.approvedDate = b_approvedDate;
public String getApprovedDate(){
return approvedDate;
public void setProvider(String b_provider){
this.provider = b_provider;
public String getProvider(){
return provider;
public void setProviderEmail(String b_providerEmail){
this.providerEmail = b_providerEmail;
public String getProviderEmail(){
return providerEmail;
public void setSponsorId(String b_sponsorId){
this.sponsorId = b_sponsorId;
public String getSponsorId(){
return sponsorId;
public void setSponsorName(String b_sponsorName){
this.sponsorName = b_sponsorName;
public String getSponsorName(){
return sponsorName;
public void setProviderPhone(String b_providerPhone){
this.providerPhone = b_providerPhone;
public String getProviderPhone(){
return providerPhone;
public void setProviderId(String b_providerId){
this.providerId = b_providerId;
public String getProviderId(){
return providerId;
public void setReceiveDay(String b_receiveDay){
this.receiveDay = b_receiveDay;
public String getReceiveDay(){
return receiveDay;
public void setReceiveMonth(String b_receiveMonth){
this.receiveMonth = b_receiveMonth;
public String getReceiveMonth(){
return receiveMonth;
public void setReceiveYear(String b_receiveYear){
this.receiveYear = b_receiveYear;
public String getReceiveYear(){
return receiveYear;
public void setReceivedDate(String b_receivedDate){
this.receivedDate = b_receivedDate;
public String getReceivedDate(){
return receivedDate;
public void setApprovedBy(String b_approvedBy){
this.approvedBy = b_approvedBy;
public String getApprovedBy(){
return approvedBy;
public void setNotifyBy(String b_notifyBy){
this.notifyBy = b_notifyBy;
public String getNotifyBy(){
return notifyBy;
public void setExpiredDay(String b_expiredDay){
this.expiredDay = b_expiredDay;
public String getExpiredDay(){
return expiredDay;
public void setExpiredMonth(String b_expiredMonth){
this.expiredMonth = b_expiredMonth;
public String getExpiredMonth(){
return expiredMonth;
public void setExpiredYear(String b_expiredYear){
this.expiredYear = b_expiredYear;
public String getExpiredYear(){
return expiredYear;
public void setExpiredDate(String b_expiredDate){
this.expiredDate = b_expiredDate;
public String getExpiredDate(){
return expiredDate;
public void setAttachments(String b_attachments){
this.attachments = b_attachments;
public String getAttachments(){
return attachments;
public void setWebsite(String b_website){
this.website = b_website;
public String getWebsite(){
return website;
public void SetProgramComments(String b_programComments){
this.programComments = b_programComments;
public String getProgramComments(){
return programComments;
public void SetSection(String b_section){
this.section = b_section;
public String getSection(){
return section;
public void SetNotes(String b_notes){
this.notes = b_notes;
public String getNotes(){
return notes;
public void SetWhoAdded(String b_whoAdded){
this.whoAdded = b_whoAdded;
public String getWhoAdded(){
return whoAdded;
public void SetDateAdded(String b_dateAdded){
this.dateAdded = b_dateAdded;
public String getDateAdded(){
return dateAdded;
public void SetWhoChanged(String b_whoChanged){
this.whoChanged = b_whoChanged;
public String getWhoChanged(){
return whoChanged;
public void SetDateChanged(String b_dateChanged){
this.dateChanged = b_dateChanged;
public String getDateChanged(){
return dateChanged;
public void SetRequestedMaxCeu(String b_requestedMaxCeu){
this.requestedMaxCeu = b_requestedMaxCeu;
public String getRequestedMaxCeu(){
return requestedMaxCeu;
public void SetApprovedMaxCeu(String b_approvedMaxCeu){
this.approvedMaxCeu = b_approvedMaxCeu;
public String getApprovedMaxCeu(){
return approvedMaxCeu;
Servlet:
HttpSession session = request.getSession();
ProgramBean updatedProgramInfo = new ProgramBean();
try
Class.forName("oracle.jdbc.OracleDriver");
conn = DriverManager.getConnection("");
stmt_get_classes = conn.createStatement();
sql = "SELECT p.program_id,upper(p.program_title),upper(p.program_desc),p.sponsor_id,p.provider_id, upper(d.last_name||', '||d.First_name),p.program_status, "+
" to_char(p.date_received,'mm/dd/yyyy'), to_char(p.date_approved,'mm/dd/yyyy'),upper(p.approved_by), Upper(p.notified_by), to_char(p.date_expiration,'mm/dd/yyyy'), nvl2(p.agenda_file,'AGENDA - '||p.agenda_file,'DON''T FORGET THE ATTACHMENTS!'),"+
" p.website, upper(p.program_comments), p.section, upper(p.administrator_notes), upper(p.cre_user), to_char(p.cre_date,'mm/dd/yyyy hh:mm:ss PM'), upper(p.mod_user), to_char(p.mod_date, 'mm/dd/yyyy hh:mm:ss PM'),"+
"d.email;
rs = stmt_get_classes.executeQuery(sql);
while(rs.next()){
updatedProgramInfo.setProgramId(rs.getString(1));
updatedProgramInfo.setProgramTitle(rs.getString(2));
updatedProgramInfo.setProgramDesc(rs.getString(3));
updatedProgramInfo.setSponsorId(rs.getString(4));
updatedProgramInfo.setProviderId(rs.getString(5));
updatedProgramInfo.setProvider(rs.getString(6));
updatedProgramInfo.setProgramStatus(rs.getString(7));
date =rs.getString(8);
updatedProgramInfo.setApprovedBy(rs.getString(10));
updatedProgramInfo.setNotifyBy(rs.getString(11));
date =rs.getString(12);
updatedProgramInfo.setAttachments(rs.getString(13));
updatedProgramInfo.setWebsite(rs.getString(14));
updatedProgramInfo.SetProgramComments(rs.getString(15));
updatedProgramInfo.SetSection(rs.getString(16));
updatedProgramInfo.SetNotes(rs.getString(17));
updatedProgramInfo.SetWhoAdded(rs.getString(18));
updatedProgramInfo.SetDateAdded(rs.getString(19));
updatedProgramInfo.SetWhoChanged(rs.getString(20));
updatedProgramInfo.SetDateChanged(rs.getString(21));
updatedProgramInfo.setProviderEmail(rs.getString(22));
System.out.print(rs.getString(21));
session.setAttribute("ProgramBean",updatedProgramInfo);
response.sendRedirect("UpdateProgram.jsp");
JSP:
<a href="mailto:<c:out value="${sessionScope.ProgramBean.providerEmail}"/>">Email <c:out value="${sessionScope.ProgramBean.provider}"/> </a>
The problem is I could not ge tthe value: ${sessionScope.ProgramBean.providerEmail}, but I have no problem to get the value: ${sessionScope.ProgramBean.provider}.
By the way, the original program was written by someone else, i am kind of new of jsp stuff. I just tried to add an email part which shows on the bold text. Did I do something wrong? Thanks.Mate,
Two things...
1. Please try just printing the email address with a straight: <c:out value="${sessionScope.ProgramBean.providerEmail}"/>, then do a VIEW SOURCE off the result... I SUSPECT that the @ in the email address is being translated by the c:out into a character entity... if that's the case just use escapeXml="false" in your c:out tag... but then you'll need to beware of crosssight scripting attacks, apparently.
See: http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/c/tld-summary.html
... or just use the standard SQL tag library, and avoid the issue completely.
2. When you post, format your code with the \[code\] \[\/code\] tags... and just remove all the superflious code (don't just bold the pertintant bits... It took me longer to read your code then you took to post it, and I won't bother again.
Cheers. Keith. -
StartDate and EndDate values are multiplied, Can't get the right values
Building: Im trying to build a report where I can calculate the difference between two dates (Example between 1-1-2001 and 31-12-2001) but also showing (per name per identifier) the current balance of a customer per date(As shown in the Report attachment).
Problem: The problem is that the totals are not correct, they get multiplied on random numbers (Checking it with Count and CountDistinct I learned that I probably made a mistake in my SQL, so I copied SQL in this question as well).
I have tried plenty myself and tried to find solutions on the interwebs, but none of them seem to work. So I am desperate enough to ask for help :).
SELECT
CASE WHEN t1.identifier IS NULL THEN t2.identifier ELSE t1.identifier
END as identifier
, CASE WHEN t1.firstName IS NULL THEN t2.firstName ELSE t1.firstName
END as firstName
, CASE WHEN t1.lastName IS NULL THEN t2.lastName ELSE t1.lastName
END as lastName
, CASE WHEN t1.initials IS NULL THEN t2.initials ELSE t1.initials
END as initials
, CASE WHEN t1.name IS NULL THEN t2.name ELSE t1.name
END as name
, CASE WHEN t1.employmentNumber IS NULL THEN t2.employmentNumber ELSE t1.employmentNumber
END as employmentNumber
, CASE WHEN t1.externalIdentifier IS NULL THEN t2.externalIdentifier ELSE t1.externalIdentifier
END as externalIdentifier
, t1.balance AS S_balance
, t1.unvested AS S_unvested
, t2.balance AS V_unvested
, t2.unvested AS V_balance
, SUM(t1.TotalBalance + t1.TotalUnvested) Total1
FROM
SELECT
par.identifier
,par.firstName
,par.lastName
,par.initials
,pos.name
,pos.balance
,pos.unvested
,par.employmentNumber
,SUM(pos.balance) TotalBalance
,sum(pos.unvested) TotalUnvested
,Right(par.externalIdentifier,(Len(par.externalIdentifier)-4)) as externalIdentifier
FROM
participant par
INNER JOIN position pos
ON par.identifier = pos.participantIdentifier
WHERE
(pos.balance != 0 OR pos.unvested != 0)
AND pos.name NOT LIKE (@Euro)
AND par.Metadata_start_validity <=@Datum
AND (par.Metadata_end_validity >=@Datum
OR par.Metadata_end_validity IS NULL)
AND pos.Metadata_start_validity <=@Datum
AND (pos.Metadata_end_validity >=@Datum
OR pos.Metadata_end_validity IS NULL)
GROUP BY
par.identifier
,par.firstName
,par.lastName
,par.initials
,pos.name
,pos.balance
,pos.unvested
,par.employmentNumber
,par.externalIdentifier
) as t1
INNER JOIN
SELECT
par.identifier
,par.firstName
,par.lastName
,par.initials
,pos.name
,pos.balance
,pos.unvested
,par.employmentNumber
,Right(par.externalIdentifier,(Len(par.externalIdentifier)-4)) as externalIdentifier
FROM
participant par
INNER JOIN position pos
ON par.identifier = pos.participantIdentifier
WHERE (pos.balance != 0 OR pos.unvested != 0)
AND pos.name NOT LIKE (@Euro)
AND par.Metadata_start_validity <=@V_Datum
AND (par.Metadata_end_validity >=@V_Datum
OR par.Metadata_end_validity IS NULL)
AND pos.Metadata_start_validity <=@V_Datum
AND (pos.Metadata_end_validity >=@V_Datum
OR pos.Metadata_end_validity IS NULL)
) as t2
ON
t1.identifier = t2.identifier
GROUP BY
CASE WHEN t1.identifier IS NULL THEN t2.identifier ELSE t1.identifier
END
, CASE WHEN t1.firstName IS NULL THEN t2.firstName ELSE t1.firstName
END
, CASE WHEN t1.lastName IS NULL THEN t2.lastName ELSE t1.lastName
END
, CASE WHEN t1.initials IS NULL THEN t2.initials ELSE t1.initials
END
, CASE WHEN t1.name IS NULL THEN t2.name ELSE t1.name
END
, CASE WHEN t1.employmentNumber IS NULL THEN t2.employmentNumber ELSE t1.employmentNumber
END
, CASE WHEN t1.externalIdentifier IS NULL THEN t2.externalIdentifier ELSE t1.externalIdentifier
END
, t1.balance
, t1.unvested
, t2.balance
, t2.unvested
, t1.TotalBalance
, t1.TotalUnvestedPlease post DDL, so that people do not have to guess what the keys, constraints, Declarative Referential Integrity, data types, etc. in your schema are. Learn how to follow ISO-11179 data element naming conventions and formatting rules (you have no idea,
do you?). Temporal data should use ISO-8601 formats. Code should be in Standard SQL as much as possible and not local dialect.
This is minimal polite behavior on SQL forums. Did you know that camelCase does not work? Google the research. There are no generic “<nothing in particular>_name”, <magic universal>_identifier”, etc in a valid data model.
This codes tells us you have attribute splitting in the schema:
T1.balance AS S_balance, T1.unvested AS S_unvested,
T2.balance AS V_unvested, T2.unvested AS V_balance,
I am sorry you have only one “Participant” and one “Position”, which is what your singular table name tell the world.
Your “vested” and “unvested” are a status value, but you put them into separate tables. This is as silly as having “Male_Personnel” and “Female_Personnel” tables instead of the correct “Personnel” table. This why you are re-creating the name-address columns
every time!
What kind of entity is an “external”? You have an “external_identifier”, so there has to be such an entity. Even worse you have:
RIGHT(PAR.external_identifier, (LEN(PAR.external_identifier)-4))
This tells us that this vague column is a concatenation of two or more data elements. This is not a valid schema design. And when you write:
AR.identifier = POS.participant_identifier
Your magical generic “identifier” changes to a participant. In RDBMS, a data element has one and only one name, and doer not change from table to table. Can it also become a squid? An automobile?
I see you are an old punch card programmer. Back in the old days, we put one expression per card (line) so we could re-arrange the deck. This also meant that the comma went at the front line. And we even parentheses and keywords on single cards! WOW!
You do not know about COALESCE() and use CASE the way that you would use IF-THEN in COBOL. Look at this code. Why did you think that “@datum” was a clear, precise data element name? It is the most generic name for a single data element value (not even the element
itself).
AND PAR.metadata_start_validity <= @vague_generic_something
AND (PAR.metadata_end_validity >= @vague_generic_something
OR PAR.metadata_end_validity IS NULL)
COBOL, C and the other procedural languages that you are trying to write in SQL do no have the SQL shorthand, so you use Boolean operators. We would write:
@vague_generic_something
BETWEEN PAR.metadata_start_validity
AND COALESCE(PAR.metadata_end_validity, @vague_generic_something)
But we never put metadata into a schema. NEVER. “Validity” makes no sense. Is it a date? A physical location? What? It has to be on a scale on which theta operators apply. Your validity hs no ordering!
You do not know that SQL uses <> and not != from the C family.
We do not use bit flags; that was assembly language, not SQL. The term “Euro” is a monetary unit of measurement, not value.
You are getting garbage data because you have a garbage schema. Post the DDL and someone might be able to help you replace it.
--CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
in Sets / Trees and Hierarchies in SQL -
I can not get the right frequency out of my NI-DAQ 6062E card from Matlab
Hi.
My name is Johan and I want to generate an analog square waveform with 5.76 kb/s in frequency with my NI DAQCard-6062E from Matlab.
When I run in Matlab the program below, I get the frequency of 5.747 kb/s on the output channel (even thou I have chosen 5.76 kb/s). When I try to change the sample rate, to higher values in Matlab, I get the same frequency until I choose the sample rate to 5.79 kb/s. The output signal is in that case is 5.813 kb/s.
So my problem is that I can't get the exact frequency of 5.76 kb/s.
How do I solve this.
Thankful for help.
Best regards, Johan
Program in Matlab:
clear all
openDAQ=daqfind; %Detect any open DAQ channels
for i=1:length(openDAQ), %Close any open DAQ channels
stop(openDAQ(i));
end
ao = analogoutput('nidaq',1); %Create an object for analog output
addchannel(ao, [0 1]);
set(ao, 'SampleRate', 2*5760); %Here the sample rate is specied. 2*, because to get right samplerate
y=[80,-80] %Sets theoutput values to 80 and -80 (As -1 and 1)
putdata(ao, [y' y']); %Sends the values to out buffer
set(ao,'RepeatOutput',inf) %Repeats sending in infinity
set(ao, 'TriggerType', 'Immediate'); %Choose trigger to immediate, because sending values shall occur driect after start command.
start(ao);
%stop(ao)Hello Johan!
Bad news I am afraid….
I assume you are using the Data Acquisition Toolbox from the Mathworks and when it comes to support on that interface I have to advice you to contact the Mathworks for assistance. We don't provide any support on their data acquisition interface since we have nothing to do with it.
Sorry for the inconvenience this might cause you.
Regards,
Jimmie A.
Applications Engineer, National Instruments
Regards,
Jimmie Adolph
Systems Engineer Manager, National Instruments Northern Region
Bring Me The Horizon - Sempiternal -
Not getting the right posting key..
hey,
i am posting accounts payable data using the bapi BAPI_ACC_DOCUMENT_POST.
my logic arrives at two values
blart = 'KG'.
newbs1 = '21'.
now how do i pass this to the bapi, which structure , which field, so that i get the posting key as 21 in the GL acct line item ??
i am always getting 31 and 40 as the posting keys... now i need 21 and 50..
thnkshey Sudarshan, I traced the BAPI and found out that it is the amount being positive or negative along with the doc type that determines what the posting shud be..so when i set the doc type say as KG and pass a +ve value, posting key 21 is set , for -ve value posting key 50 is set. i was abt to achieve the result by changing the signs for the currency amt..worked..
-
Not getting the right quantity in select
Hi,
My company stores each week's transaction in one dbf table, thus, creating around 53 tables per year. I try to move the tables into one big table (bigTable) in mysql. I created a Java program to select the data from dbf (visual foxpro dbf driver) and insert into mysql using JConnect. After I finished inserting into mysql, I used Visual Foxpro and I do a:
SELECT sum(quant) from week532000.dbf
and obtained 52843.6, which I considered it the correct result.
* Note that 'quant' is of type Numeric in dbf.
However, when I do this with mysql client:
SELECT sum(qunt) from bigTable where date_ between '2000-12-25' AND '2000-12-31'. I obtained 52977.6, which is different from the original result.
To troubleshoot this, I created a small program just to select the 'quant' field and obtained the sum. It turned out that when I ran this program, I obtained a different sum (although I was selecting from the same table):
Example:
sum of quant is 52977.6
sum of quant is 52890.1
sum of quant is 52837.6
double q, qt;
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con1 = DriverManager.getConnection("jdbc:odbc:daydata", "", "");
st = con1.createStatement();
rs = st.executeQuery("SELECT quant from wk532000 where quant <> 0");
while(rs.next()){
qt = rs.getDouble("quant");
q = q + qt;
rs.close();
st.close();
con1.close();
} catch(ClassNotFoundException e){
e.printStackTrace();
catch(SQLException e){
e.printStackTrace();
System.out.println("sum of quant is "+q);
Why a different sum was produced each time the code was run? Any feedback is appreciated.what do you mean timestamp?One of the following is true.
1. You have a field in the database that holds a timestamp (a date and a time.) That is because that is the only thing that databases allow.
2. You have a varchar/char field that has a date in in as a string.
If the second is the case then the problem has nothing to do with java. It is one of the following
- Your migration is not migrating everything.
- Your comparisons are not equivalent in terms of functionality.
If the first then it could still be one of the above problems but it could also be because the timestamp values are not equivalent. -
Q:Date link not getting the right date in calendar
Gang,
I have enabled the day link on my calendar so the user can click on the date in the month view to get to a form page where they can add records.
My day_link looks like this:
f?p=&FLOW_ID.:2:&SESSION.::&DEBUG.:2:P2_TRAINING_DATE:#TRAINING_DATE#
Where P2_TRAINING_DATE is the DATE I'd like to populate on page 2. The variable name that holds this date is called P2_TRAINING_DATE.
If I hoover over the daylinks they display very strange dates and also if I click on the link the dates are wrong. For example if I hoover over 01-May the URL in the bottom of my browser displays the correct date but if I hoover over 02-May it displays 05-May instead.
What am I missing, should I not use the #TRAINING_DATE# variable?
Oh, this application is running on apex.oraclecorp.com so it's version 3.1.
Cheers,
AndyHi Andy,
Change the day link to pass #DD#/#MM#/#YYYY# (UK format, so change if another format is required).
This will pick up the date from the calendar rather than your data.
Andy -
Hi Guys,,I am not getting the right output?Plz help
Hi Guys,
Here is my code..
ELSEIF p_versb = 'W2'.
CONCATENATE lv_perxx '08' INTO lv_date3. (20090708)
CONCATENATE lv_perxx '15' INTO lv_date4. (20090715)
SELECT mseg~mblnr
mseg~bwart
mseg~matnr
mseg~lgort
mseg~menge
FROM mseg
INNER JOIN mkpf
ON msegmblnr = mkpfmblnr
INTO TABLE t_temp
FOR ALL ENTRIES IN t_firmplan
WHERE mseg~matnr = t_firmplan-matnr (490045,500001)
AND mkpf~budat GE lv_date3
AND mkpf~budat LE lv_date4
AND mseg~bwart IN ('101', '102')
AND mseg~werks = t_firmplan-werks. (werks = 1100)
Plz suggest where I m wrong ?
Thanks
SteveHi,
Check the
SELECT mseg~mblnr
mseg~bwart
mseg~matnr
mseg~lgort
mseg~menge
FROM mseg
INNER JOIN mkpf
ON mseg~mblnr = mkpf~mblnr
INTO TABLE t_temp
FOR ALL ENTRIES IN t_firmplan
WHERE mseg~matnr = t_firmplan-matnr (490045,500001) " Check the matnr value in the MSEG table if it storing with
" leading zero's then use the conversion exit to get the leading zero's
" in t_firmplan-matnr
AND mkpf~budat GE lv_date3
AND mkpf~budat LE lv_date4
AND mseg~bwart IN ('101', '102')
AND mseg~werks = t_firmplan-werks. (werks = 1100) -
We can't get on to the internet, all the account numbers are correct and it says we are connected, but the last step it wants to get the old password in order for us to open on to the internet. How do we find and remove the old password.
We can't find the password or get it from the school we received the computer from.Go to System Preferences
Click Network
Highlight AirPort and click Configure...
Choose “By default, join: Preferred networks”
Select your access point and Remove your access point with the minus button.
Launch your keychain access in Utilities and delete your access point keychain entry.
Reboot
Go back to the “By default, join:” page and click the plus this time to add your access point. Enter the correct password, save, reboot.
Instead of joining it from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed. Before I went through network diagnostics and all of that stuff in system preferences, and then I tried the "Join Other Network" method, and now it works like a dream. -
Not able to get the profile value set at Responsibility level
Hi,
I had set the value of a custom profile at Responsibility level and in CO i used the
following code,
String rLocation = pageContext.getProfile("XXTMG_PR_SCP_LOCATION");
The above call returns NULL. But if i set the value of the profile at Site Level then the above code returns the correct value of the profile. I bounced the apache after the profile option was changed but no avail.
I even tried using getOADBTransaction().getSpecificProfile() in the AM (which was
called from CO) as below but could not get the value of the profile,
Number lRespID = new Number(getOADBTransaction().getResponsibilityId());
String retLoc1 = getOADBTransaction().getSpecificProfile("XXTMG_PR_SCP_LOCATION","","",
lRespID.toString());
Could any of you please let me know whether i have missed something in the code which results in not getting the correct value for the profile at the Responsibility level.
Thanks, Suresh.Instead of passing null for the other parameters in call to getSpecificProfile, can you please set these params and try ?
Also, please note that if a value is defined at site level, then even if a value is present at the resp level, the value at site will be returned when you use getProfile method.
Thanks
Tapash
Maybe you are looking for
-
hi v have a same account me and my wife by mistake i have updated software in my wife's name so my iphone turned in to her's and now i can't find my data or my name on it so can u pls help me to get my data back there was an error (-50) appeared bu b
-
Falied parts monitoring - warranty parts received handlling.
Hi everybody I have a senario, in which when the customer claims warranty of certain parts, delears send those parts to OEM are closely monitored by the OEM. It checks for three possibilities 1. vendors sends defective parts. 2. OEM producess poor qu
-
I had a trouble with my lap top and had to format hard disk and install all soft ware again. could any body tell me how to transfer the application and data in my i phone back to itune.
-
I thought I read someplace that you can access the camera on the iPhone lock screen. Anyone know how to turn this on?
-
Hi Does any one: 1. Post any entries for Capital Allowance (Tax depreciation)? I noticed there is functionality OADX) 2. Execute financtial reports for tax purposes (I.e using tax depreciation instead of book depreciation etc). I noticed that we can