Dynamic dashes on path
I've got a map and I want to show how to get from one country
to the other using dashes or some other kind of indicator to show
the route you would take. For example, my starting point is
California, and my ending point is Italy. I would like to have a X
show up in California (to indicate the starting point), then a
series of dashes would appear in a gradual manner, heading for
Italy, where a second X would appear, showing the end of the route.
I know how to get the X's to appear and set up a motion path, but
how do I make it so the dashes appear in order?
Hi,
the link is helpful but it still throws an error from my end . . .
I set the xdo.cfg to
<config version="1.0.0" xmlns="http://xmlns.oracle.com/oxp/config/">
<properties>
<property name="xslt.FILE_LOCATION">D:\OraHome_1\xmlp\XMLP\Reports\Reports</property>
</properties>
</config>
and my import file is
<?import:file://${FILE_LOCATION}/Global_Logo/Global_Logo.rtf?>
<?import:file://${FILE_LOCATION}/Highlights/Highlights.rtf?>
<?import:file://${FILE_LOCATION}/Benefit/Benefit.rtf?>
in my main template it calls 3 sub templates . . .
even I put a single quote in the 'D:\OraHome_1\xmlp\XMLP\Reports\Reports' in the xdo.cfg, I still get the error
at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
at RTF2PDF.runRTFto(RTF2PDF.java:629)
at RTF2PDF.runXDO(RTF2PDF.java:439)
at RTF2PDF.main(RTF2PDF.java:289)
Caused by: java.net.UnknownHostException: ${FILE_LOCATION}
at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)
... 14 more
Thanks,
Similar Messages
-
Hi All,
Please help me how to do dynamic import file path since we have multiple environment where our reports will be migrated.
ThanksHi,
the link is helpful but it still throws an error from my end . . .
I set the xdo.cfg to
<config version="1.0.0" xmlns="http://xmlns.oracle.com/oxp/config/">
<properties>
<property name="xslt.FILE_LOCATION">D:\OraHome_1\xmlp\XMLP\Reports\Reports</property>
</properties>
</config>
and my import file is
<?import:file://${FILE_LOCATION}/Global_Logo/Global_Logo.rtf?>
<?import:file://${FILE_LOCATION}/Highlights/Highlights.rtf?>
<?import:file://${FILE_LOCATION}/Benefit/Benefit.rtf?>
in my main template it calls 3 sub templates . . .
even I put a single quote in the 'D:\OraHome_1\xmlp\XMLP\Reports\Reports' in the xdo.cfg, I still get the error
at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
at RTF2PDF.runRTFto(RTF2PDF.java:629)
at RTF2PDF.runXDO(RTF2PDF.java:439)
at RTF2PDF.main(RTF2PDF.java:289)
Caused by: java.net.UnknownHostException: ${FILE_LOCATION}
at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)
... 14 more
Thanks, -
Hey Everyone,
So I deal with a lot of files each day that need to be saved according to their lead code, meaning that there is a folder that holds thousands of sub folders that have the same name as this lead code on a server.
So since I have the lead code in the file name I'm trying to use that in conjunction with the file path to tell illustrator where to save it with Javascript. Also the idea of a dynamic save path is awesome to me.
Here's what I've got so far, it's not working yet but I feel like I'm close.
Dynamic Save Path////////////////////////////////////////////////////////////////////////////////
#target illustrator
var sourceDoc = app.activeDocument;
var sourceName =sourceDoc.name;
var customerNum = sourceName.substring(0, sourceName.length - 8)
customerNum
sourceName = sourceName.substring(0, sourceName.length - 3)
//alert(sourceName)
alert(customerNum + " Customer # saved")
alert(sourceName + " File name saved") //end
var doc = app.activeDocument;
var doc_Path = File("I:\GRAPHICS"+ "/" + customerNum);
var substituir_Path = doc_Path+ "/" + customerNum;
//alert("sourceName: "+sourceName+"\nsourceDoc_Path: "+doc_Path+"\nsubstituir_Path: "+substituir_Path);
function SaveFileAsFXG (dest) {
if ( app.documents.length > 0 ) {
var saveOptions = new FXGSaveOptions();
var fxgDoc = new File(dest);
app.activeDocument.saveAs( fxgDoc, saveOptions );
var destFilePath = substituir_Path;
SaveFileAsFXG (destFilePath);
alert("done!") //endI figured it out, I had it removing too many characters. I can get away with hardcoding this in my script because of how we name files where I work. also I realized I had a left over part in there that I didn't need.
I also got rid of the dividers to make it easeir to read here online
#target illustrator
var sourceDoc = app.activeDocument;
var sourceName =sourceDoc.name;
var customerNum = sourceName.substring(0, sourceName.length - 7)
customerNum
sourceName = sourceName.substring(0, sourceName.length - 3)
alert(customerNum + " Customer # saved")
alert(sourceName + " File name saved") //end
var doc = app.activeDocument;
var doc_Path = File("I:\GRAPHICS"+ "/" + customerNum);
function SaveFileAsFXG (dest) {
if ( app.documents.length > 0 ) {
var saveOptions = new FXGSaveOptions();
var fxgDoc = new File(dest);
app.activeDocument.saveAs( fxgDoc, saveOptions );
SaveFileAsFXG (doc_Path);
alert("done!") //end -
I'm currently displaying a Flash Video (instance name = vid)
through a movie clip (instance name = top) in my FLA with this
actionscript:
top.vid.contentPath = "0207.flv";
It works fine. But now I need to figure out how to make the
content path dynamic. A variable will be added to the SWF's parent
HTML file like this:
<param name="movie" value="test.swf?videoDate=0207" />
The goal is to make an SWF file that can play any FLV file
based on the value of the videoDate variable. So if videoDate=0207,
then the SWF will play 0207.flv. If videoDate=0307, then the SWF
will play 0307.flv. And so on.
I can see how this should work, but I'm just not enough of an
actionscript badass to know exactly how to code it. In plain
English, I think I need something like this:
videoArray = value of videoDate variable from HTML + .flv
extension
top.vid.contentPath = videoArray
Any help would really really be appreciated.videoArray = videoDate + ".flv";
-
Hello all,
I've created a XFA Dynamic form that imports a number of records from one of our local databases. One of these fields is the path to an image. I would like to set an image field to that url... or, better still, embed the image into the .pdf form itself.
Everything that I've read has told me that the only way to do so is to set the image field's raw value to a base64 string representation of that image. This isn't an option, as I have no way to convert that image to base64.... unless I can do so via SQL or javascript. I've been trying to do this for a few days with no luck.
I figure that I'm not the only one who has had this porblem. I was hoping that someone out there has developed a solution that they would be willing to share. I'd appreciate any help that anyone might be able to offer. Thanks =)
- ScottHi there,
Thanks for your reply. The URL field is useful only to set a default image path. under the binding tab, when I bind the image to the url from a data connection, the url is displayed as text within the image field. No image appears.
The only solution that I've found online is to somehow get the image converted to base64... the issue is that the only technologies that I have available to me are SQL or javascript... neither of which were designed to convert images to base64.
Does onyone know where I can find a javascript function to convert an image to base64?
- Scott -
Can't find my dynamically loaded VI path
Hi Folks,
I wrote a small VI to aid with file paths used for dynamically loaded VIs. It has worked well up until this point, when I tried to use it in a larger project. I can't seem to figure out what's wrong here - I was under the impression that as long as the (called) VI was included in the build, that it should be available from \built.exe\...
In terms of directory structure, the caller VI is at:
C:\Projects\LabVIEW\ABES v6.0.1\toplevel_602.vi
The called VI is in:
C:\Projects\LabVIEW\ABES v6.0.1\subvis\GUI\preferences\GUI_preferences.vi
Caller:
The 'AutoPath' VI:
Info received when trying to call subvi from BUILT exe:
Finally, project structure (auto-populating directories) and build spec's:
What is it that I'm not getting here?
Thanks for reading,
Jamie
v2009 devel. w/RTThe first example assumes two things:
There's a folder that has all the plugins.
The actual plugin VI is included in the build (e.g. by putting it in the Always Included section, as shown below), so it's also placed inside the EXE.
If this is done, then the "plugins folder" VI shown in my example and the actual plugin VIs keep their relative positions inside the EXE, which is the case the original poster had. In this case, as well as in my second example, you don't have to do anything - LV will automatically place the VI in the correct place INSIDE the EXE.
I didn't look at your code, but if you're not including the plugin inside the EXE itself, this can become more complicated, because you have to manage all the paths and the dependencies. I suggest you try to avoid doing this unless you must have the ability to add plugins after building the EXE.
If you do need, try searching around for info on plugin architectures. I believe there's some info in the LV wiki.
Try to take over the world! -
Load dynamically image from path
Hi,
I want load image from path with CR4E. I have a report with a field that contain the path of image and a empty PictureObject.
I wanna put the image from the path in the picture image.
That work when i have a section that is unique :
I can obtain the path with this code
IField field = clientDoc.getDataDefinition().getResultFields()
.findField(fieldObject.getDataSourceName(), FieldDisplayNameType.formulaName, java.util.Locale.getDefault());
RowsetMetaData rowSetMetaData = new RowsetMetaData();
rowSetMetaData.setDataFields(clientDoc.getDataDefinition().getResultFields());
RowsetCursor resultCursor = clientDoc.getRowsetController().createCursor(null, rowSetMetaData);
Value values = clientDoc.getRowsetController().browseFieldValues(field, -1);
And i can view the image with this code
clientDoc.getReportDefController().getReportObjectController().remove(picture);
PictureObject boPictureObject = clientDoc.getReportDefController().getReportObjectController().importPicture(path, theSection, picture.getLeft(), picture.getTop());
boPictureObject.setWidth(picture.getWidth());
boPictureObject.setWidth(picture.getHeight());
But when the section is not unique, it is always the same image in all section.
How then I to make? A resolution has t-il there ? (with crystal report 8 there was ISectionEvent for this)
Thanks for your help!
Edited by: hermannpencole on Mar 24, 2011 5:35 PMHi fUjI_FX,
<br/>
This is a solution for report with a field that contain the path of image and a empty PictureObject. the filed for the path is under picture Object, then image hide this field. (in this example the field for the path get the path from database with field PATH or MARKET_PATH you can change it).
- at first open the doc
<pre>
* Load.
* @throws ReportSDKException the report sdk exception
* @throws IOException Signals that an I/O exception has occurred.
private void load() throws ReportSDKException, IOException {
clientDoc = new ReportClientDocument();
clientDoc.open(new File(report.getPath()).getAbsolutePath(), OpenReportOptions._openAsReadOnly);
//..here change datasource if necessary
clientDoc.getDatabaseController().logon(username, password);
</pre>
- After assign parameters if necessary with with CRJavaHelper.addDiscreteParameterValue. If you want communicate with the user you must develop your own Dialog Box (i have it if you want).
<br/><br/>
- And finally search on the reportDoc if you have Field with image (field named PATH and MARKED PATH in this sample) and replace it with picture image : sample code
<pre>
* Process report.
* @param reportClientDocument the report client document
* @throws IOException Signals that an I/O exception has occurred.
private void processReport(IReportClientDocument reportClientDocument) throws IOException {
try {
if (reportClientDocument == null) {
return;
// Get the area collection of the report
Areas theAreaCollection = reportClientDocument.getReportDefController().getReportDefinition().getAreas();
if (theAreaCollection == null) {
return;
// Iterates through the areas
int lNumberOfAreas = theAreaCollection.size();
for (int lArea = 0; lArea < lNumberOfAreas; lArea++) {
IArea anArea = theAreaCollection.getArea(lArea);
if (anArea != null) {
Sections theSectionCollection = anArea.getSections();
if (theSectionCollection != null) {
// Iterates through the sections
long lNumberOfSections = theSectionCollection.size();
for (int lSection = 0; lSection < lNumberOfSections; lSection++) {
ISection aSection = theSectionCollection.getSection(lSection);
processSection(aSection);
} catch (ReportSDKException e) {
// TODO Auto-generated catch block
e.printStackTrace();
* Process section.
* @param theSection the the section
* @throws ReportSDKException the report sdk exception
* @throws IOException Signals that an I/O exception has occurred.
private void processSection(ISection theSection) throws ReportSDKException, IOException {
if (theSection == null) {
return;
//System.out.printf("----> ProcessSection2 %s\n", theSection.getName());
ReportObjects theReportObjectCollection = theSection.getReportObjects();
if (theReportObjectCollection == null) {
return;
// Iterate through the section items
int lNumberOfReportObjects = theReportObjectCollection.size();
Values values = null;
PictureObject picture = null;
String formulaName = null;
for (int lReportObject = 0; lReportObject < lNumberOfReportObjects; lReportObject++) {
IReportObject aReportObject = theReportObjectCollection.getReportObject(lReportObject);
if (isNotifiable(aReportObject)) {
FieldObject fieldObject = (FieldObject) aReportObject;
IField field = clientDoc.getDataDefinition().getResultFields()
.findField(fieldObject.getDataSourceName(), FieldDisplayNameType.formulaName, java.util.Locale.getDefault());
RowsetMetaData rowSetMetaData = new RowsetMetaData();
rowSetMetaData.setDataFields(clientDoc.getDataDefinition().getResultFields());
RowsetCursor resultCursor = clientDoc.getRowsetController().createCursor(null, rowSetMetaData);
formulaName = field.getFormulaForm();
values = clientDoc.getRowsetController().browseFieldValues(field, -1);
if (aReportObject.getKind() != null && aReportObject.getKind().equals(ReportObjectKind.picture)) {
picture = (PictureObject) aReportObject;
if (picture != null && formulaName != null) {
//Create blank image
int resolution = getResolution();
int width = (picture.getWidth() * resolution) / 1440;
int height = (picture.getHeight() * resolution) / 1440;
String locationTemp = System.getProperty("java.io.tmpdir") + "imagegen.png";
File tempFile = new File(locationTemp);
tempFile.deleteOnExit();
ImageUtils.createBlankImage(tempFile, width, height, resolution);
clientDoc.getReportDefController().getReportObjectController().remove(picture);
PictureObject boPictureObject = clientDoc.getReportDefController().getReportObjectController().importPicture(locationTemp, theSection, picture.getLeft(), picture.getTop());
boPictureObject.setWidth(picture.getWidth());
boPictureObject.setWidth(picture.getHeight());
if (values != null && !values.isEmpty()) {
//Create image in temp dir
for (int i=0; i < values.size(); i++) {
String locationString = (String) values.get(i).computeText().replaceAll("[\\\"\\']", "");
File fileToResize = new File(locationString);
if (locationString.isEmpty()) {
//Nothing blank image is already generated
} else if (!fileToResize.exists()) {
locationTemp = System.getProperty("java.io.tmpdir") + "imagegen" + locationString.replaceAll("[:/\\\\\\. ]", "_") + ".png";
tempFile = new File(locationTemp);
tempFile.deleteOnExit();
ImageUtils.createImageNotFound(tempFile, width, height, resolution);
} else {
locationTemp = System.getProperty("java.io.tmpdir") + "imagegen" + locationString.replaceAll("[:/\\\\\\. ]", "_") + ".png";
tempFile = new File(locationTemp);
tempFile.deleteOnExit();
ImageUtils.createResizedCopy(fileToResize, tempFile, width, height, resolution);
//Create dynamic picture
PictureObject boPictureObject2 = (PictureObject)boPictureObject.clone(true);
ConditionFormula c = new ConditionFormula();
c.setText( "\"" + System.getProperty("java.io.tmpdir") +
"imagegen\" & replace(replace(replace(replace(replace(replace(replace(" + formulaName + ",\"\\\",\"_\"),\":\",\"_\"),\"\"\"\",\"\"),\" \",\"_\"),\"'\",\"\"),\"/\",\"_\"),\".\",\"_\") & \".png\"");
boPictureObject2.setGraphicLocationFormula(c);
boPictureObject2.setLeft(picture.getLeft());
boPictureObject2.setTop(picture.getTop());
boPictureObject2.setWidth(picture.getWidth());
boPictureObject2.setHeight(picture.getHeight());
clientDoc.getReportDefController().getReportObjectController().modify(boPictureObject, boPictureObject2);
* Gets the resolution.
* @return the resolution
private int getResolution() {
double dResolution = MIN_RESOLUTION;
switch (printQuality) {
case PRINT_QUALITY_HIGH: dResolution = MAX_RESOLUTION; break;
case PRINT_QUALITY_MEDIUM: dResolution = MIN_RESOLUTION + ((MAX_RESOLUTION - MIN_RESOLUTION) * .6); break;
case PRINT_QUALITY_NORMAL: dResolution = MIN_RESOLUTION + ((MAX_RESOLUTION - MIN_RESOLUTION) * .3); break;
case PRINT_QUALITY_DRAFT: dResolution = MIN_RESOLUTION; break;
return (int)dResolution;
* Checks if is notifiable.
* @param theObjectPtr the the object ptr
* @return true, if is notifiable
* @throws ReportSDKException the report sdk exception
* @throws IOException Signals that an I/O exception has occurred.
private boolean isNotifiable(IReportObject theObjectPtr) throws ReportSDKException, IOException {
if (theObjectPtr == null) {
return false;
//System.out.printf("----> IsNotifiable %s\n", theObjectPtr.getName());
ReportObjectKind kind = theObjectPtr.getKind();
if (kind.equals(ReportObjectKind.field)) {
// The report object is a database field, let's see if it is an olefield
return (isOLEField((FieldObject) theObjectPtr));
} else if (kind.equals(ReportObjectKind.subreport)) {
// Don't plug imager, but examine the subreport for other image
ISubreportObject aSubreport = (ISubreportObject) theObjectPtr;
processReport(clientDoc.getSubreportController().getSubreport(aSubreport.getSubreportName()));
return false;
} else {
// ignore all other kinds
return false;
* Checks if is oLE field.
* @param fieldObject the field object
* @return true, if is oLE field
* @throws ReportSDKException the report sdk exception
private boolean isOLEField(final FieldObject fieldObject) throws ReportSDKException {
IField field = clientDoc.getDataDefinition().getResultFields()
.findField(fieldObject.getDataSourceName(), FieldDisplayNameType.formulaName,
java.util.Locale.getDefault());
if (field == null) {
return false;
//System.out.printf("----> IsOLEField %s\n", field.getName());
return ((field.getName().equalsIgnoreCase(("PATH"))) || (field.getName().equalsIgnoreCase(("MARKER_PATH"))));
</pre>
Edited by: hermannpencole on May 25, 2011 3:50 PM -
Create a dynamic physical file path in FILE tcode
Hi ,
I have a requirement where i need to create a file on application server. the physical path depend on the month in which it is executing.
For example I have a file with the name 29082011_hh:mm:ss.dat.
This file should be stored in the directory file015\FI\appl\Aug\.
So i require to create the logical file path as file15\Fi\appl\<month>\<filename>
My question is do we need to maintain the folders for all the months in AL11 or it can be generated at runtime
Plz replyYou must create the directories beforehand.
-
Hi Experts
I am doing file to Idoc scenario. For the source file, the files can reside in different folders. Is it possible to handle the different folders in single communication channels or we need to create multiple communication channels for the different folders.
Thnz
FaheemHi Aamir,
I dont think we can make a sender file adapter poll in multiple directories. May be the file name could be given using wild card characters, but not the file path. Is there really a way we could achieve this. If so, I have no clue here. Can you throw more light on this. Am too looking forward for a soln here.
Regards,
Jaishankar -
How to create dynamic source file path for lumira?
i have source file for lumira visualization on D:\lumira\SourceFiles\sample.xlsx;
also .lums file in D:\lumira\demo.lums
But when i use the same Lumira folder in different system i have to again create connection for the datasource for fetching the data.So please suggest me how can i use this file so that i don't need to create a new connection again and i should get the updated data i.e. the data should change according to the change in the datasource file.Hi,
this isn't possible.
you need to go the Connections window in Lumira home page, and repoint the connection to the new location
regards,
H -
How to set dynamic file path in LSMW
I am working on LSMW object to upload say excel file from my desktop.. if someone runs my lsmw application on their system obviously it fails.. is there way where I can dynamically set the path..I mean whomsoever runs the application it picks the file from their location and execute the program.
hi,,,
change your code accordingly
here i am inserting data into ztable from excel .
*& Report ZBI_UPLOAD_DATA_MAST *
REPORT zbi_upload_data_mast .
DATA : it_tab TYPE filetable,
gd_subrc TYPE i.
TYPES : BEGIN OF wa_wrkctr,
fictr TYPE zbi_fictr_mast-fictr,
prctr TYPE zbi_fictr_mast-prctr,
type TYPE zbi_fictr_mast-type,
END OF wa_wrkctr.
DATA : wa_save TYPE zbi_fictr_mast.
DATA : gd_scol TYPE i VALUE '1',
gd_srow TYPE i VALUE '1',
gd_ecol TYPE i VALUE '256',
gd_erow TYPE i VALUE '65536'.
DATA : it_datatab TYPE STANDARD TABLE OF wa_wrkctr WITH HEADER LINE INITIAL SIZE 0.
it_phy_data TYPE STANDARD TABLE OF wa_energy WITH HEADER LINE INITIAL SIZE 0.
*data : w_current_inv_no(5) TYPE n,
w_pop_up_text LIKE wfcsr_ui_popup_text.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_file LIKE rlgrap-filename OBLIGATORY
DEFAULT 'C:\Physical Stock.xls' .
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
window_title = 'Select File Name'
default_extension = '*.xls'
default_filename = '*.xls'
file_filter = '*.xls'
initial_directory = 'c:\'
MULTISELECTION =
WITH_ENCODING =
CHANGING
file_table = it_tab
rc = gd_subrc.
USER_ACTION =
FILE_ENCODING =
EXCEPTIONS
FILE_OPEN_DIALOG_FAILED = 1
CNTL_ERROR = 2
ERROR_NO_GUI = 3
NOT_SUPPORTED_BY_GUI = 4
others = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
READ TABLE it_tab INTO p_file INDEX 1.
ENDIF.
START-OF-SELECTION.
START-OF-SELECTION.
PERFORM upload_excel_file TABLES it_datatab
USING p_file
gd_scol
gd_srow
gd_ecol
gd_erow.
PERFORM eventtab_build CHANGING lt_eventtab.
PERFORM display_data.
*& Form UPLOAD_EXCEL_FILE
text
-->P_IT_DATATAB text
-->P_P_FILE text
-->P_GD_SCOL text
-->P_GD_SROW text
-->P_GD_ECOL text
-->P_GD_EROW text
FORM upload_excel_file TABLES p_it_datatab
USING p_file
p_scol
p_srow
p_ecol
p_erow.
DATA : lt_intern TYPE kcde_cells OCCURS 0 WITH HEADER LINE.
Has the following format:
Row number | Colum Number | Value
i.e. 1 1 Name1
2 1 Joe
DATA : ld_index TYPE i.
FIELD-SYMBOLS : <fs>.
Note: Alternative function module - 'ALSM_EXCEL_TO_INTERNAL_TABLE'
CALL FUNCTION 'KCD_EXCEL_OLE_TO_INT_CONVERT'
EXPORTING
filename = p_file
i_begin_col = p_scol
i_begin_row = p_srow
i_end_col = p_ecol
i_end_row = p_erow
TABLES
intern = lt_intern
EXCEPTIONS
inconsistent_parameters = 1
upload_ole = 2
OTHERS = 3.
IF sy-subrc <> 0.
FORMAT COLOR COL_BACKGROUND INTENSIFIED.
WRITE:/ 'Error Uploading file'.
EXIT.
ENDIF.
IF lt_intern[] IS INITIAL.
FORMAT COLOR COL_BACKGROUND INTENSIFIED.
WRITE:/ 'No Data Uploaded'.
EXIT.
ELSE.
SORT lt_intern BY row col.
LOOP AT lt_intern.
MOVE lt_intern-col TO ld_index.
ASSIGN COMPONENT ld_index OF STRUCTURE it_datatab TO <fs>.
MOVE lt_intern-value TO <fs>.
AT END OF row.
APPEND it_datatab.
CLEAR it_datatab.
ENDAT.
ENDLOOP.
ENDIF.
IF it_datatab[] IS NOT INITIAL.
DELETE FROM zbi_fictr_mast.
COMMIT WORK.
LOOP AT it_datatab.
wa_save-fictr = it_datatab-fictr.
wa_save-prctr = it_datatab-prctr.
wa_save-type = it_datatab-type.
INSERT INTO zbi_fictr_mast VALUES wa_save.
IF sy-subrc = 0.
COMMIT WORK.
MESSAGE 'Data upload complete' TYPE 'S'.
ENDIF.
CLEAR wa_save.
CLEAR it_datatab.
ENDLOOP.
ENDIF.
ENDFORM. " UPLOAD_EXCEL_FILE
i hope this will help .
Regards
Deepak -
How to pass the "path" dynamically to KM navigation iView ?
HI Experts.
This is my issue:
I have a WD Java iView, with a data table.
In the same page, I have a KM navigation iview too.
Conceptually, each row in this table, have some documents in a CM Repository asociated.
This repository has subfolders for each master data in the table.
(example: imagine a table with material master data, and a repository with a subfolder for each material,
and inside of it, several unstructure documents about this material.
Then, I need to call a KM Navigation iview when click a table row, passing parameters, in special the "path".
I am using this code in my action (triggered from webdynpro iview)
WDPortalNavigation.navigateAbsolute("ROLES://portal_content/com.stk.demos.folders.zz_demos/com.stk.demo.ch.TEST_CH/com.stk.demo.ch.Listar_Docs",
WDPortalNavigationMode.SHOW_EXTERNAL, (String)null, (String)null,
WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS, "test",
(String)null, (String)null );
Partially it works, the window open and show the navigation iview, but...
in the root directory (or directory indicated in iView harcoded properties);
But I need pass the path !
How can I call that iView, dinamically using a parameter, the path (property ID: path)
to the KM navigation iView, in order to open initially in a indicated path?)
I have read this link
http://help.sap.com/saphelp_nw04s/helpdata/en/c3/235a428a1e9041e10000000a1550b0/frameset.htm
but, I still can't understand how to use this parameters.
Thanks in Advance.
Leandro.Hi Leandro,
You can create your own proxy IView and then redirect it to KM Navigation IView.
This way you can dynamically change the path.
Check this to know about proxy IView:
KM Document Iview Source Code
/thread/190600 [original link is broken]
Regards,
Praveen Gudapati -
Dynamic file path problem....
Hello & thanks for your attention
I am trying to modify the action script(2) of a XML photo slideshow
I want to make it pull the photo array from a dynamic XML file
Yet nothing I try seems to be working - I was hoping someone could look at these snippets and tell me if I'm doing something incorrectly
Objective:
To make the swf file - pull its photo array - from a dynamic XML file path
Scenario:
http://www.reallivingtours.com/tours/viewTour.php?id=2092
When that URL is called by a browser
An XML file called 2092.xml is created in a /tmp/ directory
viewTour.php passes the ‘dynamic’ file path to the swf via the params
<param name="movie" value="slideshow.swf?file=tmp/<?php echo $tourID; ?>.xml">
<param name="flashvars" value="&file=tmp/<?php echo $tourID; ?>.xml">
The original AS2:
var xml:XML = new XML();
xml.ignoreWhite = true;
_root.xmlPath == undefined ? xml.load("settings.xml") : xml.load(_root.xmlPath);
The modified AS2 - I've done:
var filePath:String = new String();
filePath =_root.file;
var xml:XML = new XML();
xml.ignoreWhite = true;
_root.xmlPath == undefined ? xml.load(new URLRequest(filePath)) : xml.load(_root.xmlPath);
Can you see anything I'm doing incorrectly?
Thank you very much for your time and attention
BennThanks to webqa - I've gotten a little closer to resolving this
my debugging tells me that i have an undefined error
I'm thinking - xml.load(filePath)
is not recognizing the string as a file path to the XML
Does anyone have any suggestions? thank you
var filePath:String = new String();
filePath =_root.file;
var xml:XML = new XML();
xml.ignoreWhite = true;
_root.xmlPath == undefined ? xml.load(filePath) : xml.load(_root.xmlPath); -
Dynamically changing the report path
Is there any way to dynamically change the path where the reports are saved. Teststand 4.1.1
Message Edited by glennjammin on 04-21-2010 03:30 PM
Test Engineer
L-3 Communications
Solved!
Go to Solution.Yes you can run a VI in the ReportOptions Sequence, add it to the Setup of that sequence. If you dont use FileGlobals.Dated anywhere else then use a Local instead. Just remeber FileGlobals are only global to sequences that are contained in a SequenceFile. They are not global across SequenceFile unless you are using the Batch Process Model.
You will probably have to set a number of other parameters up to work with ReportOptions.Directory. The best way to handle this is to setup up you exact conditions statically (ie via the Config | Report Options... menu ). Place a breakpoint in the ReportOptions (use a label if you dont have any steps in the ReportOptions sequence at the moment) and run your Sequence. Remeber to use Test UUTs or Single Pass. You dont have to use your full test sequence just create a simple one step sequence.
When you reach the break point, then you can browse the Parameters.ReportOptions and see what properties are required to ensure your reports are setup correctly.
Hope this helps.
Regards
Ray Farmer
Regards
Ray Farmer -
Dynamically change path to OLE file
I want to dynamically change the path of an OLE object that I am inserting into a report (word document). I am going through all the steps in the help but it is not working. I am on Crystal XI. Has anybody successfully done this?
Hi,
I have the same problem with Crystal 2008.
I have insert OLE object Insert -- Ole Object I search my file and click Collegamento, but if I modify the file in report I don't have a file changed, and if I change Path in a Picture Path I don't have change.
I see always the same file than I have import.
Sorry for my Inglish.
Please Help me.
Serena
Maybe you are looking for
-
IPhone 4 battery draining more than usual? Maybe because of 6.1.3?
Hey, I have noticed that ever since I have updated to my iPhone 4 to iOS 6.1.3 the battery has drained more than usual. My battery drains about 1% per minute. Sometimes it drains even when I'm not using the phone? Is there any solution to fix this pr
-
How can I move mp3 files from my ext.drive to my iPad via MB Air 11 ?
How can I move mp3 files from my ext.drive to my iPad via MB Air 11 ? Thx
-
Create a file system repository
Hi all, when I create a file system repository in the following solution: System Administration → System Configuration→Knowledge Management→Content Management→Repository Managers → File System Repository There I input the name and the URL which is av
-
I've created a 300 x 250 pixel document (72 dpi) in Illustrator. It is for an email newsletter ad where they require a Jpg no larger than 20k. When I convert it to jpeg (via export option), the resulting file opens in Photoshop, and is 1252 x 1044 pi
-
Nothing much to add.