How to get crawler destination folder path through api
with following code i am getting crawler folder source path
com.plumtree.openfoundation.util.IXPPropertyBag propertyBag = oPTCrawler.GetStartLocation();
String oldFolder = propertyBag.ReadAsString("PTC_UNIQUE");
how to get the destination folder path ?
any help appreciated
i would like to get the values from PT_TAX_DESTFOLDERS
<A N="PT_TAX_DESTFOLDERS"><I N="DIMS">1</I><I N="MAX0">0</I><I N="0">1324</I></A>
1324 being the folder id
when trying
com.plumtree.openfoundation.util.IXPPropertyBag propertyBag = oPTCrawler.GetStartLocation();
Object[][] propertyBags = (Object[][])propertyBag.ReadAsObject1DArray("PT_TAX_DESTFOLDERS");
i am getting null
Similar Messages
-
How to get the system32 folder path in java?
how to get the system32 folder path in windows using java code?
Zstar Electronic Co.Ltd, Wholesaler of fire cards for DS/NDSL/NDSi, Provide R4, R4i, DStt, iEDGE, AK2i,M3,M3i,N5
www.zstar.hk -
How to get the enclosing folder of an Application?
Ok. re-visiting my Applescript to compare installed apps versus a list of predefined apps... here is my test code so far:
set appsPath to (path to applications folder)
tell application "Finder"
set appList to name of every application file of entire contents of folder appsPath
end tell
set theApps to {"iMovie.app", "Microsoft Excel", "Microsoft Excel.app", "Adobe Acrobat 7.0 Professional.app", "Adobe After Effects CS4.app", "ColorEyes Display Pro.app", "Corel Painter X.app", "DiskTracker 2.3.2", "EPSON Scan.app", "Flash 8.app", "Product Ingest.app", "Product Tag.app", "Art Ingest.app", "TextWrangler.app", "Toast Titanium.app", "Suitcase Fusion 2.app", "Suitcase Fusion 3.app", "Fetch.app"}
repeat with anApp in theApps
set vers to version of (application anApp)
-- get parent path of anApp!!!!
if (parentFolder is equal to "Applications" or parentFolder is equal to "Utilities") then
set parentFolder to ""
end if
display alert anApp & ": Version: " & vers & " " & parentFolder
end repeat
The only thing I'm stuck on is how to get the parent folder of anApp. Basically we use several versions of software here that are not easily identifiable by the version attribute. However their enclosing folder has all the versioning info I need (e.g.: MS Excel 04's vers would be 110113, but the enclosing folder is "Microsoft Office 2004", and some departments get Office 2008, Office 2011, etc., so I need a human-friendly way to get the right versions)
I don't know if the "if" statement to check whether the parent is Applications or Utilities is correct as I haven't gotten that far in testing. I'm only interested in getting the parent of apps that have parent folder that is a sub-folder of Applications or Utilities.
Basically what I am trying to do here is write a text file containing all departmental apps, homefolder sizes, relevant partition sizes, etc. and spit it out at the tech responsible for migrating a user to a new mac (display alert is just convenient for testing purposes). In the past we've had too many "missed" items in QC like wrong apps installed, or wrong versions, or data not copied over properly, etc. So this way they can run this on the old system beforehand and the new system after, line everything up and check off if it matches. This is just a snippet...
TIA!
AndrewHi,
Andrew Caldwell wrote:
Is there a way to invoke these without the script opening each one?
You must use the bundle identifier instead of the name
Here a example :
set theApps to {"com.microsoft.excel", "com.adobe.Acrobat.Pro", "com.barebones.textwrangler", "com.roxio.Toast", "com.fetchsoftworks.Fetch"}
repeat with anApp in theApps
tell application "Finder" to tell (application file id anApp)
set vers to version
set parentFolder to name of its container
end tell
if parentFolder is in {"Applications", "Utilities"} then set parentFolder to ""
display alert anApp & ": Version: " & vers & " " & parentFolder
end repeat -
How to get javahelp release install path?
How to get javahelp release install path?
currently usage their tool <MagicHelp>.
magichelp is multi-user help authoring tool,
currently Support Java help 1.0/2.0.
Home:http://www.gethelpsoft.com@BalusC
ust for a reference cause i'm new in JSP This has nothing to do with JSP, but with basic knowledge of an essential API. I have given you the link to the File API. Are you saying that you refused to read the API documentation, which clearly explains you how to use the File and shows which methods are all available to you undereach the straightforward getName() method, and expecting that the others may chew the answers for you? Loser. -
How to get system temp dir. path on the fly ,system may be XP or Linux ??
How to get system temp dir. path on the fly ,system may be XP or Linux ??
please suggest solutionThe default temporary-file directory can be retrieved
using:
System.getProperty("java.io.tmpdir")
Thanks a lot for u r reply this one works !!!! -
How To Load a Project Budget Line Through API in R12 ?
Hello
Could you please let me know how to load the project budget lines through API in R12 system, I am trying with below script but it is not working.
Could you please let me know if you have any solution.
=========================================================================================================================================================================
Script
DECLARE
--––variables needed for API standard parameters
l_api_version_number NUMBER := 1.0;
l_commit VARCHAR2 (1) := 'T';
l_return_status VARCHAR2 (1);
l_init_msg_list VARCHAR2 (1);
l_msg_count NUMBER;
l_msg_data VARCHAR2 (2000);
l_data VARCHAR2 (2000);
l_msg_entity VARCHAR2 (100);
l_msg_entity_index NUMBER;
l_msg_index NUMBER;
l_msg_index_out NUMBER;
l_encoded VARCHAR2 (1);
i NUMBER;
a NUMBER;
--––variables needed for Oracle Project specific parameters
l_pm_product_code VARCHAR2 (100);
l_pa_project_id NUMBER;
l_pm_project_reference VARCHAR2 (100);
l_budget_type_code VARCHAR2 (30);
l_change_reason_code VARCHAR2 (30);
l_description VARCHAR2 (255);
l_entry_method_code VARCHAR2 (30);
l_resource_list_name VARCHAR2 (60);
l_resource_list_id NUMBER;
l_budget_lines_in pa_budget_pub.budget_line_in_tbl_type;
l_budget_lines_in_rec pa_budget_pub.budget_line_in_rec_type;
l_budget_lines_out pa_budget_pub.budget_line_out_tbl_type;
l_line_index NUMBER;
l_line_return_status VARCHAR2 (1);
l_user_id NUMBER;
l_responsibility_id NUMBER;
API_ERROR EXCEPTION;
BEGIN
-- SET GLOBAL INFO
SELECT user_id,
responsibility_id
INTO l_user_id,
l_responsibility_id
FROM pa_user_resp_v
WHERE user_name = 'RAJU';
PA_INTERFACE_UTILS_PUB.SET_GLOBAL_INFO (p_api_version_number => 1.0,
p_responsibility_id => l_responsibility_id,
p_user_id => l_user_id,
p_msg_count => l_msg_count,
p_msg_data => l_msg_data,
p_return_status => l_return_status
IF l_return_status != 'S'
THEN
RAISE API_ERROR;
END IF;
--––PRODUCT RELATED DATA
l_pm_product_code := 'GMS';
--––BUDGET DATA
l_pa_project_id := 6271;
l_pm_project_reference := NULL;--'ABC';
l_budget_type_code := 'FC';
-- l_change_reason_code := 'INITIAL';
l_description := 'New description –> 2';
l_entry_method_code := 'PA_TASKLVL_BASELINE';
l_resource_list_id := 1001;
--––BUDGET LINES DATA
a := 1;
FOR i IN 1 .. a
LOOP
l_budget_lines_in_rec.pa_task_id := 405156;
l_budget_lines_in_rec.pm_task_reference := NULL;
l_budget_lines_in_rec.resource_alias := 'Labor';
l_budget_lines_in_rec.resource_list_member_id := '1034';
-- l_budget_lines_in_rec.budget_start_date := '01-Jan-13';
-- l_budget_lines_in_rec.budget_end_date := '31-Dec-14';
-- l_budget_lines_in_rec.period_name := 'JUL-10FY2011';
l_budget_lines_in_rec.description := 'Some Text';
l_budget_lines_in_rec.quantity := 100.00;
l_budget_lines_in_rec.raw_cost := 300.00;
l_budget_lines_in (i) := l_budget_lines_in_rec;
END LOOP;
--––INIT_BUDGET
pa_budget_pub.init_budget;
--––LOAD_BUDGET_LINE
FOR i IN 1 .. a
LOOP
pa_budget_pub.load_budget_line
(p_api_version_number => l_api_version_number,
p_return_status => l_return_status,
p_pa_task_id => l_budget_lines_in (i).pa_task_id,
p_pm_task_reference => l_budget_lines_in (i).pm_task_reference,
p_resource_alias => l_budget_lines_in (i).resource_alias,
p_resource_list_member_id => l_budget_lines_in (i).resource_list_member_id,
p_budget_start_date => l_budget_lines_in (i).budget_start_date,
p_budget_end_date => l_budget_lines_in (i).budget_end_date,
p_period_name => l_budget_lines_in (i).period_name,
p_description => l_budget_lines_in (i).description,
p_raw_cost => l_budget_lines_in (i).raw_cost,
p_burdened_cost => l_budget_lines_in (i).burdened_cost,
p_revenue => l_budget_lines_in (i).revenue,
p_quantity => l_budget_lines_in (i).quantity
END LOOP;
IF l_return_status != 'S'
THEN
RAISE api_error;
END IF;
--––EXECUTE_CREATE_DRAFT_BUDGET
pa_budget_pub.execute_create_draft_budget (p_api_version_number => l_api_version_number,
p_msg_count => l_msg_count,
p_msg_data => l_msg_data,
p_return_status => l_return_status,
p_pm_product_code => l_pm_product_code,
p_pa_project_id => l_pa_project_id,
p_pm_project_reference => l_pm_project_reference,
p_budget_type_code => l_budget_type_code,
p_change_reason_code => l_change_reason_code,
p_description => l_description,
p_entry_method_code => l_entry_method_code,
p_resource_list_name => l_resource_list_name,
p_resource_list_id => l_resource_list_id
IF l_return_status != 'S'
THEN
NULL; --––RAISE API_ERROR;
END IF;
--––FETCH_LINE
FOR l_line_index IN 1 .. pa_budget_pub.g_budget_lines_tbl_count
LOOP
pa_budget_pub.fetch_budget_line (p_api_version_number => l_api_version_number,
p_return_status => l_return_status,
p_line_index => l_line_index,
p_line_return_status => l_line_return_status
IF l_return_status != 'S' OR l_line_return_status != 'S'
THEN
RAISE api_error;
END IF;
END LOOP;
--––CLEAR_BUDGET
pa_budget_pub.clear_budget;
IF l_return_status != 'S'
THEN
RAISE api_error;
END IF;
--––HANDLE EXCEPTIONS
EXCEPTION
WHEN api_error
THEN
FOR i IN 1 .. l_msg_count
LOOP
pa_interface_utils_pub.get_messages (p_msg_data => l_msg_data,
p_data => l_data,
p_msg_count => l_msg_count,
p_msg_index_out => l_msg_index_out
DBMS_OUTPUT.put_line ('Error Mesg ' || l_data);
DBMS_OUTPUT.put_line ('Error Mesg ' || l_msg_data);
END LOOP;
WHEN OTHERS
THEN
FOR i IN 1 .. l_msg_count
LOOP
pa_interface_utils_pub.get_messages (p_msg_data => l_msg_data,
p_data => l_data,
p_msg_count => l_msg_count,
p_msg_index_out => l_msg_index_out
DBMS_OUTPUT.put_line ('error mesg ' || l_data);
END LOOP;
END;
=========================================================================================================================================================================Not knowing how its embedded... you will need to get the report instance from the dll and cast it as a ReportDocument object.
Given the info so far, that is all we can say.
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports] -
How to get Unapplied Amount with SQL or API in AR/ORACLE RECEIVABLES
Hi ,
how to get Unapplied Amount with SQL or API in AR/ORACLE RECEIVABLES.
who can help me ? Thank you very much !i get it from private API.
SELECT SUM(decode(ra.status, 'UNAPP', nvl(ra.amount_applied, 0), 0)) unapplied_amount
FROM ar_receivable_applications ra
WHERE ra.cash_receipt_id = 1820
AND ra.status IN ('UNAPP', 'ACTIVITY') -
How to get the personal folder size
Hi,
I'm trying to develop a method for define the maximum size of personal documents folder. I'm changing the Upload Command, and I want to know if its possible to get the current size of the personal documents folder for the user that is trying to upload the document.
For this moment, I've got the current UserID, and I have created an RID with the path "userhome/UserID/Personal Documents", but now I don't know how to get the size of this folder!!!!
Thanks to all.
Arnau RoviraOriginally Posted by NanLau
Hi,
Does anyone know how to get the current size of Mailbox and Archive by using GW api?
Can anyone answer this? Thanks. -
How to get Data from SAP B1 through Journal Entries objects (Excel VBA)
Hi Genius
i had try to login SAB B1 thorugh MS Excel VBA code and it worked well. but i need some questions regards getting the data from after login. that means i want the Posting date, Transaction No, account code, debit and credit amount from Journal entries posted in a particular day through MS excel VBA into excel sheets 1 cell A1:E1
how i get it if any possible ways to do that
here my code to login
Public Sub login()
Sheets("Login").Select 'access the login tab
Worksheets("Login").Range("B1").Activate 'put focus on cell B1 (manager)
B1UserID = Trim(ActiveCell.Value2) 'set Businsss One user
ActiveCell.Offset(1, 0).Activate
B1Password = Trim(ActiveCell.Value2) 'set Business One password
ActiveCell.Offset(1, 0).Activate
sqluser = Trim(ActiveCell.Value2) 'set SQL user
ActiveCell.Offset(1, 0).Activate
sqlpass = Trim(ActiveCell.Value2) 'set SQL password
ActiveCell.Offset(1, 0).Activate
Db = Trim(ActiveCell.Value2) 'set Database name
ActiveCell.Offset(1, 0).Activate
Server = Trim(ActiveCell.Value2) 'set Server name
Set company1 = New SAPbobsCOM.Company 'initialate DI company object
company1.DbServerType = dst_MSSQL2005
company1.Server = Server
company1.DbUserName = sqluser
company1.DbPassword = sqlpass
company1.CompanyDB = Db
company1.UserName = B1UserID
company1.Password = B1Password
'connect to the database
lRetCode = company1.Connect
If lRetCode <> 0 Then
sErrMsg = company1.GetLastErrorDescription
MsgBox (sErrMsg)
Else
MsgBox ("Connected to: " & company1.CompanyName)
End If
End Sub
pls help me
advance thanks to solversGordons way is the easiest - just query the OJDT table for journal entry headers and JDT1 for journal entry lines if needed.
But if you want to work with the business objects:
'Journal entry
Dim oJE As SAPbobsCOM.JournalEntries
Set oJE = company1.GetBusinessObject(oJournalEntries)
oJE.GetByKey(1234)
Dim postingDate as String
postingDate = oJE.DueDate
'etc etc -
How to get FILENAME from FILE PATH
does anyone know how to get filename from a file path for example
FILE PATH: C:\Project\uploadbean\web\uploads\Button.txt
returns
FILENAME: Button.txt@BalusC
ust for a reference cause i'm new in JSP This has nothing to do with JSP, but with basic knowledge of an essential API. I have given you the link to the File API. Are you saying that you refused to read the API documentation, which clearly explains you how to use the File and shows which methods are all available to you undereach the straightforward getName() method, and expecting that the others may chew the answers for you? Loser. -
How to change archive destination folder
Hi,
Im using oracle 11g,
when i run this cmnd, im seeing the following
sql> archive log list
archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /home/oracle/archivelog
Oldest online log sequence 2277
Next log sequence to archive 2279
Current log sequence 2279
the disk space is low on this destination folder
So I need to change the archive destination new folder /u03/arch
Please let me know how to change the destination
Thank you
Edited by: praveenb on Nov 3, 2011 6:22 AM
Edited by: praveenb on Nov 3, 2011 6:24 AMHi TYL,
I run the command
SQL> show parameter log_archive_dest
NAME TYPE VALUE
log_archive_dest string
log_archive_dest_1 string location=/home/oracle/archivel
og
log_archive_dest_10 string
log_archive_dest_2 string
log_archive_dest_3 string
log_archive_dest_4 string
log_archive_dest_5 string
log_archive_dest_6 string
log_archive_dest_7 string
log_archive_dest_8 string
NAME TYPE VALUE
log_archive_dest_9 string
log_archive_dest_state_1 string enable
log_archive_dest_state_10 string enable
log_archive_dest_state_2 string enable
log_archive_dest_state_3 string enable
log_archive_dest_state_4 string enable
log_archive_dest_state_5 string enable
log_archive_dest_state_6 string enable
log_archive_dest_state_7 string enable
log_archive_dest_state_8 string enable
log_archive_dest_state_9 string enable
SQL>
Im seeing ORA-00257: archiver error. Connect internal only, until freed. (DBD ERROR: OCISessionBegin)
Please let me know how to solve this issue
Thanks
Edited by: praveenb on Nov 3, 2011 7:31 PM -
How to Get the Source File Path in the Receiver Side
Hi Experts,
Here We are Trying to Do How to Get the Sender Information ( File Name & Path ) on the Receiver Side .
According to the Michal Blog
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
Here we Are Able to Get only the File Name.
But If I Want to get the Total File Path Also means What Should I Do Here ????
Please Let Me Know
Regards
KhannaKhanna,
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey fkey = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
DynamicConfigurationKey dkey = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
String fname = conf.get(fkey);
Sring path = conf.get(dkey);
String final=fname""path;
return ""final"";
Best regards,
raj. -
How to get rejected file absolute path location in file rejection handler
HI,
Right now I am working in the below scenario in SOA11G.
1) Create a file adapter service and wire it to a BPEL process.
2) Create a Fault-policies file where we have referred a Java Action as a Fault policy.
3) Refer that fault-policy to the Fault-Binding file and put both the file in the same directory with composite.xml file.
4) So when any rejection message happened with any wrong incoming file, the Java Action is getting called.
But as per my requirement I want to get the absolute path of the incoming file in my java action, so that I can write some other logic to copy that file to some other location.
So is there any API available to achieve this or any logic about how to get the absolute path of a rejected file at runtime.
Regards,
Tripathy.Hi Omar,
You need to use OPEN_DATASET & READ DATASET statements to get the file from application server.
Steps:
Open dataset in read mode
Read the data set and collect into internal table
Now, convert this into XSTRING by using function module SCMS_STRING_TO_XSTRING
After converting into XSTRING, you can use CL_WD_RUNTIME_SERVICES=>ATTACH_FILE_TO_RESPONSE to download into local system
Please refer the below links
Upload File from SAP Application Server using ABAP
Application Server Program - ABAP Development - SCN Wiki
Hope this helps you.
Regards,
Rama -
How to get the highlighted text range through Framemaker's API calls?
Hi all,
I'm new to the Framemaker API (7.x) and developing a plugin for Framemaker 7.x. I wanted to get the highlighted objects from the active mif document. Tried this code:
F_TextRangeT tr;
/* Get the current text selection. */
tr = F_ApiGetTextRange(FV_SessionId, docId, FP_TextSelection);
Here is how I tested it:
1. some text in the mif doc was highlighted.
2. I clicked the menu item "my_plugin", a framemaker dialog popped up, some test configuration was sent through the dialog.
3. The test configuration was read by my program correctly.
However, the debugger showed that the tr is null! When I changed the first step of the test into:
1. placed the mouse cursor at somewhere in the mif doc.
The plugin worked somehow, the line where the mouse cursor was placed got selected, although I did not highlight anything.
My question is: how to get a highlighted range though the Framemaker API call? I've been flipping through the FDK 7.0 Programmer's Reference but haven't found a solution yet. Any hint will be highly appreciated.
Best Regards,
Ellen N. ZhaoHere is some information from the FDK Programmer's guide page 115:
IMPORTANT: A valid text range can span multiple paragraphs, subcolumns, or text frames.
It cant span multiple flows, footnotes, table cells, or text lines.
It is possible for a document to have no text selection or insertion point at all. This can occur in
the following circumstances:
● One or more graphic objects in the document are selected
● One or more entire table cells in the document are selected
● There is no selection of any type in the document
So, I did select one or more entire table cells in the document in my first test. It's logical that the result was not like expected.
But selecting one or more entire table cells is a crucial requirement for my plugin, is there anyway to get things straight?
Simply put, I want to enable users to select one or more table cells in the document, and I want to get the object handles of the first cell and the last cell through Framemaker API calls. How?
Many thanks in advance!
Best Regards,
Ellen N. Zhao -
How to set the DVD Folder Path?
Hello, had a quick question regarding the folder path
variable when accessing DVD video files. When authoring, Director
seems to automatically add a hardcoded file Name to the cast member
properties, as well as a folder path to the DVD member properties.
So I am wondering how to handle this - obviously during
authoring the director DIR/projector is on the hard drive while the
video_ts is on the DVD disc. When deployed, everything will be on
the DVD of course.
During my first test, the projector was authored with the DIR
on the hard drive while the DVD was in the D: drive. When I swapped
the DVD to my other optical drive ( E: ) and restarted the
projector, it complained it could not find the video_ts folder. And
on a Mac it looked for a /Volumes/ path which I could not even
manually point the projector to.
So should I copy the video_TS to the hard drive so the
relative path between the projector and video_TS folder always
stays the same? Or does Director ignore the filepath at runtime and
always search the DVD drives on the host machine for a video_ts
folder,regardless of where it was during authoring? The
documetnation is a bit unclear on that part..and of course my goal
is that the projector find the video_ts folder on the DVD disc,
regardless of what drive letter/volume name it is on.
BTW, this approach -
http://www.adobe.com/go/tn_19277
, does not seem to workCheck these 2 links may help you
http://www.rittmanmead.com/2010/07/obiee-11gr1-scaleout-clustering-and-high-availability/
http://www.rittmanmead.com/files/collab11_borkur_clustering.pdf
Maybe you are looking for
-
Error while adding custom fields in ERP quotation
I am trying to add custom fields to ERP quotation. So picked up ERP_H and added view BTCUSTOMER_H/CustomerH to its views. I have added the relevant custom fields to BTCUSTOMER_H/CustomerH. Now when I try displaying this, I get the following error.. C
-
HP Pavilion p7-1423w Desktop PC
I have a HP Pavilion p7-1423w Desktop PC Did an upgrade to windows 8.1 and suddenly my sound driver has a big yellow triangle, was trying to get the driver for my model but after downloading I got an error message (9996) If somebody can give me any d
-
Black Screen when camera app is opened
Can't take any pictures or record video black screen and camera error.4003 picture when take picture button is pressed and camera error.4003 Video when record video button is pressed.Help!
-
Crashes when inserting new pages into Templates from CS6
InDesign CS6 is crashing frequently when page numbers or blank pages are inserted into an InDesign Template file, The problem persists for many different users on several platforms and operating systems.
-
Garageband won't open....??? HELP!!
I just used Garageband last night...and now it won't open for some reason. The only thing I can think of is that I deleted my Digidesign folder from my Applications folder because it wasn't working with my MBox. That shouldn't affect Grageband though