How to pass cPath in ExportAsXfdf when we call javascipt from our plugin??
Hi
I am able to export file using javascript through my plugin..But if I pass cPath variable also, it does nothing..I am not able to pass to cPath value properly..
what should be the syntax of cPath when we call javascript from plugin??
If I write this
char * buf = "this.exportAsXFDF({bAnnotations:true});";
AFExecuteThisScript(pdDoc, buf, NULL);
It runs fine,.
But if I also mention cPath it fails to export xfdf
char path[256] = "//C//Users//ishitas//Desktop//ishita.xfdf";
char * buf = "this.exportAsXFDF({cPath:path,bAnnotations:true});";
AFExecuteThisScript(pdDoc, buf, NULL);
or
char * buf = "this.exportAsXFDF({cPath: \"//C//Users//ishitas//Desktop//ishita.xfdf\",bAnnotations:true});";
AFExecuteThisScript(pdDoc, buf, NULL);
How should I pass cPath????
please help..
Hi Malcolm,
Thanks for the reply...it really helped me a lot to solve the problem.
Similar Messages
-
How to delete the temporary files when we log out from ESS
Hello expert,
In my company we are running ESS using ITS server, do you know how to delete the temporary files when we log out from ESS?
Thanks.The temporary files used by ESS. For example paystub pdf file.
-
My Iphone 4s reciever is not working properly, when i call someone from my iphone 4s. can any one help me how to solve this problem?
You might like to define "not working properly".
-
How do I install recommended updates, when I click on adobe flash plugin update now buttons, I hit a dead end on oracle's website, how do I complete the update?
First, grab the Adobe uninstaller from here:
http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-windows.html
Then download Flash 10.3.183.90 from here - about halfway down the page:
http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html
(Released 6/11/2013) Flash Player 10.3.183.90 (61.1 MB)
IMO, the best version of Flash for WinXP. Adobe kept up with security updates for 10.3 for WinXP users long after Flash 11.0 came out in 2011 for Vista and newer versions of Windows.
Run the uninstaller, then reboot your operating system.
Then you can run the Flash installer, with Firefox closed, of course.
''Note, if you still use IE you'll need to reinstall the ActiveX version of Flash for IE. That uninstaller removes all versions of Flash that might be installed,'' -
We have a 5s active on our account. After turning on a previously active 4s (it had the same number) The 5s can no longer place call and when you call it from another phone the 4s rings, but will not pick up. Texting over the cell networks works fine. Any suggestions??
hens0861,
Hmm, let's ensure this is working as it should be! So what phone should be active on your account? Did you switch the devices online or how to did you activate the 5s? Please share details.
KarenC_VZW
Follow us on Twitter @VZWSupport -
I cannot log onto the App Store, the page appears when I call it from the dock or the Apple menu and I can call the log-in box from the menu bar, but on signing in the spinning icon just keeps spinning,(not the beachball). Using 10.6.7 and up-to-date on all software. Any suggestions?
Could be a third party app preventing you from being able to login.
Mac App Store: Sign in sheet does not appear, or does not accept typed text
If it's not a third party issue, follow the instructions here.
Quit the MAS if it's open.
Open a Finder window. Select your Home folder in the Sidebar on the left then open the Library folder then the Caches folder.
Move the com.apple.appstore and the com.apple.storeagent files from the Caches folder to the Trash
From the same Library folder open the Preferences folder.
Move these files Preferences folder to the Trash: com.apple.appstore.plist and com.apple.storeagent.plist
Same Library folder open the Cookies folder. Move the com.apple.appstore.plist file from the Cookies folder to the Trash.
Relaunch the MAS. -
ExtendToolscript opens when I call script from photoshop
Hey,
I asked this question over in general discussions by mistake so I though I would re-ask it here.
I have a Javascript that I have written that builds a interface of buttons in organised groups based on the contents of certain folders. Everything works fine but when you call it from photoshop and extendtoolscript isn't running it always opens it up. I have written a lot of scripts with interfaces and I have never had this problem. Its not a huge problem for me as I usually have this program open anyway but I intend to have a team of people using this script so if I could stop it somehow it would be much better.
Has anyone experienced this before? Or perhaps knows of functions that cause extendscript to open?
I can't see anything unusual in the script...
Any help would be appreciated!
Thanks,
Mark
var strtRulerUnits = app.preferences.rulerUnits;
var strtTypeUnits = app.preferences.typeUnits;
app.preferences.rulerUnits = Units.PIXELS;
app.preferences.typeUnits = TypeUnits.PIXELS;
var templatepath = "~/Desktop/BANNERS/";
var bannerfile = ""
var docRef = app.activeDocument;
var fileArray = new Array();
var sourceFolder = Folder (templatepath + "MAIN/");
var extRE = /\.(?:png|gif|jpg|bmp|tif|psd)$/i;
// get all files in source folder
var docs = sourceFolder.getFiles();
var len = docs.length;
for (var i = 0; i < len; i++) {
var doc = docs[i];
// only match files (not folders)
if (doc instanceof File) {
// store all recognized files into an array
var docName = doc.name;
if (docName.match(extRE)) {
fileArray.push(doc);
var w = new Window ("dialog", "Choose a Banner");
w.preferredSize = [400, 100];
w.orientation = 'row';
w.alignChildren = "left"
w.alignChildren = [ "fill", "fill"];
w.btnPnl = w.add('panel', undefined, 'MAIN');
w.btnPnl.btn = w.add ("group");
w.btnPnl.btn.alignChildren = "left"
var buttonarray = new Array ();
var key = {};
for (var i = 0; i < fileArray.length ; i++) {
var delimeter = '/';
var string = String (fileArray[i]);
var splitted = string.split(delimeter);
var thelength = ((splitted.length) - 1);
var bannername = splitted[thelength];
var delimeter = '.';
var splitted = bannername.split(delimeter);
var bannername = splitted[0];
var checkdelim = "%20";
var checkthat = bannername.indexOf(checkdelim);
if (checkthat == "-1") {}
else {
var delimeter = '%20';
var splitted = bannername.split(delimeter);
var counter = 0;
while (counter < splitted.length){
if (counter == 0){
var bannername = (splitted[counter] + " ");
else if (counter == ((splitted.length) - 1)){
var bannername = (bannername + splitted[counter]);
else{
var bannername = (bannername + splitted[counter] + " ");
var counter = (counter + 1);
if (fileArray.length > 6){
var divider = 2
else{
var divider = 1
var remainder = (i % divider);
if (remainder == 0){
w.btnPnl.btn = w.btnPnl.add ("group");
w.btnPnl.btn.alignChildren = "left"
} else {
//x is not a multiple of y
key = (String (fileArray[i]));
w[key] = w.btnPnl.btn.add("button", undefined ,bannername );
w[key].alignment = 'left';
buttonarray.push(w[key]);
w.btnPnl.btn.addEventListener('click', button_pressed);
function button_pressed (e)
if (e.target.type == "button")
$.writeln (e.target.text + " from panel " + e.target.parent.text);
w.close()
var buttonname = e.target.text;
var checkdelim = " ";
var checkthat = buttonname.indexOf(checkdelim);
if (checkthat == "-1") {}
else {
var delimeter = ' ';
var splitted = buttonname.split(delimeter);
var counter = 0;
while (counter < splitted.length){
if (counter == 0){
var buttonname = (splitted[counter] + "%20");
else if (counter == ((splitted.length) - 1)){
var buttonname = (buttonname + splitted[counter]);
else{
var buttonname = (buttonname + splitted[counter] + "%20");
var counter = (counter + 1);
bannerfile = new File (templatepath + "MAIN/" + buttonname + '.png');
var fileArrayneon = new Array();
var sourceFolder = Folder (templatepath + "NEON/");
var extRE = /\.(?:png|gif|jpg|bmp|tif|psd)$/i;
// get all files in source folder
var docs = sourceFolder.getFiles();
var len = docs.length;
for (var i = 0; i < len; i++) {
var doc = docs[i];
// only match files (not folders)
if (doc instanceof File) {
// store all recognized files into an array
var docName = doc.name;
if (docName.match(extRE)) {
fileArrayneon.push(doc);
w.btnPnl = w.add('panel', undefined, 'NEON');
w.btnPnl.btn = w.add ("group");
var buttonarray = new Array ();
var key = {};
for (var i = 0; i < fileArrayneon.length ; i++) {
var delimeter = '/';
var string = String (fileArrayneon[i]);
var splitted = string.split(delimeter);
var thelength = ((splitted.length) - 1);
var bannername = splitted[thelength];
var delimeter = '.';
var splitted = bannername.split(delimeter);
var bannername = splitted[0];
var checkdelim = "%20";
var checkthat = bannername.indexOf(checkdelim);
if (checkthat == "-1") {}
else {
var delimeter = '%20';
var splitted = bannername.split(delimeter);
var counter = 0;
while (counter < splitted.length){
if (counter == 0){
var bannername = (splitted[counter] + " ");
else if (counter == ((splitted.length) - 1)){
var bannername = (bannername + splitted[counter]);
else{
var bannername = (bannername + splitted[counter] + " ");
var counter = (counter + 1);
if (fileArrayneon.length > 6){
var divider = 2
else{
var divider = 1
var remainder = (i % divider);
if (remainder == 0){
w.btnPnl.btn = w.btnPnl.add ("group");
w.btnPnl.btn.alignChildren = "left"
} else {
//x is not a multiple of y
key = (String (fileArrayneon[i]));
w[key] = w.btnPnl.btn.add("button", undefined ,bannername );
w[key].alignment = 'left';
buttonarray.push(w[key]);
w.btnPnl.btn.addEventListener('click', button_pressed);
function button_pressed (e)
if (e.target.type == "button")
$.writeln (e.target.text + " from panel " + e.target.parent.text);
w.close()
var buttonname = e.target.text;
var checkdelim = " ";
var checkthat = buttonname.indexOf(checkdelim);
if (checkthat == "-1") {}
else {
var delimeter = ' ';
var splitted = buttonname.split(delimeter);
var counter = 0;
while (counter < splitted.length){
if (counter == 0){
var buttonname = (splitted[counter] + "%20");
else if (counter == ((splitted.length) - 1)){
var buttonname = (buttonname + splitted[counter]);
else{
var buttonname = (buttonname + splitted[counter] + "%20");
var counter = (counter + 1);
bannerfile = new File (templatepath + "NEON/" + buttonname + '.png');
var fileArray180 = new Array();
var sourceFolder = Folder (templatepath + "180/");
var extRE = /\.(?:png|gif|jpg|bmp|tif|psd)$/i;
// get all files in source folder
var docs = sourceFolder.getFiles();
var len = docs.length;
for (var i = 0; i < len; i++) {
var doc = docs[i];
// only match files (not folders)
if (doc instanceof File) {
// store all recognized files into an array
var docName = doc.name;
if (docName.match(extRE)) {
fileArray180.push(doc);
w.btnPnl = w.add('panel', undefined, '180');
w.btnPnl.btn = w.add ("group");
var buttonarray = new Array ();
var key = {};
for (var i = 0; i < fileArray180.length ; i++) {
var delimeter = '/';
var string = String (fileArray180[i]);
var splitted = string.split(delimeter);
var thelength = ((splitted.length) - 1);
var bannername = splitted[thelength];
var delimeter = '.';
var splitted = bannername.split(delimeter);
var bannername = splitted[0];
var checkdelim = "%20";
var checkthat = bannername.indexOf(checkdelim);
if (checkthat == "-1") {}
else {
var delimeter = '%20';
var splitted = bannername.split(delimeter);
var counter = 0;
while (counter < splitted.length){
if (counter == 0){
var bannername = (splitted[counter] + " ");
else if (counter == ((splitted.length) - 1)){
var bannername = (bannername + splitted[counter]);
else{
var bannername = (bannername + splitted[counter] + " ");
var counter = (counter + 1);
if (fileArray180.length > 6){
var divider = 2
else{
var divider = 1
var remainder = (i % divider);
if (remainder == 0){
w.btnPnl.btn = w.btnPnl.add ("group");
w.btnPnl.btn.alignChildren = "left"
} else {
//x is not a multiple of y
key = (String (fileArray180[i]));
w[key] = w.btnPnl.btn.add("button", undefined ,bannername );
w[key].alignment = 'left';
buttonarray.push(w[key]);
w.btnPnl.btn.addEventListener('click', button_pressed);
function button_pressed (e)
if (e.target.type == "button")
$.writeln (e.target.text + " from panel " + e.target.parent.text);
w.close()
var buttonname = e.target.text;
var checkdelim = " ";
var checkthat = buttonname.indexOf(checkdelim);
if (checkthat == "-1") {}
else {
var delimeter = ' ';
var splitted = buttonname.split(delimeter);
var counter = 0;
while (counter < splitted.length){
if (counter == 0){
var buttonname = (splitted[counter] + "%20");
else if (counter == ((splitted.length) - 1)){
var buttonname = (buttonname + splitted[counter]);
else{
var buttonname = (buttonname + splitted[counter] + "%20");
var counter = (counter + 1);
bannerfile = new File (templatepath + "180/" + buttonname + '.png');
var fileArraymisc = new Array();
var sourceFolder = Folder (templatepath + "MISC/");
var extRE = /\.(?:png|gif|jpg|bmp|tif|psd)$/i;
// get all files in source folder
var docs = sourceFolder.getFiles();
var len = docs.length;
for (var i = 0; i < len; i++) {
var doc = docs[i];
// only match files (not folders)
if (doc instanceof File) {
// store all recognized files into an array
var docName = doc.name;
if (docName.match(extRE)) {
fileArraymisc.push(doc);
w.btnPnl = w.add('panel', undefined, 'MISC');
w.btnPnl.btn = w.add ("group");
var buttonarray = new Array ();
var key = {};
for (var i = 0; i < fileArraymisc.length ; i++) {
var delimeter = '/';
var string = String (fileArraymisc[i]);
var splitted = string.split(delimeter);
var thelength = ((splitted.length) - 1);
var bannername = splitted[thelength];
var delimeter = '.';
var splitted = bannername.split(delimeter);
var bannername = splitted[0];
var checkdelim = "%20";
var checkthat = bannername.indexOf(checkdelim);
if (checkthat == "-1") {}
else {
var delimeter = '%20';
var splitted = bannername.split(delimeter);
var counter = 0;
while (counter < splitted.length){
if (counter == 0){
var bannername = (splitted[counter] + " ");
else if (counter == ((splitted.length) - 1)){
var bannername = (bannername + splitted[counter]);
else{
var bannername = (bannername + splitted[counter] + " ");
var counter = (counter + 1);
if (fileArraymisc.length > 6){
var divider = 2
else{
var divider = 1
var remainder = (i % divider);
if (remainder == 0){
w.btnPnl.btn = w.btnPnl.add ("group");
w.btnPnl.btn.alignChildren = "left"
} else {
//x is not a multiple of y
key = (String (fileArraymisc[i]));
w[key] = w.btnPnl.btn.add("button", undefined ,bannername );
w[key].alignment = 'left';
buttonarray.push(w[key]);
w.btnPnl.btn.addEventListener('click', button_pressed);
function button_pressed (e)
if (e.target.type == "button")
$.writeln (e.target.text + " from panel " + e.target.parent.text);
w.close()
var buttonname = e.target.text;
var checkdelim = " ";
var checkthat = buttonname.indexOf(checkdelim);
if (checkthat == "-1") {}
else {
var delimeter = ' ';
var splitted = buttonname.split(delimeter);
var counter = 0;
while (counter < splitted.length){
if (counter == 0){
var buttonname = (splitted[counter] + "%20");
else if (counter == ((splitted.length) - 1)){
var buttonname = (buttonname + splitted[counter]);
else{
var buttonname = (buttonname + splitted[counter] + "%20");
var counter = (counter + 1);
bannerfile = new File (templatepath + "MISC/" + buttonname + '.png');
w.show();
if (bannerfile == ""){}
else{
var targetDocumentName = docRef.name;
var tempfile = app.open (bannerfile);
var sourceDocumentName = app.activeDocument.name;
var thewidth = tempfile.width;
var theheight = tempfile.height;
app.activeDocument = docRef;
docRef.resizeImage (null, theheight, null, ResampleMethod.BICUBIC);
if ((String(thewidth)) == (String(docRef.width))){
var thelayer = docRef.activeLayer;
copyLayers(sourceDocumentName, targetDocumentName );
docRef.activeLayer = thelayer;
else {
alert ("Document width Incorrect")
docRef.activeLayer.name = "main";
var thelayer = docRef.activeLayer;
docRef.resizeCanvas (thewidth, null, AnchorPosition.BOTTOMCENTER);
copyLayers(sourceDocumentName, targetDocumentName );
docRef.activeLayer = thelayer;
imageView ("FtOn");
function copyLayers(sourceDocumentName, targetDocumentName) {
var sourceDoc = app.documents[sourceDocumentName];
var targetDoc = app.documents[targetDocumentName];
var sourceLayer, targetLayer, sourceGroup;
if (app.activeDocument != sourceDoc) {
app.activeDocument = sourceDoc;
var thelayer = tempfile.layers[0];
var layersToCopy = thelayer.name;
if ( typeof layersToCopy === 'string' ) {
sourceGroup = tempfile.layers[0];
targetLayer = sourceGroup.duplicate( targetDoc, ElementPlacement.PLACEATBEGINNING )
else if ( Object.prototype.toString.call( layersToCopy ) === '[object Array]' ) {
for (var i = 0; i < layersToCopy.length; i++) {
sourceLayer = sourceDoc.artLayers.getByName( layersToCopy[i] );
targetLayer = sourceLayer.duplicate( targetDoc, ElementPlacement.PLACEATBEGINNING );
tempfile.close(SaveOptions.DONOTSAVECHANGES);
function imageView (view) {
desc= new ActionDescriptor();
ref = new ActionReference();
if (view.length < 5){
var viewID = charIDToTypeID( view );
}else{
var viewID = stringIDToTypeID( view );
ref.putEnumerated( charIDToTypeID( "Mn " ), charIDToTypeID( "MnIt" ), viewID );
desc.putReference( charIDToTypeID( "null" ), ref );
executeAction( charIDToTypeID( "slct" ), desc, DialogModes.NO );$.writeln ( ) writes the specified text to the JavaScript Console in ExtendScript Toolkit.
You probably need to comment out the 4 occurences of the following line, apparently used for debugging purposes:
$.writeln (e.target.text + " from panel " + e.target.parent.text); -
How to pass a Variable value into an ODI Scenario from ODI Package
I have created an Interface that uses the variable #ENTITY_ID for retrieving entity data from the DWH; now I have generated a Scenario from the interface and placed the Scenario in an ODI Package; am not sure how to pass the #ENTITY_ID variable to the ODI Scenario?
Any help is greately appreciated.
Best Regards
BeeHi Sutrtha,
Yeah I got the pop up asking to select the variables used, I have selected ENTITY_ID that was used by the interfaces, but on execution of the package the Scenario did not work as the passeed variable #ENTITY_ID is set to 0 instead of the value I am passing.
Am I missing something?
Regards
B -
How to passing array as parameter to oracle stored procedure from JPA
Hi All,
I need to call a stored proc in Oracle that accepts an array as input parameter.
Pls let me know how should i call it from my JPA. Is this even possible without using JDBC directly?
i keep getting the ff error:
wrong number or types of arguments in call to ....
my code is something like this:
String[] myArr...
Query query = em.createNativeQuery("BEGIN myStoredProc(:arr); END;");
query.setParameter("arr", myArr);
Thanks in advance.I also fail to get this done my code till now is:
PLSQL Function:
function getHtml(pWhere VARCHAR2 DEFAULT NULL,
pColSort HTP.STRINGARRAY) return clob is
begin
errorhndl.Log(pMessage => 'called');
htp.prn('das ist der test
for i in 1 .. pColSort.count loop
htp.p('
pColSort['||i||']: '||pColSort(i));
end loop;
htp.prn('
<table> <tr> <td> max1.0 </td> <td> max2.0 </td> </tr>');
htp.prn('<tr> <td> max1.1 </td> <td> max2.1 </td> </tr> </table>');
htp.prn('test ende');
return htp.gHtpPClob;
exception
when others then
null;
end getHtml;
PLSQL TYPE: (in HTP package - self created - but could be anywhere else too)
type STRINGARRAY is table of varchar2(256) index by binary_integer;
JAVA DOA:
public class ShowReportDOAImpl implements ShowReportDOA {
private JdbcTemplate jdbcTemplate;
private SimpleJdbcCall procShowReport;
public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
this.jdbcTemplate = jdbcTemplate;
procShowReport = new SimpleJdbcCall(this.jdbcTemplate)
.withCatalogName("Show_Report")
.withFunctionName("getHtml")
.withoutProcedureColumnMetaDataAccess()
.declareParameters(
new SqlParameter("pWhere", Types.VARCHAR),
new SqlParameter("pColSort", Types.ARRAY, "HTP.STRINGARRAY"),
new SqlOutParameter("RETURN", Types.CLOB)
public String readReport(Long id, ParameterHelper ph) {
String[] sortCol = {"max", "michi", "stefan"};
String pWhere = "fritz";
MapSqlParameterSource parms = new MapSqlParameterSource();
parms.addValue("pWhere", pWhere);
parms.addValue("pColSort", sortCol, Types.ARRAY, "HTP.STRINGARRAY");
parms.addValue("pColSort", Arrays.asList(sortCol), Types.ARRAY, "HTP.STRINGARRAY");
Clob clob = procShowReport.executeFunction(Clob.class, parms);
String clobString = "";
try {
System.out.println("length: "+new Long(clob.length()).intValue());
clobString = clob.getSubString(1, new Long(clob.length()).intValue());
} catch (SQLException e) {
e.printStackTrace();
return clobString;
EXCEPTION IS:
org.springframework.jdbc.UncategorizedSQLException: CallableStatementCallback; uncategorized SQLException for SQL [{? = call SHOW_REPORT.GETHTML(?, ?)}]; SQL state [null]; error code [17059]; Konvertierung zu interner Darstellung nicht erfolgreich: [max, michi, stefan]; nested exception is java.sql.SQLException: Konvertierung zu interner Darstellung nicht erfolgreich: [max, michi, stefan]
org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:83)
org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80)
org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80)
org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:969)
org.springframework.jdbc.core.JdbcTemplate.call(JdbcTemplate.java:1003)
org.springframework.jdbc.core.simple.AbstractJdbcCall.executeCallInternal(AbstractJdbcCall.java:391)
org.springframework.jdbc.core.simple.AbstractJdbcCall.doExecute(AbstractJdbcCall.java:354)
org.springframework.jdbc.core.simple.SimpleJdbcCall.executeFunction(SimpleJdbcCall.java:154)
at.ontec.cat.config.doa.ShowReportDOAImpl.readReport(ShowReportDOAImpl.java:47)
at.ontec.cat.http.ShowReport.doGet(ShowReport.java:80)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
root cause
java.sql.SQLException: Konvertierung zu interner Darstellung nicht erfolgreich: [max, michi, stefan]
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:124)
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:161)
oracle.jdbc.driver.DatabaseError.check_error(DatabaseError.java:860)
oracle.sql.ARRAY.toARRAY(ARRAY.java:209)
oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:7767)
oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:7448)
oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:7836)
oracle.jdbc.driver.OracleCallableStatement.setObject(OracleCallableStatement.java:4586)
org.apache.commons.dbcp.DelegatingPreparedStatement.setObject(DelegatingPreparedStatement.java:166)
org.apache.commons.dbcp.DelegatingPreparedStatement.setObject(DelegatingPreparedStatement.java:166)
org.springframework.jdbc.core.StatementCreatorUtils.setValue(StatementCreatorUtils.java:356)
org.springframework.jdbc.core.StatementCreatorUtils.setParameterValueInternal(StatementCreatorUtils.java:216)
org.springframework.jdbc.core.StatementCreatorUtils.setParameterValue(StatementCreatorUtils.java:127)
org.springframework.jdbc.core.CallableStatementCreatorFactory$CallableStatementCreatorImpl.createCallableStatement(CallableStatementCreatorFactory.java:212)
org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:947)
org.springframework.jdbc.core.JdbcTemplate.call(JdbcTemplate.java:1003)
org.springframework.jdbc.core.simple.AbstractJdbcCall.executeCallInternal(AbstractJdbcCall.java:391)
org.springframework.jdbc.core.simple.AbstractJdbcCall.doExecute(AbstractJdbcCall.java:354)
org.springframework.jdbc.core.simple.SimpleJdbcCall.executeFunction(SimpleJdbcCall.java:154)
at.ontec.cat.config.doa.ShowReportDOAImpl.readReport(ShowReportDOAImpl.java:47)
at.ontec.cat.http.ShowReport.doGet(ShowReport.java:80)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
Please help!!
Please help!! -
How to pass Function code to Submit or Call transaction command
Hi
I have to call a report in an other report, But the problem is when i call the report through submit command i need to skip the initial screen and display an other screen. the other screen is not next screen. It display after clicking a button on main screen.
Is there any way to pass Function code to submit command. submit command code is as under
SUBMIT ZADR0056
WITH P_AUFNR = '7000052' AND RETURN...
Regards
AmmadHi,
It is not possible to pass function code with submit. alternatively you can work with CALL TRANSACTION with BDCDATA.
Or as a work arround way you can modify your code i.e check for function code or an dummy parameter which can be passed by SUBMIT statement.
Check below code..
Report ztest1.
submit ZTEST2 WITH P2 = 'X' AND RETURN.
Report ztest2
SELECTION-SCREEN:
PUSHBUTTON 2(10) but1 USER-COMMAND cli1.
PARAMETERS P2 TYPE C NO-DISPLAY. " no need to display
AT SELECTION-SCREEN.
IF SY-UCOMM = 'CLI1' OR P2 IS NOT INITIAL.
message 'Button clicked' type 'S'.
ENDIF.
Regards,
Ravi. -
How do i connet to enternet when im out away from home.
how do i connet to enternet when away from home
If you have an iPhone you could tether the two together. Alternatively, you could get MiFi - a small gadget that works in a similar way. The network 3 does one for about £120 with a 12GB download over 12 months.
-
When I sync pictures from my computer to my Ipad, it deletes the ones there already and replaces them. How do I stop that form happening?
If you manually manage photo storage, create a parent folder which will contain the named folders of photos that you want transferred to your iPad only. Under the Photos tab for your iPad sync preferences with iTunes, select the parent folder followed by a sync. All named folders of photos in the parent folder will be transferred to your iPad as separate albums.
To add additional photos, place the photos in one of the existing named folders of photos in the parent folder, or create a new folder for the additional photos and place the new folder of photos in the parent folder followed by a sync.
To remove a folder of photos from your iPad, move the folder of photos out of the parent folder followed by a sync. -
AppleScript: How to pass control to dialog when it is opened using do script
I am running the following AppleScript:
tell application "Adobe Acrobat Pro" to activate
tell application "Adobe Acrobat Pro"
do script "app.execMenuItem(\"GeneralPrefs\");"
delay 2
tell application "System Events"
tell process "Acrobat"
click button "OK" of window "Preferences"
end tell
end tell
end tell
This properly opens the Preferences dialog/window. This part does work. However, then, the script gets stuck and waits until the window closes for continuing. And then, it is no longer possible to click the OK button…
Am I missing something, and how can I get controls back to the AppleScript when the dialog window has opened?
Any advice is highly appreciated.
Max Wyss.I am running the following AppleScript:
tell application "Adobe Acrobat Pro" to activate
tell application "Adobe Acrobat Pro"
do script "app.execMenuItem(\"GeneralPrefs\");"
delay 2
tell application "System Events"
tell process "Acrobat"
click button "OK" of window "Preferences"
end tell
end tell
end tell
This properly opens the Preferences dialog/window. This part does work. However, then, the script gets stuck and waits until the window closes for continuing. And then, it is no longer possible to click the OK button…
Am I missing something, and how can I get controls back to the AppleScript when the dialog window has opened?
Any advice is highly appreciated.
Max Wyss. -
I am trying to render SSRS Report located on my remote report server in my ASP.NET MVC 4 app through reporting services web service programmatically.
how can i send the server (windows/domain credentials) at runtime?
tried below but no success.
ReportingService2010 service = new ReportingService(); service.Credentials = new System.Net.NetworkCredential("username", "password"); service.Url = "http://MyReportServer/ReportServer/";Why are you using window domain credential ?
Simply "rs.Credentials =
System.Net.CredentialCache.DefaultCredentials" should work.
http://technet.microsoft.com/en-us/library/ms170088(v=sql.110).aspx
Regards, RSingh -
How to pass parameter to function when confirm(Alert.show) closed?
<![CDATA[
import mx.controls.*;
import mx.events.*;
private function deleteItem(guid:String):void
Alert.show("Are sure you want to delete?", "Confirm Delete", Alert.YES|Alert.NO, this, alertClicked);
private function alertClicked(event:CloseEvent) {
if(event.detail == Alert.YES) {
Alert.show("yes "+guid); //<-- here I want to get guid
else if (event.detail == Alert.NO){
Alert.show("no ");
return;
]]>
Thanks.Hi Itambs,
You can do the following:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="deleteItem('Dummy GUID VALUE')">
<mx:Script>
<![CDATA[
import mx.controls.*;
import mx.events.*;
private var myAlert:Alert;
private function deleteItem(guid:String):void
myAlert = Alert.show("Are sure you want to delete?", "Confirm Delete", Alert.YES|Alert.NO, this, alertClicked);
myAlert.data = guid;
myAlert.height = 150;
myAlert.width = 300;
private function alertClicked(event:CloseEvent):void{
if(event.detail == Alert.YES) {
//Alert.show("yes "+guid); //<-- here I want to get guid
Alert.show("yes "+ myAlert.data);
else if (event.detail == Alert.NO){
Alert.show("no ");
return;
]]>
</mx:Script>
</mx:Application>
Note: you can also do this in another way by decalring a global variable guid as ...... private var _guid:String="";
set _guid = guid; in deleteItem() function and then in alertClicked() function you can access the value as _guid again...which holds the saved value...
If this post answers your question or helps, please kindly mark it as such.
Thanks,
Bhasker Chari
Maybe you are looking for
-
How do I create 2 seperate iTunes account for me and my daughter
I already have a iTunes account. Just got my daughter a iPod...BUT I don't know how to create a seperate iTunes account for her on the same computer. I do not want her to have my play list and visa versa.
-
Hi I've been at this for over 24 hours. I have a small video clip which is embedded in DW and uploaded... http://www.forpetsake.ca/about2.html Originally I purchased this ,mov from istockphoto.com and used QT pro to convert into a .flv. Once converte
-
How do i get the current song to show in the system tray?
howdy y'all, the system tray icon for itunes USED to show the current song when you hovered over it. now it only shows "itunes". not very useful ... [*grin*] how do i get the silly thing to show the current song? take care, lee
-
Upsizing from Access to SQL Server - eek!
Ok - I've built quite a few dynamic sites using DW and Access, but the site i'm currently working on requires Microsoft SQL Server for the database. The site is almost complete and is written in Classic ASP. Can anyone point me in the right direction
-
Transmit MiFi4510L through Linksys WRT54G Router
Is it possible to send my MiFi signal through my Linksys router to my network? If so, please list the configuration steps for both units. Thank you.