EMCLI Variable File
Hello,
I tried to create a service by using the create_service command ...
I've exported the template.xml files which I have created in gridcontrol.
But in the manual is written that i need a variable File for each Template but i cant find anywhere a discription how to build it... is it an xml file or an plain .txt file with name:value pair .... Does anyonw have experience with it who can share it ?
thanks
Felix
Hi Felix,
Looking at http://download.oracle.com/docs/cd/B19306_01/em.102/b40004/cli_verb_ref.htm (Create_service) using vars:Variables file name is between []. So it is not required to use it.
I think the Variables file name has to have the same structure as used in apply_template_tests. The manual is vague about this point.
The variables file format is as follows:
<variables xmlns="template">
<variable name="<name1>" value="<value1>"/>
<variable name="<name2>" value="<value2>"/>
</variables>
Eric
Similar Messages
-
Get (variable) file path and name in a text element
How do you get the (variable) file path and name in a text element (label) in LCD? If you save the PDF and afterwards relocate it, it should update the values. Is that actually possible?
Does anyone have any advice on this issue?
Thanks in advance,
Zack H. -
Variable file name through Receiver mail Communication channel
I need to send a file through receiver communication channel with the following name ( YYMMDD schema) . The YYMMDD is current date . I know how to create these file names throug FCC ( file communication channel) , I tried in the same manner to create this file through Receiver Mail CC , but it did not work . If you have any ideas , can you please share with me ?
ABC_MMYYDD.TXT
Thanks.
RitvikHi Ritvik,
Also, Please look at this link and see if it helps you. It is generating variable file name through a UDF
Re: Problem in dynamically file name generation procedure
Best Regards -
FormulaCalc error when using variablesin variable files?
I defined two variables RForce_ and IntLength_' in variables files:
as following:
IntLength_ : I <1700>
RForce_ : R <1.4314>
in vbs file,I have following:
Call FormulaCalc("Ch('PSA_Kraft') := ('RForce_'-'RForce_'/'IntLength_'*'Gurtweg')")
When I run the vbs file,diadem reports following error:
The formula
Ch('PSA_Kraft') := ('RForce_'-'RForce_'/'IntLength_'*'Gurtweg')
contains an invalid mathematical operation .. ('RForce_'>-<'RForce_'/'IntLength_'*'G.. with text!
When I don't use variables, as following:
Call FormulaCalc("Ch('PSA_Kraft') := (1.4314-0.000842*'Gurtweg')")
my vbs file can run correctly.
Anything wrong with my code?Hi Junwei You,
Yes, there is a problem with the formula calculator expression. You need to use the ' character only when you are referencing existing data channels, not for VAS file variables. Also, I strongly recommend that you always use the full Ch('ChannelName') construct when you reference an existing data channel. Try this instead:
Call FormulaCalc("Ch('PSA_Kraft') := RForce_ - RForce_/IntLength_*Ch('Gurtweg')") Note that you may need to insert further parentheses to specify the exact order of the / and * operators.
Regards,
Brad Turpin
DIAdem Product Support Engineer
National Instruments -
Local variable files is never read
How do i fix an error that reads "The local variable files is never read"?
It's a warning, not an error. Your code will still compile.
You fix it by either getting rid of that variable, or using it. What's the point of having a variable if you never read its value? -
Our company uses a EMC Celerra file share, but most of our users are Windows based. We have a small production department of 7 macs. Starting with Snow Leopard, we noticed some issues with SMB. We were able to resolve those issues, but had to wait to upgrade to Lion because there were additional SMB or permissions concerns with the Celerra file share and Lion. Now, we are again waiting to upgrade to Mavricks because of the way it handles user permissions. Does anyone using Mavericks now also connect to a EMC Celerra file share? Thanks!
Our company uses a EMC Celerra file share, but most of our users are Windows based. We have a small production department of 7 macs. Starting with Snow Leopard, we noticed some issues with SMB. We were able to resolve those issues, but had to wait to upgrade to Lion because there were additional SMB or permissions concerns with the Celerra file share and Lion. Now, we are again waiting to upgrade to Mavricks because of the way it handles user permissions. Does anyone using Mavericks now also connect to a EMC Celerra file share? Thanks!
-
Failed to Download Variable File
Hi Everyone,
Been having issues with getting SCCM setup in our lab. Everyone in the lab is new to SCCM, so lets start with that. I've installed ADK 8.1 and MDT 2013 alongside Config Mgr 2012 R2. My primary issue is with the boot image, or at least I think it is. I've
downloaded the WinPE Drivers from Dell. Ive tried using the WinPE4 and WinPE5. The machine is able to PXE and downloads the boot.wim, but as soon as it finishes the machine reboots. I've hit F8 to see if it is getting an IP, and it is. It is also picking
up the storage devices.
I've tried uninstalling WDS, removing the C:\WIndows\temp, rebooting, removing Remoteinstall, rebooting and reinstalling WDS, but that hasn't fixed it yet. Below is my smts.log file.
<![LOG[LOGGING: Finalize process ID set to 820]LOG]!><time="15:27:43.955+480" date="12-19-2014" component="TSBootShell" context="" type="1" thread="824" file="tslogging.cpp:1495">
<![LOG[==============================[ TSBootShell.exe ]==============================]LOG]!><time="15:27:43.955+480" date="12-19-2014" component="TSBootShell" context="" type="1" thread="824"
file="bootshell.cpp:1055">
<![LOG[Succeeded loading resource DLL 'X:\sms\bin\x64\1033\TSRES.DLL']LOG]!><time="15:27:43.955+480" date="12-19-2014" component="TSBootShell" context="" type="1" thread="824" file="util.cpp:964">
<![LOG[Debug shell is enabled]LOG]!><time="15:27:43.986+480" date="12-19-2014" component="TSBootShell" context="" type="1" thread="824" file="bootshell.cpp:1066">
<![LOG[Waiting for PNP initialization...]LOG]!><time="15:27:44.002+480" date="12-19-2014" component="TSBootShell" context="" type="1" thread="828" file="bootshell.cpp:60">
<![LOG[RAM Disk Boot Path: NET(0)\BOOT\X64\IMAGES\BOOT.P0100005.WIM]LOG]!><time="15:27:44.002+480" date="12-19-2014" component="TSBootShell" context="" type="1" thread="828" file="configpath.cpp:302">
<![LOG[Booted from network (PXE)]LOG]!><time="15:27:44.002+480" date="12-19-2014" component="TSBootShell" context="" type="1" thread="828" file="configpath.cpp:317">
<![LOG[Network(PXE) path: X:\sms\data\]LOG]!><time="15:27:44.002+480" date="12-19-2014" component="TSBootShell" context="" type="1" thread="828" file="configpath.cpp:319">
<![LOG[Found config path X:\sms\data\]LOG]!><time="15:27:44.002+480" date="12-19-2014" component="TSBootShell" context="" type="1" thread="828" file="bootshell.cpp:548">
<![LOG[Booting from removable media, not restoring bootloaders on hard drive]LOG]!><time="15:27:44.002+480" date="12-19-2014" component="TSBootShell" context="" type="1" thread="828" file="bootshell.cpp:582">
<![LOG[X:\sms\data\WinPE does not exist.]LOG]!><time="15:27:44.002+480" date="12-19-2014" component="TSBootShell" context="" type="1" thread="828" file="bootshell.cpp:599">
<![LOG[X:\_SmsTsWinPE\WinPE does not exist.]LOG]!><time="15:27:44.002+480" date="12-19-2014" component="TSBootShell" context="" type="1" thread="828" file="bootshell.cpp:613">
<![LOG[Executing command line: wpeinit.exe -winpe]LOG]!><time="15:27:44.002+480" date="12-19-2014" component="TSBootShell" context="" type="1" thread="828" file="bootshell.cpp:860">
<![LOG[Executing command line: X:\WINDOWS\system32\cmd.exe /k]LOG]!><time="15:27:47.843+480" date="12-19-2014" component="TSBootShell" context="" type="1" thread="824" file="bootshell.cpp:860">
<![LOG[The command completed successfully.]LOG]!><time="15:27:47.843+480" date="12-19-2014" component="TSBootShell" context="" type="1" thread="824" file="bootshell.cpp:942">
<![LOG[Successfully launched command shell.]LOG]!><time="15:27:47.843+480" date="12-19-2014" component="TSBootShell" context="" type="1" thread="824" file="bootshell.cpp:432">
<![LOG[The command completed successfully.]LOG]!><time="15:27:55.874+480" date="12-19-2014" component="TSBootShell" context="" type="1" thread="828" file="bootshell.cpp:942">
<![LOG[Starting DNS client service.]LOG]!><time="15:27:55.874+480" date="12-19-2014" component="TSBootShell" context="" type="1" thread="828" file="bootshell.cpp:666">
<![LOG[Executing command line: X:\sms\bin\x64\TsmBootstrap.exe /env:WinPE /configpath:X:\sms\data\]LOG]!><time="15:27:56.389+480" date="12-19-2014" component="TSBootShell" context="" type="1" thread="828"
file="bootshell.cpp:860">
<![LOG[The command completed successfully.]LOG]!><time="15:27:56.389+480" date="12-19-2014" component="TSBootShell" context="" type="1" thread="828" file="bootshell.cpp:942">
<![LOG[==============================[ TSMBootStrap.exe ]==============================]LOG]!><time="15:27:56.452+480" date="12-19-2014" component="TSMBootstrap" context="" type="1" thread="1192"
file="tsmbootstrap.cpp:1165">
<![LOG[Command line: X:\sms\bin\x64\TsmBootstrap.exe /env:WinPE /configpath:X:\sms\data\]LOG]!><time="15:27:56.452+480" date="12-19-2014" component="TSMBootstrap" context="" type="0" thread="1192"
file="tsmbootstrap.cpp:1166">
<![LOG[Succeeded loading resource DLL 'X:\sms\bin\x64\1033\TSRES.DLL']LOG]!><time="15:27:56.452+480" date="12-19-2014" component="TSMBootstrap" context="" type="1" thread="1192" file="util.cpp:964">
<![LOG[Succeeded loading resource DLL 'X:\sms\bin\x64\TSRESNLC.DLL']LOG]!><time="15:27:56.452+480" date="12-19-2014" component="TSMBootstrap" context="" type="1" thread="1192" file="resourceutils.cpp:169">
<![LOG[Current OS version is 6.2.9200.0]LOG]!><time="15:27:56.452+480" date="12-19-2014" component="TSMBootstrap" context="" type="1" thread="1192" file="util.cpp:3094">
<![LOG[Adding SMS bin folder "X:\sms\bin\x64" to the system environment PATH]LOG]!><time="15:27:56.468+480" date="12-19-2014" component="TSMBootstrap" context="" type="0" thread="1192"
file="tsmbootstrap.cpp:963">
<![LOG[PXE Boot with Root = X:\]LOG]!><time="15:27:56.468+480" date="12-19-2014" component="TSMBootstrap" context="" type="1" thread="1192" file="tsmbootstrap.cpp:1062">
<![LOG[Executing from PXE in WinPE]LOG]!><time="15:27:56.468+480" date="12-19-2014" component="TSMBootstrap" context="" type="1" thread="1192" file="tsmbootstrap.cpp:1077">
<![LOG[Loading TsPxe.dll from X:\sms\bin\x64\TsPxe.dll]LOG]!><time="15:27:56.468+480" date="12-19-2014" component="TSMBootstrap" context="" type="0" thread="1192" file="tsmbootstraputil.cpp:1363">
<![LOG[TsPxe.dll loaded]LOG]!><time="15:27:56.468+480" date="12-19-2014" component="TSPxe" context="" type="0" thread="1192" file="tsmbootstraputil.cpp:1373">
<![LOG[Device has PXE booted]LOG]!><time="15:27:56.468+480" date="12-19-2014" component="TSPxe" context="" type="0" thread="1192" file="tspxe.cpp:122">
<![LOG[Succesfully added firewall rule for Tftp]LOG]!><time="15:27:56.468+480" date="12-19-2014" component="TSPxe" context="" type="0" thread="1192" file="fwopen.cpp:123">
<![LOG[Executing: X:\sms\bin\x64\smstftp.exe -i 10.28.91.100 get X:\sms\data\variables.dat]LOG]!><time="15:27:56.468+480" date="12-19-2014" component="TSPxe" context="" type="0" thread="1192"
file="tspxe.cpp:177">
<![LOG[Command line for extension .exe is "%1" %*]LOG]!><time="15:27:56.530+480" date="12-19-2014" component="TSPxe" context="" type="0" thread="1192" file="commandline.cpp:228">
<![LOG[Set command line: "X:\sms\bin\x64\smstftp.exe" -i 10.28.91.100 get X:\sms\data\variables.dat]LOG]!><time="15:27:56.530+480" date="12-19-2014" component="TSPxe" context="" type="0"
thread="1192" file="commandline.cpp:731">
<![LOG[Executing command line: "X:\sms\bin\x64\smstftp.exe" -i 10.28.91.100 get X:\sms\data\variables.dat]LOG]!><time="15:27:56.530+480" date="12-19-2014" component="TSPxe" context="" type="1"
thread="1192" file="commandline.cpp:827">
<![LOG[Process completed with exit code 1]LOG]!><time="15:27:56.561+480" date="12-19-2014" component="TSPxe" context="" type="1" thread="1192" file="commandline.cpp:1123">
<![LOG[Succesfully removed firewall rule for Tftp]LOG]!><time="15:27:56.577+480" date="12-19-2014" component="TSPxe" context="" type="0" thread="1192" file="fwopen.cpp:146">
<![LOG[uExitCode == 0, HRESULT=80004005 (e:\nts_sccm_release\sms\server\pxe\tspxe\tspxe.cpp,185)]LOG]!><time="15:27:56.577+480" date="12-19-2014" component="TSPxe" context="" type="0" thread="1192"
file="tspxe.cpp:185">
<![LOG[Failed to download pxe variable file. Code(0x00000001)]LOG]!><time="15:27:56.577+480" date="12-19-2014" component="TSPxe" context="" type="3" thread="1192" file="tspxe.cpp:185">
<![LOG[PxeGetPxeData failed with 0x80004005]LOG]!><time="15:27:56.577+480" date="12-19-2014" component="TSPxe" context="" type="3" thread="1192" file="tsmbootstraputil.cpp:1458">
<![LOG[HRESULT_FROM_WIN32(dwError), HRESULT=80004005 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmbootstraputil.cpp,1459)]LOG]!><time="15:27:56.577+480" date="12-19-2014" component="TSPxe" context=""
type="0" thread="1192" file="tsmbootstraputil.cpp:1459">
<![LOG[TSMBootstrapUtil::PxeGetPxeData(&bPxeBooted, sVariablesFile, sPxePasswd), HRESULT=80004005 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmediawizardcontrol.cpp,2667)]LOG]!><time="15:27:56.577+480" date="12-19-2014"
component="TSPxe" context="" type="0" thread="1192" file="tsmediawizardcontrol.cpp:2667">
<![LOG[oTSMediaWizardControl.Run( sMediaRoot, true, sTSLaunchMode ), HRESULT=80004005 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmbootstrap.cpp,1078)]LOG]!><time="15:27:56.577+480" date="12-19-2014" component="TSPxe"
context="" type="0" thread="1192" file="tsmbootstrap.cpp:1078">
<![LOG[Execute( eExecutionEnv, sConfigPath, sTSXMLFile, uBootCount, &uExitCode ), HRESULT=80004005 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmbootstrap.cpp,1226)]LOG]!><time="15:27:56.577+480" date="12-19-2014"
component="TSPxe" context="" type="0" thread="1192" file="tsmbootstrap.cpp:1226">
<![LOG[Exiting with return code 0x80004005]LOG]!><time="15:27:56.577+480" date="12-19-2014" component="TSPxe" context="" type="1" thread="1192" file="tsmbootstrap.cpp:1238">
<![LOG[hMap != 0, HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentscope.cpp,493)]LOG]!><time="15:27:56.577+480" date="12-19-2014" component="TSPxe" context="" type="0" thread="1192"
file="environmentscope.cpp:493">
<![LOG[m_pGlobalScope->open(), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentlib.cpp,335)]LOG]!><time="15:27:56.577+480" date="12-19-2014" component="TSPxe" context="" type="0"
thread="1192" file="environmentlib.cpp:335">
<![LOG[this->open(), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentlib.cpp,553)]LOG]!><time="15:27:56.577+480" date="12-19-2014" component="TSPxe" context="" type="0"
thread="1192" file="environmentlib.cpp:553">
<![LOG[Execution complete.]LOG]!><time="15:27:56.577+480" date="12-19-2014" component="TSBootShell" context="" type="1" thread="828" file="bootshell.cpp:693">
<![LOG[hMap != 0, HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentscope.cpp,493)]LOG]!><time="15:27:56.577+480" date="12-19-2014" component="TSBootShell" context="" type="0"
thread="828" file="environmentscope.cpp:493">
<![LOG[m_pGlobalScope->open(), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentlib.cpp,335)]LOG]!><time="15:27:56.577+480" date="12-19-2014" component="TSBootShell" context="" type="0"
thread="828" file="environmentlib.cpp:335">
<![LOG[this->open(), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentlib.cpp,553)]LOG]!><time="15:27:56.577+480" date="12-19-2014" component="TSBootShell" context="" type="0"
thread="828" file="environmentlib.cpp:553">
<![LOG[::RegOpenKeyExW (HKEY_LOCAL_MACHINE, sKey.c_str(), 0, KEY_READ, &hSubKey), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,809)]LOG]!><time="15:27:56.577+480" date="12-19-2014" component="TSBootShell"
context="" type="0" thread="828" file="utils.cpp:809">
<![LOG[RegOpenKeyExW is unsuccessful for Software\Microsoft\SMS\Task Sequence]LOG]!><time="15:27:56.577+480" date="12-19-2014" component="TSBootShell" context="" type="2" thread="828"
file="utils.cpp:809">
<![LOG[GetTsRegValue() is unsuccessful. 0x80070002.]LOG]!><time="15:27:56.577+480" date="12-19-2014" component="TSBootShell" context="" type="2" thread="828" file="utils.cpp:842">
<![LOG[End program: ]LOG]!><time="15:27:56.577+480" date="12-19-2014" component="TSBootShell" context="" type="1" thread="828" file="bootshell.cpp:725">
<![LOG[Finalizing logging from process 820]LOG]!><time="15:27:56.577+480" date="12-19-2014" component="TSBootShell" context="" type="1" thread="828" file="tslogging.cpp:1741">
<![LOG[Finalizing logs to root of first available drive]LOG]!><time="15:27:56.577+480" date="12-19-2014" component="TSBootShell" context="" type="1" thread="828" file="tslogging.cpp:1583">
<![LOG[LOGGING: Setting log directory to "C:\SMSTSLog".]LOG]!><time="15:27:56.608+480" date="12-19-2014" component="TSBootShell" context="" type="1" thread="828" file="tslogging.cpp:1808">Hi,
This might be caused by incorrect platform of driver was used in the boot image.
Remove the drivers from boot image.
Only add the network and storage drivers into the boot image and update it.
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
How to read variable file name into ODI
Hello everyone,
I apologize in advance if this has already been answered - I've done searches both on Google and this OTN area and have not found an answer to my query.
I would like to do the following via ODI:
1) rename a file in a specific directory
2) process the file
2) move the file to a backup directory
3) rename the file again
The file name is going to change everytime this process runs, as date is appended to it. I could create a variable with a system date in it and concatenate that into the filename before processing it, but I am not sure when they will run the ODI routine. Therefore, I would prefer to play it safe by doing something like a wildcard search in DOS.
Example:
Filename = TestFile12072010.csv
I would like to:
1) rename TestFile12072010.csv to TestFile.csv
2) process the file
3) move the file to another directory
4) rename the file to TestFile<processdate>.csv
I was hoping to do the first step using a DOS command that reads in TestFile*.csv. Note: I would expect there to be only 1 file with this naming convention and file extension in the directory.
I have tried creating a stored procedure that uses the Operating System type, but it runs without stopping. I have also tried ODIFileCopy and OS Command. Obviously, I am doing something wrong since I am getting errors.
Any guidance would be much appreciated! :)
Thanks!
-OSIssue was due to a syntax error. Case closed.
Thanks!
-OS -
How to format a variable (file name)
Hi,
I'm setting up a book consisting of 34 individual files. Each filename with this structure: "1.4 - Chapter name", "2.4 - Chapter name" etc.
On the top of the masterpage I have insert the variable file_name in a text-box. This is straight forward and works as should.
Now my problem: how can I format the variable, so the numerical chapter No. is separated from the text part? My aim is to place the numerical on each page aligned away from spine and to place the text part centered.
Of course it is possible to override the MP in each document, but would require 78 manual interventions (34 documents left/right),
Has anyone a solution, or found a way to accomplish what I try to achieve?
FYI I'm a rookie with InDesign :-)
ErlingAs far as InDesign is concerned a variable is a single character, so it cannot be split. You can sometimes accomplish what you need to do with a Running Header (Character Style) variable by assigning various character styles to different parts of a text string (the styles can be nothing more than style names with no attributes), but I don't see a way to get the file name automatically and be able to split it.
-
How to call a variable file path in javascript
Hi,
My objective is to capture a file path on mac and windows. However, this file path gets changed with various users.
For example the path is:
c:\user\username\AppData\Local\Temp\myfolder------> this is for windows machine
/users/username/Library/Application Support/tempfolder/Temporary Files/-------> this is for mac machine
As you can see, the path will be same for all the machines. Only the difference will be in searching the user and username at the start of file path. Rest folders will remain same on all the machines.
Is there any grep pattern through which I can call this complete path in a variable for all the users.
Any help will be appreciated.
Regards,
AbhiHi,
You are able to check OS:
var currOS = $.os;
regarding to value of this string you can switch to various paths
Jarek -
Hi
Question 1: I am working on outbound from SAP, is it possile to generate file names of file as
SSS_BBB_date.csv whereas SSS is source system, this cna be defaulted but BBB is the store name which has to come from interfacing one of the data field.
Question2: Just want to confirm if XI accept or generate .CSV file extension.
Regards
RinkuRinku,
Surely you can do it. Please read the below weblog it will give you an idea
/people/sameer.shadab/blog/2005/09/23/an-interesting-usage-of-variable-substitution-in-xi
Since you want to use payload please refer the help doc,
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
Please follow the same example in help, it will give you an idea for your structure.
If you have any doubts revert back..
Best regards,
raj. -
Variable substitution - Pseudo Path Variable - file adapter
Hello,
I am sending an purchase order fro SRM to the file adapter and like to create an filename like purchaseordernumber.xml. Can anyone give me some help because I do not understand the sap help regarding this topic. The XML starts as follows:
<?xml version="1.0" encoding="utf-8"?>
<nr1:PurchaseOrderRequest xmlns:nr1="http://sap.com/xi/SAPGlobal/Global">
<MessageHeader>
<ID schemeID="0101">41000000290000000020051123164420</ID>
<CreationDateTime>2005-11-23T16:44:20Z</CreationDateTime>
<SenderParty>
<InternalID schemeID="PartnerID" schemeAgencyID="M06CLNT100">11</InternalID>
</SenderParty>
<RecipientParty>
<InternalID schemeID="PartnerID" schemeAgencyID="M06CLNT100">LIEFERANT2</InternalID>
</RecipientParty>
</MessageHeader>
<PurchaseOrder>
<ID schemeAgencyID="M06CLNT100" schemeAgencySchemeAgencyID="ZZZ">4100000029</ID>
regards
StefanThanx,
I have tried:
var1 payload:PurchaseOrder,1,ID,1
but its not working.
Does anyone know my mistake?.
best regards
Stefan -
Data load from variable file names
I have multiple files that I want to load into a cube, each starting with the same 5 characters but ending differently. EG GM1010104 GM1010204 What's the best option for MAXL script to automate this data load ? Can you use a wildcard name in the script to pick up anything starting with GM101**** ?
No - you need to specify the file name as it appears properly (I've never tried it but I am pretty sure it wouldn't work). One solution to this problem though is to have a shell script (or DOS commands) auto-generate an ESSCMD/MaxL script based on the files that exist in a directory.Most scripting environments should allow you to loop through a list of files that match some pattern - you can then create a script with the results and execute it.Another option is to build a MaxL script that accepts a parameter (file name) and have a shell script call it as it loops through the file list.Hope that helps.Regards,Jade----------------------------------Jade ColeSenior BI ConsultantClarity [email protected]
-
In File curfile1, I am fixing my path and sending that path in ReadFile. But I do not want to fix my path, instead whatever path I select while using my user interface should be my curfile1. My code below with fixed path is working fine:
private void fileButActionPerformed(java.awt.event.ActionEvent evt)
JFileChooser chooser=new JFileChooser();
chooser.setCurrentDirectory(curfile1);
chooser.setMultiSelectionEnabled(true);
int state=chooser.showOpenDialog(null);
File[] files=chooser.getSelectedFiles();
String[] filenames=getFilenames(files);
for(int i=0;i<filenames.length;i++)
try
ReadFile(curfile1,filenames);
catch (IOException ex)
ex.printStackTrace();
File curfile1=new File("D:\\temp\\");
Could anyone please tell me what updations I need to make in my code.In my user interface when I select files from
any path other than D:\\temp\\, it's still
trying to locate those files in the path
D:\\temp\\, because I have mentioned as
File curfile1=new File(D:\\temp\\);. So please
tell me how to specify to pick up files from any
path. I do not want to fix my path.Why aren't you just removing new File("D:\\temp\\") in that case?
Kaj -
Formatting OLE object to variable file paths.
I am currently using the trial version (2008) of Crystal Reports...at least for the next 7 1/2 days! I have worked through all my problems/questions except one. I am trying to insert a SolidWorks drawing document as an OLE object (linked) & the file path for the SW drawing needs to vary by the part name. I placed a column in my Excel worksheet titled "Drawing File" & have tried several different formats to point the OLE to the correct file. Thus far I am successful only in showing the original file the OLE object was created with. The file path is Z:
Jesse\Crystal Reports Tests\9-15-2009\FILENAME.slddrw
I've tried adding hyperlinks to my Excel document, & I've typed out the address to the letter, but I just can't seem to get it to work. Can anyone offer a solution here?I got the format right from the start. Crystal '08 simply would not link to a SolidWorks file as it will a JPEG file (or any other picture file). So be warned...if you want a SolidWorks drawing to show on your Crystal Report, you MUST save it as a picture file, which as SolidWorks users know, puts EXTREME limitations on a super product since your drawings & models are dynamically related.
Maybe you are looking for
-
Problem with alv output export to text file
hi experts, when iam exporting alv output to text file, some data is missing in text file.say for example sold-to-party value is 1155027 in alv out put,but in text file it is showeing only 115502 , the last digit is missing, can anyone help urgent!!!
-
Is there a way to create a thumbnail for QuickTime videos on a PC? (Windows XP) All the the videos currently have the same QuickTime logo as their thumbnail.
-
hi, i've developed a smartform for purchase order i've configured in nace .instead of MEDRUCK i have given the Smartform name as ZPURC im getting the error as 'ERROR IN OPEN_FORM'. what should i do for this where should i configure the smartform. th
-
The best part is that the 5 duplicates don't even have any contact info. And all my lovely folders .....where are they now? I think it had something to do with switching companies and my last iPhone had been linked to their exchange account. But my
-
ALV truncation while download using List--Save/send--File--Spread sheet
Experts, In ALV output, I am trying to download using menu item "List --> Save/send --> File --> Spread sheet" then in the popup appears here if i GIVE the FILE NAME THEN,material number is getting truncated. If I don't give any file name it is stor