Dates with APIs
Dear all brothers ,
I am asking about dealing with dates in the concurrent programs parameters, like i created concurrent program contains date parameter but it gives me error says that *"literal does not match"* sure for dates so my question is what is the value set type should i use in the parameter , and which function should i use in the SQL to convert the passed date to the correct format to make the concurrent works?
Thank you in advance .
There are various date-related valuesets (I don't have access to an instance at the moment otherwise I would quote a couple of examples to you) - it will depend on whether or not you want to allow a time component to be included or not.
In any event, the date will more than likely be in the canonical format ('YYYY/MM/DD HH24:MI:SS') - you can convert the parameter value easily to a date data-type using the standard function fnd_date.canonical_to_date
Clive
Similar Messages
-
Issue with "firstRecord" Business Component method of JAVA Data bean API.
Hi,
Following is my use-case scenario:
I have to add or associate child MVG business component (CUT_Address)
with the parent business component (Account) using JAVA Data bean API.
My requirement is: first to check whether child business component(i.e. CUT_address) exists. If it exists then associate it with parent business component (Account)
otherwise create new CUT_address and associate it with account.
Code (using JAVA Data bean APIs) Goes as follows:
SiebelBusObject sBusObj = connBean.getBusObject("Account");
parentBusComp = sBusObj.getBusComp("Account");
SiebelBusComp parentBusComp;
SiebelBusComp childBusComp;
// retrieve required account.. Please assume Account1 exists
parentBusComp.activateField("Name");
parentBusComp.clearToQuery();
parentBusComp.setSearchSpec("Name", "Account1");
sBusComp.executeQuery2(true, true);
sBusComp.firstRecord();
Counter = 0;
while (counter < Number_Of_Child_Records_To_Insert)
childBusComp = parentBusComp.getMVGBusComp("City");
associatedChildBusComp = childBusComp.getAssocBusComp();
childBusComp.activateField("City");
childBusComp.clearToQuery();
childBusComp.setSearchSpec("City", Vector_of_city[counter]);
sBusComp.executeQuery2(true, true);
if( sBusComp.firstRecord() )
// Child already exist and do processing accordingly
else
// Child does not exist and do processing accordingly
childBusComp.release();
childBusComp = null;
associatedChildBusComp.release();
associatedChildBusComp=null;
Now the issue with this code is: For the first iteration, SbusComp.firstRecord returns 0 if records does not exist. However from the second iteration, SbusComp.firstRecord returns 1 even if there is no record matching the search specification.
Any input towards the issue is highly appreciable.
Thanks,
Rohit.Setting the view mode to "AllView" helped.
Thanks for the lead!
In the end, I also had to invoke the business component method SetAdminMode with "true" as the argument so that I could also modify the records from my script. -
The question says it all:
What Are The Minimum Permissions In Order An User To Be Able To Access User Profile Data With JavaScript And REST API.?
In the User Profile -> Permissions there is only the option for "Full Control".Hi Nikolay,
Thanks for posting your issue, you need to set permissions on User Profiles = Read. Kindly find the below mentioned URLs to get the code and more details on this.
http://www.vrdmn.com/2013/02/sharepoint-2013-working-with-user.html
http://www.vrdmn.com/2013/07/sharepoint-2013-get-userprofile.html
http://sharepoint.stackexchange.com/questions/61714/sharepoint-2013-call-the-rest-api-from-sharepoint-hosted-app
http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2013/04/09/how-to-query-sharepoint-2013-using-rest-and-javascript.aspx
I hope this is helpful to you, mark it as Helpful.
If this works, Please mark it as Answered.
Regards,
Dharmendra Singh (MCPD-EA | MCTS)
Blog : http://sharepoint-community.net/profile/DharmendraSingh -
Select table when import using Data Pump API
Hi,
Sorry for the trivial question, I export the data using Data Pump API, with "TABLE" mode.
So all tables will be exported in one .dmp file.
My question is, then how to import few tables only using Data Pump API?, how to define "TABLES" property like command line interface?
should I use DATA_FILTER procedures?, if yes how to do that?
Really thanks in advance
Regards,
KahlilHi,
You should be using metadata_filter procedure for the same.
eg:
dbms_datapump.metadata_filter
(handle1
,'NAME_EXPR'
,'IN (''TABLE1'', '"TABLE2'')'
{code}
Regards
Anurag -
How i map the caf data with data of UWL in web dynpro
Hi Experts,
i created a bpm project with nwce 7.1.1 and it have a independent caf to keep it's data and status.
now i have to create a view(use web dynpro) such like UWL,
my question is
how i map the caf data with UWL, and let the view can open the task(popup a window, just like UWL do) for user to finish their job?
thanks.Hi Vic
Your requirement is exect functionality of UWL based on WEBDYNPRO, CAF and BPM for automation? ,and question is How to use CAF with WD or CAF with UWL API's ?. please clarify it.
Please fo through from given doc misght give u some idea
1. [How to develop Web Dynpro UI for your CAF project |http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417300)ID0722080650DB02400261803144436507End?blog=/pub/wlg/5414]
Best Regards
Satish Kumar -
Oracle9i Enterprise Edition Release 9.0.1.1.1 Data Mining API
Is Data Mining API contained In Oracle9i Enterprise Edition Release 9.0.1.1.1 or in release 2 only?
ThanxNo it is not so simple. This "le signe est sur l'avant dernier octet" means that the sign is last character in number.
The sign "é" and "I" are just in my example and they are somehow calculated but I don't know how?
If I take my example there is field with format S9(13)V99 and with value 00000000071049é (and with last sign "é") and I think the last sign is somehow calculated from number. And then from this value I get the number.
00000000071049é
FFFFFFFFFFFFFFC
000000000710490 => +0000000007104,90
S9999999999999V99
Everything I try, calculating from binary to hex, or anything other, I don't get the result or the last sign and I wonder if there is some function in PL/SQL that I can use to get the result I want?
Or if you have some idea how to help me to get from "00000000071049é" to "+0000000007104,90" from example above?
Here are some other examples, just for help:
000000204592D
000000183882D
000000139441C
000000182979H
000000083361F
000000083361F
000000083361F
000000059033F
000000066273E
000000069011G
000000102615B
000000092362F
000000138215‚
000000138215‚
000000138215‚
000000138215‚
000000106760C
000000106760C
000000106760C
000000115024A
000000115024A
000000115024A
000000115024A
000000115024A
000000088149B
000000084459I -
Submitting data through API without exposing DB credentials
Submitting transaction / master data through API without exposing DB credentials
I am developing a scenario where I will submit transaction / master data like sales order / master item to Oracle apps (EBS) through MS Excel via API / interface table but like to provide only apps (EBS) user credentials rather then DB credentials so DB password could not expose to normal end user. Please suggest something on same.
[email protected]
Thanks & regards,
Sachin GuptaSachin, you need a valid userid and password to connect to the database.
Since these APIs are defined under apps, you need apps password to execute them.
The workaround is that you define a new d/b userid.
Grant execute on the API (and other objects as necessary) to this user.
And then you call the api using the new userid and password.
This way you are not exposing apps password. But since this means you have to grant a number of accesses to this new user.
If you can use the interface tables, it becomes a little easier.
All you have to do is grant insert access on a handful of interface to this new userid. And then you schedule a concurrent program that will process the interface records.
If you absolutely can not expose ANY database password, then you can communicate with EBS using flat files. Your system creates a flat file on the server and a scheduled program in EBS reads the files and calls appropriate api.
Hope this helps,
Sandeep Gandhi -
Oracle Export Data pump API - job already exists
Hi all,
I use stored procedure and using data pump API for export and import. I use simple schema export from http://download.oracle.com/docs/cd/B14117_01/server.101/b10825/dp_api.htm . It works on the first executing, but the second time
I found the error ORA-31634: job already exists.
At the first running I check the Job state from dba_datapump_jobs master table, and it stated DEFINING after process completed.
why is it happened?
Really thanks in advance.
Regards,
Mr.KMy question go in direction to:
1. Did I something wrong with Data Pump Utility?I do not think so. But may be with the existing schema :-(
2. How is the correct way to export and import
sequences that they keep their actual values?If the Sequences exist in the target before the import, oracle does not drop and recreate it. So you need to ensure that the sequences do not already exist in the target or the existing ones are dropped before the import.
3. When the behaviour described here is correct, how
can I correct the values that start again from the
last value that was used in the source database?You can either refresh with the import after the above correction or drop and manually recreate the sequences to START WITH the NEXT VALUE of the source sequences.
The easier way is to generate a script from the source if you know how to do it -
Highlight Dates with Events in YUI Calendar
I have created a calendar in Dreamweaver CS4 using the YUI Calendar widget and a Spry data set, following the instructions from the Adobe Developer Connection articles. (http://www.adobe.com/devnet/dreamweaver/articles/using_yui_widgets.html) I think it works well for my purposes, however I think it would be more user friendly if I could have dates with events highlighted.
For example, if there was an event on December 15, 2009, I would want that date in the YUI Calendar to be highlighted in a different color.
I have read some different ways to do so, but I have limited knowledge of CSS and barely understand any JavaScript.
Is there anyone who can provide me with a simple way to highlight these dates? I would really appreciate any help.For those of you JavaScript people who don't use YUI, here's the code for my page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>SSAC /// Calendar</title>
<script src="SpryAssets/SpryData.js" type="text/javascript"></script>
<script src="SpryAssets/SpryHTMLDataSet.js" type="text/javascript"></script>
<script src="scripts/YUI/2.6.0/build/yahoo-dom-event/yahoo-dom-event.js" type="text/javascript"></script>
<script src="scripts/YUI/2.6.0/build/calendar/calendar-min.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
var ds1 = new Spry.Data.HTMLDataSet("events.html", "events");
//-->
</script>
<link href="main.css" rel="stylesheet" type="text/css" />
<link href="scripts/YUI/2.6.0/build/fonts/fonts-min.css" rel="stylesheet" type="text/css" />
<link href="scripts/YUI/2.6.0/build/calendar/assets/skins/sam/calendar.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="header"></div>
<div id="navbar"><script type="text/javascript" src="navbar.js"></script></div>
<div id="content">
<div id="yuicalendar1"></div>
<script type="text/javascript">
// BeginWebWidget YUI_Calendar: yuicalendar1
(function() {
var cn = document.body.className.toString();
if (cn.indexOf('yui-skin-sam') == -1) {
document.body.className += " yui-skin-sam";
var inityuicalendar1 = function() {
var yuicalendar1 = new YAHOO.widget.Calendar("yuicalendar1");
// The following event subscribers demonstrate how to handle
// YUI Calendar events, specifically when a date cell is
// selected and when it is unselected.
// See: http://developer.yahoo.com/yui/calendar/ for more
// information on the YUI Calendar's configurations and
// events.
// The YUI Calendar API cheatsheet can be found at:
// http://yuiblog.com/assets/pdf/cheatsheets/calendar.pdf
//--- begin event subscribers ---//
yuicalendar1.selectEvent.subscribe(selectHandler, yuicalendar1, true);
yuicalendar1.deselectEvent.subscribe(deselectHandler, yuicalendar1, true);
//--- end event subscribers ---//
yuicalendar1.render();
function selectHandler(event, data) {
// The JavaScript function subscribed to yuicalendar1. It is called when
// a date cell is selected.
// alert(event) will show an event type of "Select".
// alert(data) will show the selected date as [year, month, date].
var formattedDateString = data[0][0][1] + "/" + data[0][0][2] + "/" + data[0][0][0];
var r = ds1.findRowsWithColumnValues({"Date": formattedDateString }, true);
var region = Spry.Data.getRegion("events");
if(r){
ds1.setCurrentRow(r.ds_RowID);
region.setState("showEvent", true);
} else {
region.setState("ready", true);
function deselectHandler(event, data) {
// The JavaScript function subscribed to yuicalendar1. It is called when
// a selected date cell is unselected.
// Create the YUI Calendar when the HTML document is usable.
YAHOO.util.Event.onDOMReady(inityuicalendar1);
// EndWebWidget YUI_Calendar: yuicalendar1
</script>
<div spry:detailregion="ds1" id="events">
<div spry:state="showEvent">
<table width="400" border="0">
<tr>
<td colspan="2">Event Name:{Event}</td>
</tr>
<tr>
<td rowspan="3"><u>Desription:</u><br />
{Description}</td>
<td><u>Time:</u> {Time}</td>
</tr>
<tr>
<td><u>Location:</u> {Location}</td>
</tr>
<tr>
<td><u>Contact:</u> {Contact}</td>
</tr>
</table>
</div>
<div spry:state="ready"> There are no events on this date. Please select another date. </div>
</div>
</div>
<div id="footer"><script type="text/javascript" src="footer.js"></script></div>
</div>
</body>
</html>
I hope this helps. -
Display dropdown by key data with sorting
Hi,
My requirement is to display dropdown by key data with sorting getting this data from XML in KM.
Tell me different possibilities to sort the data.
Regards,
surya.Hi,
Use DropDownByIndex instead of DropDownByKey
Create a node with a attribute for eg. Colors node with Color attribute and add the values in the elements of the node, Bind attribute to DropDownByIndex UI.
Create a custom comparator class like below
import java.util.Comparator;
import com.sap.tc.webdynpro.progmodel.api.IWDNodeElement;
import com.sap.tc.webdynpro.progmodel.repository.enums.WDComponentLifecycleEnumInfo;
public class CustomComparator implements Comparator {
String attribute;
public CustomComparator(String attrib) {
this.attribute = attrib;
public int compare(Object o1, Object o2) {
try
IWDNodeElement units1 = (IWDNodeElement) o1;
IWDNodeElement units2 = (IWDNodeElement) o2;
return units1.getAttributeAsText(attribute).compareTo(units2.getAttributeAsText(attribute));
catch (Exception e)
e.printStackTrace();
//arbitrary order
return 1;
Once you read values in the Colors node, call the sortElements method of the node as below to sort the elements of the node
wdContext.nodeColors().sortElements(new CustomComparator("Color"));
Regards,
Amol -
Encrypt data with public key?
I am trying to find a class that support encryption with PublicKey.
In the class Signature there is a method "initSign" that takes a PrivateKey as argument, but that is used for signing certificates.
What I am looking for is to make A encrypt some data with B' public key that B can decrypt with its private key...is there any class for this scenario?You might want to check out these, if you haven't already:
http://java.sun.com/j2se/1.5.0/docs/guide/security/CryptoSpec.html
http://java.sun.com/j2se/1.5.0/docs/guide/security/jce/JCERefGuide.html
http://java.sun.com/j2se/1.5.0/docs/api/javax/crypto/package-summary.html
http://java.sun.com/j2se/1.5.0/docs/api/javax/crypto/interfaces/package-summary.html
http://java.sun.com/j2se/1.5.0/docs/api/javax/crypto/spec/package-summary.html -
Offline Data (Data Sources) API/FTP for Adobe Analytics
Hello all,
Just wondering if the offline data (Data Sources) API/FTP functionality from SiteCatalyst still available with Adobe Analytics?
How to Get Data In and Out of SiteCatalyst - Part I - Digital Marketing Blog by AdobeHi,
Download the Developer guide and there is a section called Reports API for Analytics.
I have my self done some custom reports from the Analytics data in the DB and its not terrible complex to "reverse engineer". But what I now there is no documentation for this, maybe looking at the SQL files for creating the schemas might help.
Cheers,
Stefan -
As I am new to this forum first:
"Hello to all !"
Does anybody has an idea, how to replicate data from one cube to another cube with the essbase java api ?
Problem:
I have a Webserver running and the webapplication is developed with jsp.
I want my users give the possibility to replicate data from a source cube to a target cube.
it would be great if i could integrate this into my jsp's.
(Essbase 7.1.0 )
thank you
CrashiIt depends on what you want to do.. The Java API gives you almost limitless possibilities.
For example, do you want the second cube in synch? You could use the API to update the outline on the fly as well.
Alternatively, do you want to export from the first cube and then load data with a load rule? You can do that too. It all depends on what you want to do given the limitations of the Java API.
Addressing the limitations of the API.. In 7x, the main items missing from the API was the ability to create load rules; none of the Essbase APIs currently support that. Further, you could not do anything with Essbase security/users/filters/etc nor could you create partitions. In 9.3.x, the ability to manipulate security/users/filters/etc was added.
Tim Tow
Applied OLAP, Inc -
Is there a Business Objects Data Integrator API / SDK to "execute" DI jobs?
Hello,
I am searching for a Business Objects Data Integrator API / SDK that can be used to remotely execute BOBJ DI jobs (like in scheduling BOBJ XI docs).
I found AdapterSDK from BOBJ DI but this is used to create adapters usable with DI (for various sources and targets). I am interested only in executing an already created job...
Thank you in advance,
Adrian MitricaYou'll probably be better off posting here:
[SAP Community Network Forums » Enterprise Information Management » Data Integration and Quality Management|
I'm just going by the description of the forum but that looks better than this one(?):
This forum is dedicated to topics related to Data Integration (Data Integrator, Data Federator, Text Analysis for Data Integrator, Rapid Marts, and Integration for PeopleSoft Enterprise), Data Quality (Data Quality and Data Insight), and Metadata Management.
I'd move your thread but I do not have the rights to do this move...
Good luck,
- Ludek -
Accessing shape data with actionscript
Hello.
I'm wondering, is it possible to access shape data with
actionscript. I want to draw simple lines with "line tool"
somewhere in my movieclip and then to access information about my
lines with actionscript to get startX, startY and endX endY of
every line. Is it possible?
thank you.I do not believe so. Once you draw a primitive on the stage
with the api I believe that is all you get. If you create a sprite
object and then draw into that you might be able to get the sprite
properties. You may also be able to do the same thing with a
container movieclip. I don't think just drawing a line with the api
on the stage will give you anything the reference.
Maybe you are looking for
-
Report Error Message in BPM Alert?
Hi, I designed a BPM with a transformation step and a send step. For each step I have an exception branch where I want to trigger an alert, when something goes wrong. I already configured in TC ALRTCATDEF an alert category (Dynamic Text activated). A
-
How much inrush current on HP LaserJet Pro P1102 Printer ?
I have an HP LaserJet Pro P1102 Printer. I want to connect it with the UPS (or maybe power generator). To calculate the rated power of UPS, I would like to know how much the inrush current of this printer model.
-
Some PDF's will print in 7 Pro but not 8 Pro?
Certain PDF's will print in 7 but not in 8? Is it connected to 10.5.5 or 10.5.6? or maybe CS4? Has anyone else had this problem?
-
Help!! iPhoto 4.0 will not open
When I go to open iPhoto it appears to be loading photos for a few seconds until it quits Unexpectedly.. So then I tried to install iPhoto504 but got the following message (An eligible iPhoto application could not be found in /Applications.) Please h
-
When I type something in the Google or YouTube dialog box I can't tab backwards or edit the words. Cursor seems to get stuck and won't work.