How to check in metadata without check in files
I only want to check in some metadata for search purpose.
What should I do to allow ucm to do it without check in files?
Thanks
Check out Kyle's blog post.
Similar Messages
-
How to Check a file in the directory..
Dear,
Pl. do suggest me how to check a file (e.g. abc.txt) is in the directory (say d:\Print).
Do tell me how to check whether this file is exist in the directory or not???
Thanx in Advance.
BhaveshHi
You can use Win_Api_Utility.Copy_File cmd. IF the file does not exist r the file was not copied to the destination properly, it will raise no_data_found error. See Forms help - Find option for syntax & more details.
I've used it & works well.
Regards
APK -
How to check amsilent file in Sun Access manager patch or redeploying WAR's
h1. How to check amsilent file in Sun Access manager patch or redeploying WAR's
I had a hard time getting all the passwords correct, so I wrote a shell (bash) script that uses most passwords and other parameters in searches and queries. It let's you know before you start if a value is wrong. It does not change anything, only queries.
h2. One pitfall I found ...
during the postinstall of patch 05. I told Sun about it, but I suspect it was too late and is also an issue with patch 06:
Look at the documentation regarding amconfig and the amsilent file:
http://docs.sun.com/app/docs/doc/819-2137/adsav?l=en&q=amconfig&a=view
Two problems that are clear to me now:
1. ADMINPASSWD in practice, this password is used for cn=puser, not amadmin as it says. Perhaps there is something that makes them the same. It was the same for me, so it probably does not matter.
2. AS81_ADMINPASSWD is not the same as ADMINPASSWD using either my definition or the document's definition. However, in the amsilent template, it is set like this, which I found is incorrect and the cause of my recent hair loss:
<blockquote>AS81_ADMINPASSWD="$ADMINPASSWD"</blockquote>
Also, this one if you use the web server:
<blockquote>WL8_PASSWORD="$ADMINPASSWD"</blockquote>
Delete the $ADMINPASSWD and replace it with the password for the app/web server.
h2. The Script.
It tests for the above problem, but I just realized it does not check $ADMINPASSWD. If that is set incorrectly in your amsilent, you'll get errors immediately from amconfig, so no big deal. If you make improvements, please post a reply!
Paste this into a file named checkamsilent. LDAP and appserver must be running. It reads /opt/SUNWam/amsilent. Run it as root or use sudo:
sudo ./checkamsilent
#!/usr/bin/bash
echo "This will test several important parameters of the amsilent file "
echo "run this as root."
echo "### read in the amsilent parameters"
echo "source /opt/SUNWam/amsilent "
source /opt/SUNWam/amsilent
echo "### look for the *server port* with LISTNER, otherwise it's not listening. "
echo "netstat -a | grep $SERVER_PORT "
echo "--------------"
netstat -a | grep $SERVER_PORT
echo "--------------"
echo "."
echo "### *admin port* with LISTNER, otherwise it's not listening. "
echo "netstat -a | grep $ADMIN_PORT "
echo "--------------"
netstat -a | grep $ADMIN_PORT
echo "--------------"
echo "."
echo "### Expect to see a line of XML, otherwise the SERVER_PORT is incorrect in the amsilent file."
echo "grep $SERVER_PORT ${AS81_INSTANCE_DIR}/config/domain.xml "
echo "--------------"
grep $SERVER_PORT ${AS81_INSTANCE_DIR}/config/domain.xml
echo "--------------"
echo "."
echo "### Expect to see a line of XML, otherwise the ADMIN_PORT is incorrect in the amsilent file."
echo "grep $ADMIN_PORT ${AS81_INSTANCE_DIR}/config/domain.xml "
echo "--------------"
grep $ADMIN_PORT ${AS81_INSTANCE_DIR}/config/domain.xml
echo "--------------"
echo "."
echo "### bind as the directory manager "
echo "ldapsearch -v -h $DS_HOST -p 3892 -L -s sub -D \"$DS_DIRMGRDN\" -w \"$DS_DIRMGRPASSWD\" -b 'dc=nsf, dc=gov' \"cn=amldapuser\""
ldapsearch -v -h $DS_HOST -p 3892 -L -s sub -D "$DS_DIRMGRDN" -w "$DS_DIRMGRPASSWD" -b 'dc=nsf, dc=gov' "cn=amldapuser"
echo "."
echo "### check the amldapuser password. "
echo "ldapsearch -w $AMLDAPUSERPASSWD -v -h $DS_HOST -p 3892 -L -s sub -D cn=amldapuser,ou=DSAME Users,dc=nsf,dc=gov -b ou=DSAME Users,dc=nsf,dc=gov cn=* cn "
ldapsearch -w "$AMLDAPUSERPASSWD" -v -h $DS_HOST -p 3892 -L -s sub -D "cn=amldapuser,ou=DSAME Users,dc=nsf,dc=gov" -b "ou=DSAME Users,dc=nsf,dc=gov" cn=* cn
echo "."
echo "### check the app server admin: AS81_ADMIN password: AS81_ADMINPASSWD and port: ADMIN_PORT "
echo "### That's actually a bug in the template. "
echo "### Do not use AS81_ADMINPASSWD=\$ADMINPASSWD Make sure they are different passwords! Don\'t use the default!"
echo "Expect to see a WARNING about --password option. "
echo "/opt/SUNWappserver/appserver/bin/asadmin list-http-listeners --user $AS81_ADMIN --port $ADMIN_PORT -w $AS81_ADMINPASSWD "
/opt/SUNWappserver/appserver/bin/asadmin list-http-listeners --user $AS81_ADMIN --port $ADMIN_PORT -w "$AS81_ADMINPASSWD"
echo "done!"I change the product machine from LG optimus to Samsung Galaxy but the file writing is not working, too.
I copied the source code from Adobe website about FileStream but it is needless too.
-----------------program code------------------------
import flash.filesystem.*;
import flash.filesystem.FileStream;
import flash.events.Event;
//txtFld is a standard textField component
txtFld.text = "Start";var file:File = new File();
//btnSaveFile is a standard button component
btnSaveFile.addEventListener(MouseEvent.CLICK,handlerBtnSaveFile);
function handlerBtnSaveFile(e:Event){
txtFld.text = "Pressed";
file = File.documentsDirectory;
file = file.resolvePath("test.txt");
var fileStream:FileStream = new FileStream();
fileStream.openAsync(file, FileMode.WRITE);
fileStream.writeUTFBytes("Hello");
txtFld.text = file.nativePath.toString();
//fileStream.addEventListener(Event.CLOSE, fileClosed);
fileStream.close();
fcnFileName();
function fcnFileName(){
txtFld.text = file.name.toString();
function fileClosed(event:Event):void {
trace("closed");
txtFld.text = "FileClosed"; -
How to update managed metadata column for all file in document library using powershell
Hi,
How to update managed metadata column for all file in document library using powershell?
Any help on it.
Thanks & REgards
Poomani SankaranHi TanPart,
I have changed the code which you have give in order to get the files from SharePoint 2010 Foundation Document Library.But i am getting below error in powershell.
Property 'ListItemCollectionPosition' cannot be found on this object; make sure it exists and is settable.
Could you tell me which is the issues in it?
See the code below.
$web = Get-SPWeb http://ntmoss2010:9090/Site
$list = $web.Lists["DocLib"]
$query = New-Object Microsoft.SharePoint.SPQuery
$query.ViewAttributes = "Scope='Recursive'";
$query.RowLimit = 2000
$caml = '<Where><Contains><FieldRef Name="Title" /><Value Type="Text">Process Documents/Delivery</Value></Contains></Where>' +
'<OrderBy Override="TRUE"><FieldRef Name="ID"/></OrderBy>'
$query.Query = $caml
do
$listItems = $list.GetItems($query)
$spQuery.ListItemCollectionPosition = $listItems.ListItemCollectionPosition
foreach($item in $listItems)
#Cast to SPListItem to avoid ambiguous overload error
$spItem = [Microsoft.SharePoint.SPListItem]$item;
Write-Host $spItem.Title
while ($spQuery.ListItemCollectionPosition -ne $null)
Thanks & Regards
Poomani Sankaran -
CVAPI_DOC_CHECKOUTVIEW - how to check´out files to a SAP directory
Hello,
I have an issue with understanding and providing the FM CVAPI_DOC_CHECKOUTVIEW to check out files from KPRO to a SAP directory.
I use CV120_KPRO_CHECKOUT to checkout files to local PC and this runs fine, but not for checking out files to SAP directories. So I found the API.... FM.
But I am confused about the data required to run the FM CVAPI_DOC_CHECKOUTVIEW . I tried several times but it does not work either for check out to clnt nor to SAP server.
Parameters for DOKAR, DOKNR, DOKVR and DOKTL are clear to me. PF-CONTENT_PROVIDE is CLNT for PC check out and SRV for Server checkout. But what about the rest?
I am not sure how to provide the tables and the fields PF_FTP_DEST / PF_HTTP_DEST / PF_HOSTNAME and the PS_API_CONTROL.
Can anybody help me with the required import data.
Best regards
DirkHi Dirk.
We are using bapi to get the document file (original)
Look our usage of pf_http_dest and pf_ftp_dest.
CALL FUNCTION 'BAPI_DOCUMENT_GETDETAIL2'
EXPORTING
documenttype = vl_dokar
documentnumber = vl_doknr
documentpart = vl_doktl
documentversion = vl_dokvr
getactivefiles = 'X'
getdocdescriptions = 'X'
getdocfiles = 'X'
TABLES
documentfiles = t_document.
READ TABLE t_document INTO wa_document INDEX 1.
CALL FUNCTION 'BAPI_DOCUMENT_CHECKOUTVIEW2'
EXPORTING
documenttype = vl_dokar
documentnumber = vl_doknr
documentpart = vl_doktl
documentversion = vl_dokvr
documentfile = wa_document
originalpath = 'your SAP directory'
pf_http_dest = 'SAPHTTPA'
pf_ftp_dest = 'SAPFTPA'
IMPORTING
return = wa_return
TABLES
documentfiles = tl_files.
Darley -
How to check out files from DTR
Dear all,
I've check in files and activated it to the DTR. but somehow the transportation to production server was not complete coz it said that the DC built failed...how should i resovled this problem? What is the steps to check out files from DTR..and what is the steps to delete a DC from DTR? thank youHi
see the following link ,it will be helpful for u.
[Working with the Design Time Repository |http://help.sap.com/saphelp_nwce10/helpdata/en/83/74c4ce0ed93b4abc6144aafaa1130f/content.htm]
Thanks
Hazrath -
How to check Fla file version?
Hi Guys,
I installed on my system Adobe flash cs3. but when i opened my Fla file that time getting the following error.
So how to check the Fla file version??
Thanks in Advance..
JaxNaFLA Version Checker and Launcher
http://www.peterelst.com/blog/2005/10/02/flavor-fla-version-checker/http://www.northcode.com/blog.php/2007/07/27/FLA-Version-Checker-and-Launcher -
How to check the file size before loading it to the context
Hello,
I have an application to upload a file and write it to the server using the FileUpload UI and IWDResource Interface.
I would like to limit the size of the file the user is uploading to, say, 2MB.
The problem is that the current API doesn't allow me to check the file size before I store it in IWDResource. The API available for IWDResource:
IWDResource resource = ...
InputStream stream = resource.read(false);
size = stream.available();
Is working on the file only AFTER storing it in the context and the server's memory. This way, if a user decides to upload 1GB file for example, he can easily crash the server.
I am already familiar with <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71">this</a> arcticle but it doesn't answer this question as well, all it does is calculating the file size only after storing it in the context.
Any ideas...?
RoyHi Ram,
Have you activated your Objects ?
You need to activate your objects in order to see them in RWB.
Thanks & Regards,
Varun Joshi -
How to check if file is in correct format
Hi,
I want to check if file is in below format via pl/sql
SCE_ YYYYMMDD
and throw an error if not. If
vsFileName:= 'SCE_20080204';
select TO_DATE(SUBSTR(vsFileName, 5, 8), 'YYYYMMDD') - 1 from dual
woudl return 2/3/2008. This is okay
vsFileName:= ''SCE_TEST0204';This is not okay; and would like to trap the error with file name is not correct
Thanks,
VSAre you just looking for some exception handling?
SQL> ed
Wrote file afiedt.buf
1 DECLARE
2 v_filename VARCHAR2(20) := 'SCE_TEST0204';
3 v_dt DATE;
4 v_err BOOLEAN := FALSE;
5 BEGIN
6 BEGIN
7 v_dt := TO_DATE(SUBSTR(v_filename, 5), 'YYYYMMDD');
8 EXCEPTION
9 WHEN OTHERS THEN
10 v_err := TRUE;
11 END;
12 IF v_err THEN
13 DBMS_OUTPUT.PUT_LINE('Filename is incorrect');
14 ELSE
15 DBMS_OUTPUT.PUT_LINE('Filename is OK');
16 END IF;
17* END;
SQL> /
Filename is incorrect
PL/SQL procedure successfully completed.
SQL> ed
Wrote file afiedt.buf
1 DECLARE
2 v_filename VARCHAR2(20) := 'SCE_20080204';
3 v_dt DATE;
4 v_err BOOLEAN := FALSE;
5 BEGIN
6 BEGIN
7 v_dt := TO_DATE(SUBSTR(v_filename, 5), 'YYYYMMDD');
8 EXCEPTION
9 WHEN OTHERS THEN
10 v_err := TRUE;
11 END;
12 IF v_err THEN
13 DBMS_OUTPUT.PUT_LINE('Filename is incorrect');
14 ELSE
15 DBMS_OUTPUT.PUT_LINE('Filename is OK');
16 END IF;
17* END;
SQL> /
Filename is OK
PL/SQL procedure successfully completed.
SQL> -
How can I embed metadata in a pdf file using Acrobat XI Pro?
Hi, everyone!
I need some info how I can put things like key words, description of the file and the like permanently in the file to let it 'travel' in the file everywhere, no matter what the OS is. I guess I should use Properties 'path' but it resembles Windows system properties, so I'm not sure. Moreover, there's so little about it in manuals....
Once I've done with it, can it be read just by Adobe Reader?
And one important thing more: is there any inner search engine inside Acrobat XI to search the files by key words and other similar metadata criteria or I'm solely dependant on the OS search function?Thanks for the link - it sounds highly specialised, but simple experiments of opening a Properties Windows and putting some description notes and author or key word is readable by Acrobat reader or the system search engine so maybe it's not really complicated - mind you, I don't mean right-clicking on the file where options are poor and probably thode of the OS but Preferences edition after opening the document in Acrobat XI Pro - I hope this one is of Adobe and maybe I won't need Bridge to read it I know in the suggested thread it's a problem of graphics metadata within the pdf file....
-
HEllo my problem that i putted an passcod for my i phone then i forget it so i tryed many time than they gave me i should conect to i tunes but i want to know how i can unlocked my phone without losing my files please tell me
Locked Out, Forgot Lock or Restrictions Passcode, or Need to Restore Your Device: Several Alternative Solutions
1. iOS- Forgotten passcode or device disabled after entering wrong passcode
2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
3. Restoring iPod touch after forgotten passcode
4. What to Do If You've Forgotten Your iPhone's Passcode
5. iOS- Understanding passcodes
6. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
Forgotten Restrictions Passcode Help
You will need to restore your device as New to remove a Restrictions passcode. Go through the normal process to restore your device, but when you see the options to restore as New or from a backup, be sure to choose New.
Also, see iTunes- Restoring iOS software. -
How to read XMP metadata of an indd file using Actionscript
Hi All,
I am trying to read XMP metadata of an indd file using CS Extension Builder in Flash Builder 4.5.
The documentation has many class like XMPmeta, XMPStruct, etc.
I have got the currently opened document in InDesign as follows:
var myDoc:Document = InDesign.app.activeDocument();
And a new XMPmeta object is created as follows:
var myXMP:XMPMeta = new XMPMeta();
How to initialize document's xmp metadata in the XMPMeta object? Or is there any other way to get the XMP metadata of currently opened document in InDesign?I have found that the XMP data of an InDesign document can be retrieved in actionscript as follows:
InDesign.app.activeDocument.metadataPreferences
This returns the MetadataPreference object.
But I am not able to iterate each namespace in the xmp. There isn't any XMPFile class which allows me to serialize the object to xml file so that I can iterate all elements in the XMP.
I could not relate class like XMPMeta, XMPProp, etc. with the MetaDataPreference class. So, how to obtain the entire xmp packet from the MetadataPreference object?
Can anyone shed light on this? -
How can I export metadata to a csv file in CS4?
Help please, I used Workflow Automation Scripts on CS3 but it doesn't seem to work on CS4.
OK,
after combing through these posts and trying various 'solutions' I have found that the Barred Rock export metadata script is the only one I have been able to get to work in CS4, kinda. It is a superior script to the original workflow automation script that edo75 refers to, as it does not seem to have the comma issue encountered by jesse and others, where if there are any commas in your metadata it creates a new column and your excel file becomes nonsensical and disorganized. There is a way to avoid this by the way, simply by opening a new file in excel and importing the csv file as text, you then tell excel to read the data the right way by selecting various delimiter combinations. It is not a perfect solution but I have found that by doing this it places most of my metadata in the proper columns, and I end up doing a minimal amount of editing. The barred rock version, which I assume is a modified version of the original script available from adobe as the interface is exactly the same, does not seem to have this issue with commas at all, I am unsure why. If B. Stucky is still reading these posts he may be able to answer, as I think he wrote this script?
Anyhow I was able to get the script to load in CS4 and then I had to tweek the script to recognize my custom metadata schema, which I was able to do. Now however there is an issue with it recognizing the actual metadata in the image files. I suspect it is a mynamespace issue, that is, I do not have the right path for it to locate the actual metadata for export.
here is where I suspect the problem lay, where this "http://NPSAlaskaImageStandard" is incorrect.
new MdNs.MetadataNamespace( "NPS Alaska Image Standard", "http://NPSAlaskaImageStandard", "NPSAlaskaImageStandard" );
I am a total novice with this stuff so this may not be it at all, however this is my best guess, anyone know the answer? -
How to Check Images File Exist? in different server
Hi,
I have 10 different coldfusion server.
for example 9 server is for the web application site - for
example
http://myserverone/studentweb
the other one is for images website, just for displaying
student picture - for example
http://myserverimage/studentpicture.
the purpose of this website is to display student picture
that i store as gif files.
from my studentweb website i will call the images from
studentpicture website as source for my image placeholder.
for example this is my code i'm calling form
http://myserverone/studentweb
website:
<img src="
http://myserverimage/studentpicture/#studentnumber#.gif"
alt="" name="studentpicture" width="160" height="200">
my problem is, if there is no specific student picture in my
studentpicture website, then the placeholder will display an X (
mean the images not found )
how do i prevent the X to display?
how do i using coldfusion or any kind of way to check if the
images exist on that website ( different server ), so if the images
is not found, i can display a default images? i can do this if i'm
calling the website in the same server, but not using a different
server.
this is like using other website images for your own personal
website and sometimes the owner delete the images from their
website, and i want to display my own images if that images been
removed from the source website.
anyone have done this before?
thanks for suggestion and guide...
haire1. Use CFHTTP with method="HEAD".
2. See, if the HTTP status code is 200.
The head-method is of course more efficient, as it doesn't
need to "get" the message body. However, a status code of 200 is
possible even when the requested image file is no longer on the
server. -
How to Check Log File for 'Import Standard Purchase Orders' program?
Hi,
When the run the standard program 'Import Standard Purchase Orders' after inserting data to PO interface tables. I am getting the log message as mentioned below.
Start of log messages from FND_FILE
To get the log messages for PDOI, please use the following id to query against FND_LOG_MESSAGES table:
AUDSID = 40499066
End of log messages from FND_FILE
When I go and check for the message in mentioned table against the AUDSID,I couldn't find any error listed.
Even I verified the po_interface_errors table, It returns NO ROWS.
Help me on this issue.
Thanks.Did you checked the imported PO ? follow step 7-8 from MOS note and check
Vision Demo - How To Import Standard Purchase Orders Using the Purchase Document Open Interface PDOI [ID 1054004.1]
You can also check
How To Diagnose Problems With Importing Standard Purchase Orders [ID 781351.1]
thanks -
How to check pc file path validity?
Hi,
In my program I have to extract so much SAP data and write in a file in the fornt-end PC. In the selection screen I will input the filepath\name to write the data.
But how should I check whether the filepath is valid or not in the 'AT SELECTION-SCREEN' event itself? so that if it is not valid path, I can give an error message before extracting all the SAP data.
Thank you!
Sunitha.Hi Sunitha,
Please check the following sample code from other thread at selection screen value request event.
Using ABAP Objects:
PARAMETER : p_file LIKE rlgrap-filename.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR path.
DATA: directory TYPE string,
filetable TYPE filetable,
line TYPE LINE OF filetable,
rc TYPE i.
CALL METHOD cl_gui_frontend_services=>get_temp_directory
CHANGING
temp_dir = directory.
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
window_title = 'SELECT THE FILE'
initial_directory = directory
file_filter = '*.XLS'
multiselection = ' '
CHANGING
file_table = filetable
rc = rc.
IF rc = 1.
READ TABLE filetable INDEX 1 INTO line.
P_FILE = line-filename.
ENDIF.
Using Normal ABAP:
DATA: P_FILE LIKE RLGRAP-FILENAME,
DPATH LIKE RLGRAP-FILENAME,
UPATH LIKE RLGRAP-FILENAME,
MODE TYPE C,
FLG_UD TYPE C.
CALL FUNCTION 'WS_ULDL_PATH'
IMPORTING
DOWNLOAD_PATH = DPATH
UPLOAD_PATH = UPATH.
IF FLG_UD <> 'D'.
DPATH = UPATH.
MODE = 'O'.
ELSE.
MODE = 'S'.
ENDIF.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
DEF_FILENAME = '*.XLS'
DEF_PATH = DPATH
MASK = ',*.XLS,*.*,*.*.'
MODE = MODE
IMPORTING
FILENAME = P_FILE
EXCEPTIONS
SELECTION_CANCEL = 3.
IF SY-SUBRC <> 0.
EXIT.
ENDIF.
Hope this will help.
Regards,
Ferry Lianto
Maybe you are looking for
-
Getting parameters from multipart request
I'm using org.apache.tomcat.utils.fileupload to parse uploaded files from a multipart form, but unfortunately I can't seem to get normal parameters from such a form with request.getParameter(). Is there a way to use both together?
-
Counter on iweb reset itself and is now not working anymore
My counter on iweb reset itself to 0 somehow, and now it's stuck on 0 on the bunch of the pages. What happened and how can I fix this? I tried removing the counter and putting it back, but that didn't work. Thanks!
-
Sample java client not running--showing a strange error-- help urgently
Hi, I have followed all the steps, given in JDevloper help, to create and deploy an EJB onto a 9ias server and I have been successful in creating the EJB and deploying it from the JDevloper machine to 9ias machine.My JDevloper is on one machine and 9
-
Can I download two versions of Adobe Reader on my machine?
I need both versions 9 and XI for work-related projects. Is there a way to keep both downloaded on my machine and then pick which version to use to open PDFs? I am frustrated that I have to keep re-downloading the versions I need. Please advise best
-
Since I am not having any luck on the Java & XML forum (http://forum.java.sun.com/thread.jsp?forum=34&thread=512728&tstart=0&trange=15) I thought I would try here. Does anyone know of a good example on the web they can point me to that shows XML-RPC