How to load a file at design time?
I have a custom component which has a property that takes a path to an xml file.
I have a file chooser property editor associated with the property which returns a relative path. The component correctly resolves this path at runtime using the application context etc.. but I'm at loss on how to do this at design time.
The image component in JSC does this correctly as the image is loaded at design time using the url. I'm not sure how this is done but I'm looking for exactly the same functionality.
The only way I figured to correctly resolve the physical path of the file at design time was through the DesignBean.
In order to resolve the path and pass the resolved path to the component property I need to intercept property changed event and change the property value. However doing this in PropertyChanged(..) method of DesignInfo bean for my component doesn't do it as this is called 'after' the property value is set and changing the property value at this point results in a circular loop.
Is there any way to accomplish this? Any help is appreciated.
Thanks.
Is this still unresolved? I'm sure you've read everything at "Building Custom Components"
http://developers.sun.com/prodtech/javatools/jscreator/reference/index.jsp#Building_Custom_Components
by now. I don't have the answer, but if it's still a problem, I'll work with you to figure it out.
Similar Messages
-
How can load properties file for one time and use in entire application
Hi folks,
I dont want to read properties file every time , and want to get property value in any servelet or jsp page.(means i want to read only property file only for once and want to get value in any where ) , how to do this.
Message was edited by:
RajeshwarReddyTmeans we have to read file every time Know but i dont
want to be happen that ??? No you don't . You read the file once. You store it in the hashmap. Then you hand that hashmap to whatever class needing the data.
getProperties() returns the hashmap, doesn't read the file.
Maybe I should have called the method getMap or something.
Message was edited by:
karma-9 -
*** Question How to load a file into BI-Integrated Planning and use WAD 7.0
Hi, I created an manual DTP upload to my planning infocube and it works fine. The transformation rules convert 0CALMONTH into the relevant Calendar and Fiscal characteristics. So all of my Time Characteristics are fine, both Calendar and Fiscal.
However, When using the "How to load a file into BI-Integrated Planning and use WAD 7.0" solution, only the Calendar Characteristics are populated and not the Fiscal. The upload application somehow knows to populate the 0CALMONTH2, 0CALQUART1, 0CALQUARTER, and 0CALYEAR.
How can I get the upload to populate my Fiscal Period Characteristics?
Would it be best to modify the "Upload Application, or can I write a planning function to update the fiscal characteristics, or some other way?
Thanks!My planning data is being uploaded via the SDN Planning File Upload Solution. What I did was end up modifiying the upload class ZCL_RSPLF_FILE_UPLOAD Method EXECUTE.
I added the following code if anyone is interested.
*{ INSERT BWDK902323 1
THIS SECTION OF CODE POPULATES THE FISCAL PERIOD CHARACTERISTICS
USING THE FISCAL YEAR VARIANT 'NK' AND THE CALENDAR MONTH/YEAR
FIELD-SYMBOLS <0FISCVARNT> TYPE /BI0/OIFISCVARNT. " Fiscal Year Variant
FIELD-SYMBOLS <0FISCYEAR> TYPE /BI0/OIFISCYEAR. " Fiscal Year
FIELD-SYMBOLS <0FISCPER> TYPE /BI0/OIFISCPER. " Fiscal Year/Period
FIELD-SYMBOLS <0FISCPER3> TYPE /BI0/OIFISCPER3. " Posting Period
FIELD-SYMBOLS <0CALMONTH> TYPE /BI0/OICALMONTH. " Calendar Month/Year
ASSIGN COMPONENT '0CALMONTH' OF STRUCTURE <L_S_DATA> TO <0CALMONTH>.
ASSIGN COMPONENT '0FISCPER' OF STRUCTURE <L_S_DATA> TO <0FISCPER>.
ASSIGN COMPONENT '0FISCVARNT' OF STRUCTURE <L_S_DATA> TO <0FISCVARNT>.
ASSIGN COMPONENT '0FISCPER3' OF STRUCTURE <L_S_DATA> TO <0FISCPER3>.
ASSIGN COMPONENT '0FISCYEAR' OF STRUCTURE <L_S_DATA> TO <0FISCYEAR>.
<0FISCVARNT> = 'NK'.
CALL FUNCTION 'FISCPER_FROM_CALMONTH_CALC'
EXPORTING
IV_CALMONTH = <0CALMONTH>
IV_PERIV = <0FISCVARNT>
IMPORTING
EV_FISCPER3 = <0FISCPER3>
EV_FISCPER = <0FISCPER>
EV_FISCYEAR = <0FISCYEAR>.
*} INSERT -
How to load flat file in existing Architecture.
Hi everyone!
There is an existing architecture that I have to upload data into. There is a cube on top, followed below by an ODS and its update rules to the cube, followed below by an Infosource and its corresponding update rule to the ODS above it, followed below by a datasource (it says PC FILES(PC_FILE)) and its accompanying transfer rules to the infosource....
There is nothing in the ODS... No data. The Datasource says emmulated 3.x Datasource... (What does this mean?)
What I want to do is upload data via a flat file... Good BI Masters, how do I do this? How do I create a "dummy file" for upload? What are the specific sequence of steps that I need to do to load this flat file data?
Thank thank you so much!
Philipsemulated DS:
http://help.sap.com/saphelp_nw04s/helpdata/en/8c/131e3b9f10b904e10000000a114084/frameset.htm
I'm not sure what you are asking - is it how to load a file all the way to cube in 7.0?
From the architecture desc you have given, you havent migrated ur dataflow to new 7.0 dataflow, as you still have the update rules and transfer rules. So though ur system is 7.0, ur backend is still on 3.x, so the way you load a file is the same when your system was 3.x(before upgrade)
Or - are you asking the steps to load the file to a cube - no matter which environment you are in (3.x or 7.0)? if so, let us know .. and do a search on the forum for steps to load flatfile -
Hello
I am doing my project in LabVIEW that is VIRTUAL TELEPHONE COMMUNICATION SYSTEM
AND APPLICATION OF LABVIEW IN ADVANCE COMMUNICATION TECHNIQUES.I have implemented every block till date but for the rest part of my project that is advance communication techniques i need vi for QPSK,TDM,FDM,ASK and I just wanted to know how to load .wav file in LabVIEW
Please assist me for this
Attachments:
Telephone communication process.docx 25 KBHi Dilpreet,
reading wav files is easy using the functions from the sounds palette...
For your other tasks you could use a seperate toolkit or do some programming on your own!
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
How to load flat file in BPS through Web-debugging
Hi,
We are working on flat file upload in BPS thru guide 'How to load flat file in BPS through Web'. Can some one guide on how to debug the function modules used while uploading the data.
We have set up the break point in the function modules and also in the BSP page. But when trying to debug while uploading, it is not going to the break point which was set.
Could you assist in setting up the break point.
Regards,
Sreenath
Message was edited by:
sreenath reddyHi,
I have put an external break-point.
I have hard coded it in the coding of the function module itself.
The code is perfectly working. But, when I want to check for the values of the variables in the F.M during runtime, the break-point is not triggering. Any ideas??
Regards, -
Hi All,
I am new to SAP BI. PLease tell me how to load excel files to BI.hi,
For BI 7.0 basic step to laod data from flat (excel files) files for this follow the beloww step-by step directions ....
Uploading of master data
Log on to your SAP
Transaction code RSA1u2014LEAD YOU TO MODELLING
1. Creation of Info Objects
u2022 In left panel select info object
u2022 Create info area
u2022 Create info object catalog ( characteristics & Key figures ) by right clicking the created info area
u2022 Create new characteristics and key figures under respective catalogs according to the project requirement
u2022 Create required info objects and Activate.
2. Creation of Data Source
u2022 In the left panel select data sources
u2022 Create application component(AC)
u2022 Right click AC and create datasource
u2022 Specify data source name, source system, and data type ( master data attributes, text, hierarchies)
u2022 In general tab give short, medium, and long description.
u2022 In extraction tab specify file path, header rows to be ignored, data format(csv) and data separator( , )
u2022 In proposal tab load example data and verify it.
u2022 In field tab you can you can give the technical name of info objects in the template and you not have to map during the transformation the server will automatically map accordingly. If you are not mapping in this field tab you have to manually map during the transformation in Info providers.
u2022 Activate data source and read preview data under preview tab.
u2022 Create info package by right clicking data source and in schedule tab click star to load data to PSA.( make sure to close the flat file during loading )
3. Creation of data targets
u2022 In left panel select info provider
u2022 Select created info area and right click to select Insert Characteristics as info provider
u2022 Select required info object ( Ex : Employee ID)
u2022 Under that info object select attributes
u2022 Right click on attributes and select create transformation.
u2022 In source of transformation , select object type( data source) and specify its name and source system Note: Source system will be a temporary folder or package into which data is getting stored
u2022 Activate created transformation
u2022 Create Data transfer process (DTP) by right clicking the master data attributes
u2022 In extraction tab specify extraction mode ( full)
u2022 In update tab specify error handling ( request green)
u2022 Activate DTP and in execute tab click execute button to load data in data targets.
4. Monitor
Right Click data targets and select manage and in contents tab select contents to view the loaded data. Alternatively monitor icon can be used.
BW 7.0
Uploading of Transaction data
Log on to your SAP
Transaction code RSA1u2014LEAD YOU TO MODELLING
5. Creation of Info Objects
u2022 In left panel select info object
u2022 Create info area
u2022 Create info object catalog ( characteristics & Key figures ) by right clicking the created info area
u2022 Create new characteristics and key figures under respective catalogs according to the project requirement
u2022 Create required info objects and Activate.
6. Creation of Data Source
u2022 In the left panel select data sources
u2022 Create application component(AC)
u2022 Right click AC and create datasource
u2022 Specify data source name, source system, and data type ( Transaction data )
u2022 In general tab give short, medium, and long description.
u2022 In extraction tab specify file path, header rows to be ignored, data format(csv) and data separator( , )
u2022 In proposal tab load example data and verify it.
u2022 In field tab you can you can give the technical name of info objects in the template and you not have to map during the transformation the server will automatically map accordingly. If you are not mapping in this field tab you have to manually map during the transformation in Info providers.
u2022 Activate data source and read preview data under preview tab.
u2022 Create info package by right clicking data source and in schedule tab click star to load data to PSA.( make sure to close the flat file during loading )
7. Creation of data targets
u2022 In left panel select info provider
u2022 Select created info area and right click to create ODS( Data store object ) or Cube.
u2022 Specify name fro the ODS or cube and click create
u2022 From the template window select the required characteristics and key figures and drag and drop it into the DATA FIELD and KEY FIELDS
u2022 Click Activate.
u2022 Right click on ODS or Cube and select create transformation.
u2022 In source of transformation , select object type( data source) and specify its name and source system Note: Source system will be a temporary folder or package into which data is getting stored
u2022 Activate created transformation
u2022 Create Data transfer process (DTP) by right clicking the master data attributes
u2022 In extraction tab specify extraction mode ( full)
u2022 In update tab specify error handling ( request green)
u2022 Activate DTP and in execute tab click execute button to load data in data targets.
8. Monitor
Right Click data targets and select manage and in contents tab select contents to view the loaded data. There are two tables in ODS new table and active table to load data from new table to active table you have to activate after selecting the loaded data . Alternatively monitor icon can be used
Regards,
ANI -
How to load jar file in oracle 9i???
Hi Friends,
Can you help me, how to load jar file oracle 9i? I have to tried to load in 10g using loadjava command but it's not working in oracle 9i because the loadjava batch file itself is not there in oralce 9i.
Is there any other way then pls let me know.
- Hiren ModiHi,
I have oracle version : Release 2 (9.2.0.1.0) for Windows. I have tried to execute the loadjava command from SQL prompt but its giving as below.
H:\>loadjava
The system cannot find the path specified.
Do you know why its giving error like this. I have checked in dir : C:\oracle\ora92\bin but loadjava executable file is not there in it.
- Hiren Modi -
How do I put files onto my Time Capusle if I am using a wondows based PC?
How do I put files onto my Time Capusle if I am using a wondows based PC?
http://support.apple.com/kb/HT1331
-
How to load flat file using IP
Hi Experts,
I know that we can use planning function exit in BW-BPS to load the data from flat file(and there is a how to document).
But in IP what is process to load the flat file.becoz when i see into my planning function,type exit is not available.
Any idea./people/marc.bernard/blog/2007/11/25/how-to-load-a-file-into-sap-netweaver-bi-integrated-planning-part-1
/people/marc.bernard/blog/2007/11/25/how-to-load-a-file-into-sap-netweaver-bi-integrated-planning-part-2
hope this helps. -
Uregnt - How to Load Flat File into BW-BPS using Web Browser
Hello,
We have followed the 'How to Load Flat File into BW-BPS using Web Browser' guide to build BSP web front-end to upload flat file. Everything works great but we have a requirement to populate the Planning Area Variables based on BSP drop down list with values. Does anyone know how to do this? We have the BSP coded with drop down list all we need to do now is populate variables. We can populate the variables through the planning level (hardcoded) but we need to populate them through the web interface.
Thanks,
GaryHello Gary,
We have acheived the desired result by not too a clean method but it works for us.
What we have done is, we have the link to load file in a page where the variables can be input. The user would then have the option to choose the link to load a file for the layout in that page.
By entering the variable values in the page, we are able to read the variables for the file input directly in the load program.
Maybe this approach might help.
Sunil -
How to load text file data to Oracle Database table?
By using Oracle Forms, how to load text file data to Oracle Database table?
Metalink note 33247.1 explains how to use text_io as suggested by Robin to read the file into a Multi-Row block. However, that article was written for forms 4.5 and uses CREATE_RECORD in a loop. There was another article, 91513.1 describing the more elegant method of 'querying' the file into the block by transactional triggers. Unfortunately this more recent article has disappeared without trace and Oracle deny its existence. I know it existed as I have a printed copy in front of me, and very useful it is too.
-
plz tell me .. how to load and compare two text files using file popup's . example file i have attached..
Attachments:
testW_FF.txt 2 KBI don't understand whether your question is on how to load text files or how to show them on a panel or how to compare them... or all aspects together!
The first operation (loading the file) can be accomplished with functions included in the Formatting and I/O Library like OpenFile, ReadFile and so on; with a file like yours even FileToArray could be an option.
How to show the data on screen is heavily dependent on what you intend to do with them: data can be shown in textboxes, listboxes, tables or graphs so... what do you want to do?
The same applies with comparison: without additional details is difficult to give you the proper hint.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos? -
How do you access files on your time capsule from your mac?
how do you access files on your time capsule from your mac?
i had an old macbook pro that i had all the pictures on and i backed it up to my time capsule through time machine. i got a new macbook pro retina display recently and im wanting to see if i can get some of the pictures off of my time capsule now but i dont want all of them.
-
How to load flat file into BW BPS
hi,
how to load flat file into BW BPS ?Have a read through this;
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/how%20to%20load%20a%20flat%20file%20into%20bw-bps%20using%20a%20web%20browser.pdf
Maybe you are looking for
-
How do i permanently delete the pictures in iphoto on my ipad ?
i am not able to permanently delete the picturres on y ipad, i sync my computers itunes that had all the pictures in the library already, so it will take up all my memory, i have 9000 photos, and when i sync it i c'ant delete neither from the comp, n
-
HR PNPCE logical Database and rp-sel-ein-aus-init. not working
Hi Forums, I want to set the employment status to (<> 0) and I have put this code isn't this macro supposed to achieve this? INITIALIZATION. rp-sel-ein-aus-init.
-
Steps to Copy a Database in SAP
Hi, What are the steps to copy a database in SAP? Thanks, Sreekar.
-
Anyone able to give simple 'how to install' instructions for linux ?
I have a G5 1.8 with 3GB RAM; 80/160 internal SATA drives (the 160gb hd has 2 partitions and one with nothing on it) as well as a Lacie external 320 GB firewire drive. The empty partition on the 160gb drive has been created for Linux (if it ever gets
-
My windows are stuck! They won't move...
I can't get my windows to move around the screen. I've tried everything. I double click, restart (that only works for pc's) and nothing. I can't put two docs side by side or anything! I'm SO frustrated...can someone please help!