How to use a km service to show the data of collaboration rooms.
I follow the method in documents:
import com.sapportals.portal.prt.runtime.PortalRuntime;
IRooms roomsAPI = (IRooms) PortalRuntime.getRuntimeResources().getService(IRooms.PORTAL_SERVICE_ID);
and cast Exception come out, means can not transfer to IRooms
And I alse wonder why PortalRuntime.getRuntimeResources().getService(IRooms.PORTAL_SERVICE_ID)'s return type is IService, but IRooms is not extends from IService ,how can casting succesussful......
I follow the method in documents:
import com.sapportals.portal.prt.runtime.PortalRuntime;
IRooms roomsAPI = (IRooms) PortalRuntime.getRuntimeResources().getService(IRooms.PORTAL_SERVICE_ID);
and cast Exception come out, means can not transfer to IRooms
And I alse wonder why PortalRuntime.getRuntimeResources().getService(IRooms.PORTAL_SERVICE_ID)'s return type is IService, but IRooms is not extends from IService ,how can casting succesussful......
Similar Messages
-
How to use a Text View to show the current user
Hi Experts,
I am using a Text View to show the current logged on user.
Also i need to retrieve the date of creation of proposal and show it as output parameter.
I am using the following code but it is not working properly.
Please help me out regarding the same.
Method technicalDescription()
//Attribute User to store user name
IGPAttributeInfo user = output.addAttribute("USER", IGPAttributeInfo.BASE_STRING);
user.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_1);
//Attribute date to store current system date
IGPAttributeInfo date = output.addAttribute("DATE", IGPAttributeInfo.BASE_DATE);
date.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_1);
Method execute()
//getting current system date
Date currDate = new Date(System.currentTimeMillis());
contextElement.setDate(currDate);
//Retrieve Current User Details
try {
IWDClientUser user = WDClientUser.getCurrentUser();
String firstName = user.getFirstName();
String lastName = user.getLastName();
String userName = lastName + " " + firstName;
contextElement.setUserName(userName);
} catch (WDUMException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
Method complete()
output.setAttributeValue("USER", wdContext.currentContextElement().getUserName());
output.setAttributeValue("Date", wdContext.currentContextElement().getDate());
Thanks a lot.
Cheers
Gaurav RaghavThere are a few ways, for example declare an IBOutlet for the text field and then use it with NSControl's stringValue: method (inherited by the NSTextField), or bind the value of the text field to a property, etc. What have you got so far?
-
How to use a Text View to show the current user in WDJ
Hi Experts,
I am using a Text View to show the current logged on user.
Also i need to retrieve the date of creation of proposal and show it as output parameter.
I am using the following code but it is not working properly.
Please help me out regarding the same.
Method technicalDescription()
//Attribute User to store user name
IGPAttributeInfo user = output.addAttribute("USER", IGPAttributeInfo.BASE_STRING);
user.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_1);
//Attribute date to store current system date
IGPAttributeInfo date = output.addAttribute("DATE", IGPAttributeInfo.BASE_DATE);
date.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_1);
Method execute()
//getting current system date
Date currDate = new Date(System.currentTimeMillis());
contextElement.setDate(currDate);
//Retrieve Current User Details
try {
IWDClientUser user = WDClientUser.getCurrentUser();
String firstName = user.getFirstName();
String lastName = user.getLastName();
String userName = lastName + " " + firstName;
contextElement.setUserName(userName);
} catch (WDUMException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
Method complete()
output.setAttributeValue("USER", wdContext.currentContextElement().getUserName());
output.setAttributeValue("Date", wdContext.currentContextElement().getDate());
Thanks a lot.
Cheers
Gaurav RaghavYou can use a text string as the reference.
If you use the VISA Find Resource function, it will return an array of strings which you can index in your code, and store either the index, or store the string itself. You can even use strings like COM1 and COM2, assuming those ports are available.
The challenge is when you move from one machine to another, where the serial ports may be different on the other machine.
Message Edited by LabViewGuruWannabe on 01-07-2008 06:33 AM
Message Edited by LabViewGuruWannabe on 01-07-2008 06:37 AM
Attachments:
VISA find.png 5 KB -
How to use a Web Service after creating the reference
I created a Web Service reference and APEX 3.1 and it recognizes it.
The WS has a list of customers. The XML file (WS result) has XSD then the customers data.
The only thing I can do inside APEX is to create a form based on WS with a field that has a dump of the WS result.
I do not know how to use the XML data in the WS to show the customers data in APEX.
I appreciate it, if you can point me to any article or documentation taht show to consume WS in APEX
Thanks
MoJason
My post above does not make sense because the browser converted the "lt" and "gt" that I saw in the form when I copied and paste to < and > as it should do.
below I will attach the XSD
<?xml version = "1.0" encoding="UTF-8" standalone="yes"?>
<VFPDataSet>
<xsd:schema id="VFPDataSet" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="VFPDataSet" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="curCustomers" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="customerid">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="5"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="companyname">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="40"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="contactname" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="30"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="contacttitle" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="30"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="address" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="60"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="city" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="15"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="region" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="15"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="postalcode" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="country" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="15"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="phone" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="24"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="fax" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="24"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:choice>
<xsd:anyAttribute namespace="http://www.w3.org/XML/1998/namespace" processContents="lax"/>
</xsd:complexType>
</xsd:element>
</xsd:schema> -
How to use a variable multiple times in the data flow
DECLARE
@StartTime datetime,
@EndTime datetime
SET @StartTime = (SELECT MAX(AvailDateTime) FROM dbo.Fact)
SET @EndTime = (SELECT MAX(AvailDateTime) FROM dbo.Product);
--DATEADD(day, 1, @StartTime);
--PRINT @StartTime
--PRINT @EndTime;
WITH
dates AS (
SELECT DATEADD(Minute,5,@StartTime) AS [date]
WHERE DATEADD(Minute,5,@StartTime) <= @EndTime
UNION ALL
SELECT DATEADD(minute, 5 ,t.date) AS [date]
FROM dates t
WHERE DATEADD(minute, 5, t.date) <= @EndTime
I have the above sql, in this I'm using the 2 variables and calling @Starttime Variable couple of time. How should I build the SSIS package based on this query? how can I call the same variable in different place? how will SSIS take it?
ThanksSince you have the variables set in code you just can place this code into the SQL code section of say an OLEDB source
like there
or -
How to use case and decode to extract the data
Hello PL/SQL Gurus,
I am using Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production version
I have a table in following format -
drop table TT2;
create table TT2(College, Class,gender,status,fees) as select
'IITB','MBA','M','P',255600 from dual union all select
'IITK','MTech','M','P',300000 from dual union all select
'IITD','MBA','F','P',450000 from dual union all select
'IITKH','MBA','F','P',350000 from dual union all select
'IITC','MTech','F','P',420000 from dual union all select
'IITB','MTech','M','P',185000 from dual union all select
'IITC','MTech','M','P',235000 from dual union all select
'IITD','MBA','F','F',175000 from dual union all select
'IITM','MBA','M','F',257000 from dual union all select
'IITKH','MTech','F','P',335000 from dual union all select
'IITD','MBA','F','P',540335 from dual union all select
'IITC','MBA','F','F',125089 from dual union all select
'IITD','MTech','M','P',290756 from dual union all select
'IITM','MBA','M','P',200000 from dual union all select
'IITKH','MBA','F','F',534990 from dual union all select
'IITD','MBA','F','P',221000 from dual ;some of the extraction conditions are as following -
CASE CONDITION
College in 'IITB' and status='P'- 'WestRegion Passed'
College in 'IITC' and status='P'- 'SouthRegion Passed'
College in 'IITD' and 'IITK' and status='P' and Gender='F' - 'NothRegion Female Passed'
College not in 'IITK' and status='F' - 'Ex Kanpur Failed'
Expected output -
Region Statnding Fees
WestRegion Passed 440460
SouthRegion Passed 655000
NothRegion Female Passed 1386335
Ex Kanpur Failed 1092079SQL Used
I am using the following query which only make sure of case but this is not how i want the output , if i try to use the case within decode then how to work on this -
SELECT (CASE WHEN College in ('IITB') and status='P' then sum(fees) else 0 end) WP,
(case when College in ('IITC') and status='P' then sum(fees) else 0 end) SP,
(case when College in ('IITD','IITK') and gender='F' and status='P' then sum(fees) else 0 end) NFP,
(case when College in ('IITK') and status='F' then sum(fees) else 0 end) ExKF
FROM
TT2
GROUP BY College, Class,gender,statususer555994 wrote:
Thank you so much jeneesh i am really thankful to you ...vov.
one more query in case if any of the selection don't have the output data , then values will be displayed like -One way..
with t as
--"Add all your descriptions
(select 'WestRegion Passed' region_standing from dual union all
select 'SouthRegion Passed' region_standing from dual union all
select 'NothRegion Female Passed' region_standing from dual union all
select 'Ex Kanpur Failed' region_standing from dual)
select region_standing,sum(fees) fees
from (
(SELECT CASE WHEN College in ('IITB') and status='P'
then 'WestRegion Passed'
when College in ('IITC') and status='P'
then 'SouthRegion Passed'
when College in ('IITD','IITK') and gender='F' and status='P'
then 'NothRegion Female Passed'
when College in ('IITK') and status='F'
then 'Ex Kanpur Failed'
else 'Others' end region_standing,
sum(fees) fees
FROM TT2
GROUP BY CASE WHEN College in ('IITB') and status='P'
then 'WestRegion Passed'
when College in ('IITC') and status='P'
then 'SouthRegion Passed'
when College in ('IITD','IITK') and gender='F' and status='P'
then 'NothRegion Female Passed'
when College in ('IITK') and status='F'
then 'Ex Kanpur Failed'
else 'Others' end
union all
select region_standing,0
from t
group by region_standing;
REGION_STANDING FEES
Others 2567835
NothRegion Female Passed 1211335
WestRegion Passed 440600
Ex Kanpur Failed 0
SouthRegion Passed 655000
{code}
Edited by: jeneesh on Nov 5, 2012 5:07 PM -
when I try to purchase an app using my iphone it asks me for a password for the wrong email address. How do I reset my iphone to show the correct email address/apple ID
Thanks for your reply. Having read through relevant topics it suggests that if I sync my iphone with the correct account on my pc it should use that one thereafter. i will try both.
-
I used a terminal command in Lion to show the LIbrary in the Users folder, and now the Finder is behaving erratically, hanging up and becoming almost paralyzed. Can anyone tell me how to reverse the terminal command for show Library. The command I used was:
chflags nohidden ~/Library/Showing the Library folder will not cause the problem you've described. Nevertheless:
chflags hidden ~/Library
will hide the folder. To reveal the folder:
chflags nohidden ~/Library
Note, there is no "/" after Library. -
I just bought a new ipad 2, but cannot use it as it only shows the itunes logo and a cable. This means it's telling me to connect to itunes. I've done this and performed sync, still no way out. I have been told by friends to "unlock" it. Please how?
Have you already activated the iPad? That is what the screen is telling you to do - connect to the computer with the supplied cable and run iTunes while connected - and iTunes should guide you through the set up process. If you have already set up the iPad and you are still getting thos screen message - restore your iPad. You must be running iTunes 10.5 on your computer as well.
Restore iPad
If you can't restore this way, you will need recovery mode.
Unable to Restore -
How to show the data of one query since Forms9i using to Report built-in on
Hello!!!, I have Developer 9i (Forms and Reports), the OCJ4 and repserver90 are running, now, I attempt to run one report from Forms9i, and only it appears an empty page HTML. I don't understand why doesn't show the data of query?
Please, give me a solution for this problem, thanks for your help.
PD: I am using the below code.......
PROCEDURE bring_report IS
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
repid := find_report_object('Q_DATA1');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
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,'repserver90');
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
/*Display report in the browser*/
WEB.SHOW_DOCUMENT('http://172.16.2.18:8888/reports/rwservlet/getjobid'||
substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
ELSE
message('Error when running report');
END IF;
END;Alex,
the code does look good. maybe the Reports query does not produce an output. You can trace this ny adding a header on top of teh Reports (e.g. a date or just saying "Hello World"). So instead of an empty page this should now show the text strings. If you don't see the string then there is something else going on. Since you are not getting any error message I assume that the Reports itself executes fine.
Frank -
My ios update keeps getting stuck on the Restoring iPhone software stage. I uninstalled iTunes and reinstalled it again, but still nothing. Now I can't even use my phone as it shows the plug into iTunes screen. Please help!!!! Thanks,
A Restore first downloads a new copy of iOS to your computer. On a slow Internet connection this can take a long time. How fast is your connection? How long would you expect it to take to download 900 MB?
That's assuming nothing is interfering with the download. Some firewalls and antivirus programs will block the download or slow it down. So you should temporarily disable your security software. Security software can also block the update after the iOS download is complete. -
Hi, The emails that I have received show the date received as either today, yesterday or July 28. How can I get the correct date received?
That's very scary. They might do it, but I personally have never had Apple contact me re id's except on their site when signing in. I suggest you DO NOT respond until you have a phone conversation with Apple security. They can verify if they sent you the e-mail and why.
While it's very possible it's true,again, I suggest you not respond until you speak to someone at Apple. I've often read here that when people sign in they are not allowed to because "someone else has used the id" type of statement.
Also, you should be able to go to the app store and see what apps you have downloaded.
Though it could have been a free app, have you checked to see if any were bought with your id account?
I've gotten these types of e-mails from places like USPS and FedEx which look amazingly authentic and were from their website. I also received an odd e-mail from my cousin in Ireland last year that clearly was not from him. It was also sent to others in his family in Ireland. I e-mailed him that I only opened it because it had a .ie, but suggested he change... Days later I received mail from 'him' - same name, but at yahoo.com.
Again, I would call Apple. You can also report it at [email protected], but I would not settle for that given your situation. If nothing else, call Apple sales (sales depts. anywhere answer fast) and ask them to transfer you to security. Apple will not want anybody accessing their name, and while it's unlikely, it's not impossible that it is someone phishing.
Hope this helps and can you let the support community know your results by posting on this thread when you're done? Thank you.
Hope this helps. -
How to restrict CTRL+K command to show the shortcuts
Hi All,
Have there anyone to help me "How to restrict *CTRL+K* command to show the shortcut list?". I want to stop this list to show all.
And also to customize the key commands.
ArifI'm assuming you're using forms on the web.
If so, you need to edit the fmrweb.res file that sits in your $ORACLE_HOME/forms directory.
This file will has all the keymappings for the function keys and you can customise them in there.
To stop Ctrl-K working you will need to comment out the line for Ctrl-K/Show keys by placing a hash (#) sign at the beginning of the line.
Further instructions can be found in the file.
Another tack to take would be to introduce a KEY-OTHERS trigger at form level that gives a message such as 'That key not used here, please...', you will then need to explicitly define triggers for all keys that should be used, for instance a KEY-NEXT-ITEM trigger that contains the code 'NEXT_ITEM;'
hope this helps, please mark as correct if it does.
Edited by: Ady Keeling on Jun 9, 2010 1:13 PM -
How do you show the data in Illustrator Graphs
How can I show the data in my graphs? I input the data and it creates the bar graph but doesn't show the actual numbers used to create the bars. I have to put them in manually. Anyone know?
Sorry but I am just not seeing how to get the data used to plot the graph to show without manually putting in the numbers after it creates the graph. Help details not very helpful. I can show the Value Axis info, the Category Axis info, and legend info but not the numbers used to plot the bars.
-
How to change Topic's Icon and show the Print Button
Hi, currently i'm using robohelp html version 8. I have spent quite some time to figure out how to change topic's Icon and show the Print Button in my project. Anyone can help me on this? Btw, i using MX(template) to generate the output with FlashHelp Pro.
Below is the screenshot for clearer clarification:
Thanks.We would have told you if there was.
Sorry but a downside of FlashHelp is that your customising options are limited.
See www.grainge.org for RoboHelp and Authoring tips
Follow me @petergrainge
Maybe you are looking for
-
Bug in Oracle lib: popen failed with pthread in Redhat 6.1
Dear Oracle developers, I need your help on this. I have used c and pthread in Redhat 6.1 and the moment I called popen, it dies. This happens only if I link some Oracle libraries. I am using ProC. The Oracle libraries in question are -lsql -L/export
-
I made a DVD from iPhoto and iMovie but I accidentally deleted the photos from iPhoto. The only copy I hav is a DVD. Is there a way to get the pictures from the DVD back to iPhoto?
-
F4 for 'LAUFD' and 'LAUFI' in my selection screen.
Hello experts, I have selecion screen like this: DATA: BEGIN OF tlaufk OCCURS 1. INCLUDE STRUCTURE ilaufk. DATA: END OF tlaufk. SELECTION-SCREEN: BEGIN OF BLOCK blk WITH FRAME TITLE text-001. PARAMETERS: p_zbukr TYPE reguh-zbukr OBL
-
My 2013 15" retina macbook pro screen has a yellow tint, should i ask for a replacement?
So yesterday i got my retina macbook pro 15 " and right away i noticed my worst fear ( since i previously had read some similar stories) my screen has a noticeable yellow tint specially on white tones, websites have a "newspaper look " to them, since
-
How do I create a folder?
Hello, I'm developing an app that has to create folders in the document directory, but this app is not running inside the portal, I mean, I have to set the user and password to do so. I found the objEditorModel class, where I think every object is cr