External js file to be included into web template (2004s)
Hi everyone,
I was trying to include an external javascript file into a web application. The code was to be included in a script item (which I'd like to keep that way, for maintainability's sake) and then to call a function from the included file (which I had included with a script tag manually added to the page's XHTML code).
The problem is that the code in the script item gets put infront of every other XHTML item, so the functions will not yet be available at the time of execution. Is there a different way to include javascript without having to manually post the script item code into the XHTML body?
Thanks and regards,
Tilman
Hi,
this is exactly my problem. I keep my code in a script item, but would like to store parts of it in a separate file (so I don't have to worry about duplicating), so what's the way to go in order to have the external file included before my script item code gets called (without having to wait for window.onLoad to kick in)?
Regards,
Tilman
Similar Messages
-
External Actionscript File not being Included
Odd problem:
Myself and a colleague are working on a project. We're both
using Flash 8. We've both downloaded the latest Flash player.
The project involves a series of perfume bottles, all lined
up in a row. When you press a key on the keyboard, the associate
bottle enlarges and some info on it appears. At the same time the
other bottles fade out (an alpha change).
The alpha change is driven using an external actionscript
file, which is called (#include) at the top of the first line of
script in the ‘main’ movie.
The problem is, when I publish the swf file, the alpha change
doesn’t work. When my colleague publishes it, it works. Why
is this? It’s almost as if in publishing from my computer,
the external .AS file is being ignored.
I’ve tried calling the .AS file using a full path to
the file. No change.
I’ve tried uninstalling and reinstalling the Flash
player, and older version of the player. No change.
Here’s something else that’s odd: I’ve
tried copying all the script from the external .AS file and
embedding it into the main movie. No change. Is it that the
publishing from my computer is corrupted? Other things I’ve
published recently have worked fine?
Any ideas?Yes, I've opened the AS file, and it seems ok. I've also had
it sent to me a couple of times in case it got corrupted in
transit.
I've also tried copying the script from the AS file and
embedding it into the 'main' movie at the #include statement (and
removing the #include statement) so it doesn't have to look for the
AS file, but this hasn't helped.
I'll try making a different AS file with the trace statement
you suggested, but I have other movies that call external AS
statements, and they work.
We're both running XP Pro w/ SP2. -
How to get the standard Menu of Query Designer into Web Template
Hi Experts,
is there a way on how to put the standard menu within Bex Query Designer (after executing a Query with the Query Designer you get into ad-hoc reporting with a menu including several functions like print, show as..., properties, etc) into an individual Bex Web Template?
Copy & Paste source code will not work I guess because of several javascript functions I don't have access to.
Thanks & Best regards
TobiasBEx queries are displayed on the web using standard web template 0ANALYSIS_PATTERN or some customized version base don your implementation.
You can either include the 0ANALYSIS_Pattern web template in your custom template or use Save as to create a new template with 0ANALYSIS_Pattern AS THE STARTING POINT. -
How to include BW Web Templates in a BSP ?
Hi guys,
I am new to BSP stuff. Can anybody throw some light on how to include a BW Web Template in a BSP application? Any documentation available in this direction?
Thanks in advance.
Cheers,
Ramana.Hi,
Check the forums,
Create BSP from WAD Web Template in BW
BW WEB Template inside a BSP
Skipping login screen when clicking a BW Web Template link in a BSP
Regards,
Azaz Ali -
Opening external Excel file by VBA in Excel Inplace template
Hi all experts,
I am working on a sq01 query which used an Excel inplace template. Inside the template, I have written the code to open another Excel file by absolute path, and it works when I run it in my computer. However, when I uploaded the template to the SAP and run the code, the external Excel file did not open. May I ask how I can open an external Excel file when the template is inside SAP server? Thanks a lot for your help.
Best regards,
LeonDo you have a language pack installed? I assume your computer language is set to French?
Maurice -
Importing a text file with variable values into web reporting
Hello,
I'm looking for a possibility to import values from a text file into a variable selection in Web reporting.
With BEx reporting in Excel this is possible, by clicking on the multiple selection button in the variable popup screen, and subsequently selecting the "Import from Text file" button.
However, this function seems not to be available for web-reporting...
It would be great if someone could help me out with this!
Thanks & regards,
ArvidHi,
we could resolve this issue, so i thought it may also be helpful for others:
In our example we used a file with numbers for materials. This file is stored somewhere in a directory, to which SAP BI must have authorization to read.
The file looks something like this:
4711
4712
4713
4714
The file is named "import.txt" and lays in directory "/usr/sap/EC6/files/bi/"
*& Include ZXRSRU01
* global variables
Data: intern_range LIKE LINE OF i_t_var_range,
l_s_range TYPE rsr_s_rangesid,
line(100) TYPE c,
p_file(128) TYPE c,
length_rangelow type i,
tmp_rangelow like l_s_range-low.
* internal tables for selection-transfer from transaction
* Data: BEGIN OF it_file occurs 0,
* it_p_file(128) TYPE c,
* END of it_file.
IF i_step = 1.
** variables can be changed or set before pop-up appears
CASE i_vnam.
* take material from external file to selection-list
WHEN 'ZSD_UPMA'.
** call of transaction, with which the path can be set
*CALL TRANSACTION 'ZBW_VARIABLE' using it_file
*MODE 'A' " call should be visible, so that variable can be set
*UPDATE 'S'. " first transaction, then processing
** Der Pfad, der in dem Selektionsbild eingegeben wird, wird an die Variable übergeben
** Der Set-Parameter ist in Report ZSD_SELECT_VARIABLE
* get parameter id 'VAR' field p_file.
p_file = '/usr/sap/EC6/files/bi/import.txt'.
* further handling of variable in BI
OPEN DATASET p_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc = 0.
READ DATASET p_file INTO line.
WHILE sy-subrc = 0.
IF line(2) <> '//'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
l_s_range-low = line.
* fill with leading Zeros
* in variable tmp_rangelow the value from l_s_range-low is taken
tmp_rangelow = l_s_range-low.
* read the length
length_rangelow = strlen( tmp_rangelow ).
* in our case: material has 18 characters
while length_rangelow lt 18.
CONCATENATE '0' tmp_rangelow INTO tmp_rangelow.
length_rangelow = length_rangelow + 1.
endwhile.
* initialize l_s_range-low
clear l_s_range-low.
* set with filled values
l_s_range-low = tmp_rangelow.
* transfer to structure
APPEND l_s_range TO e_t_range.
ENDIF.
READ DATASET p_file INTO line.
ENDWHILE.
ENDIF.
CLOSE DATASET p_file.
ENDCASE.
ELSEIF i_step = 2.
** in step 2 all variable values from pop-up input can be processed or
** User Exit variables can be derived
* UserExit Ende.
ENDIF.
Hope i could help!
Best regards,
Tobias -
Control external swf file that is loaded into main movie
I've loaded an external movie into Scene2 of the main movie,
I want a button in the main movie, in scene two, which shows
up right now under the external loaded movie, to be able to
onRelease gotoAndStop at the first frame of the external movie
which is loaded into that scene. Do I just write that as:
AssociateSelected_btn.onRelease = function() {
gotoAndStop("RGSassociate.swf","frame1")
? I thought I tried this, but since the ext.movie is loaded
automatically on entering the scene it is not put into a level
(which would be easier to navigate)....
Any help/thoughts would be much appreciated, thanks!Just a thought- can i refer to the external movie through the
loading component instance name?
Still wondering if I can control the time line inside the
external movie from the main movie... -
Flat File upload in IP through Web template
Hi,
I am looking for an option to upload a flat file to an input ready cube through web application designer, can any one suggest / think of any way?
Solution currently implemented:
1. Planning Function to upload the flatfile
2. Planning sequence containing the above planning function
3. Web dynpro
something like: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90cef248-29e0-2910-11bb-df8dece7e22c?QuickLink=index&overridelayout=true&26048976667552
The above works fine, a link to upload is put in the portal (to be accessed through portal id / pwd) but since its Web dynpro it asks the user and pwd for the BI system.
Requirement is:
to avoid the 2nd login to the BI system
Thanks in Advance
Shweta SalpeHi,
check you portal setting.
=> do you use single-sign-on?
=> you need full domain, like http://comany.local.org:53000
Sven -
Web template SCROLLBARS into Left
Hi Experts,
We have a requirement into which we need scrollbar into web template into left hand side instead of usual right hand side.
Using USE_SCROLLBARS value="ENABLED" option helps to enable scrollbar but it appears into right hand side.
Do anybody have some way/code to bring it towards left hand side. Please suggest.
Thnaks
SangitaHi Sangitha...
How to Transport Web Template
Transport Sequence
Info Objects,
DSO
INFO CUBE
TRANSFORMATIONS
MP
INFOSETS
PROCESS CHAINS
QUERIES
Objects need to be transported with respect to their
dependencies
Infoproviders will bring in all relevant Infoobjects
Importing of Global variables is dependant on their reference
Infoobjects being already active
Queries, workbooks and roles are dependant on Infoproviders
and InfoObjects being active
Use the Transport Connection Tool to analyze your objects
Transport all customer-defined packages (dev classes) before
transporting objects
Transport InfoProvider(s) using the "In Data Flow Before" or
"Only Necessary Objects" grouping option
Transport all Global Variables with primary package assignment
i.e. ZBW
Transport BEx objects with appropriate individual package
assignment
Transport roles and workbooks together
Please go through the below links ...I think this will helps you sangitha....!
/people/balint.almasi/blog/2006/12/11/how-to-create-a-transport-request-save-for-system-copy
take a look thread
Transports -Procedure
transport tips
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3010ba90-0201-0010-2896-e58547c6757e
Regards
Sudheer -
Regarding upgrade of web report\web templates functionalites BW 3.5-BI 7.0
hi all,
I m working on a Upgrade study from BW 3.5 to BI 7.0 for Web Templates,web items and java scripts.
Below is the scenario of the client system:
New web templates are created from the 6 master web templates available for publishing to a custom Portal (created using BSP and hosted on the WAS). TOOLBAR and FOOTER are custom web templates used in all Master Templates and contain various JavaScript functions and footer code respectively.
TOOLBAR provides the Toolbar, header and buttons functionalities in the Master Templates via the contained Javascript functions. FOOTER displays the date and time of issue as well the logged in user.
FOOTER1 and FOOTER2 are web items derived from FOOTER web template. They have different set of web item properties and are used to create web templates used through the custom Portal.
It is observed from BW Tables that out of 100 unique Web Templates available in the system, 90 are using TOOLBAR template and 95 are using FOOTER template.
No external Javascript .js files are used in the Web templates. Most of the Javascript functionality is contained in TOOLBAR and no other custom javascript in master templates. However, there are some derived web templates where custom javascript is contained.
Following is the process to create custom Web Templates in development server that are eventually transported to QA and Production:
1) The appropriate master template is identified and saved with new name in developer role.
2) Dataprovider is added to corresponding web items.
3) From the library, properties are transferred from master template to the custom template.
4) Report title is added in HTML tab.
5) No changes are needed in the Web Templates Properties except change of value in Show Jump Target in field to the portal Frame ConPortal or _self in case RRI is to be used.
6) Some properties like Title, Width in Pixel, Affected Data Provider, etc. needs to be adjusted. Changes can be done to web items seen in Overview tab except the FOOTER and TOOLBAR web items. These web items are saved as reusable components in Library.
7) After all the changes the web template created is transported from development server.
To summarize, all master data for creation of web templates like reusable master templates, web items in library, web templates containing Javascript code are stored in dev. server. Custom web templates created from these are transported.
I want to validate the sequence of migration as below:
Following sequence has to be followed for the Web Templates and Queries Migration in development BI 7.0 Server:
1) Migrate the Individual BEx Queries first and perform functional testing.
2) Migrate the TOOLBAR template manually (create as new in BI 7.0 Toolset) and FOOTER template automatically (using Migration Tool).
3) Manually migrate the JavaScript code in TOOLBAR. Please refer to section ..for more details.
4) Migrate the library of reusable web items, if any.
(What to do if web item is custom or is not supported in BI 7.0)
5) Migrate the Master Web Templates manually (create as new in BI 7.0 Toolset) and automatically (wherever possible) and perform functional testing.
6) Migrate the custom web templates automatically (wherever possible) and manually, if automatic migration is not possible. Perform functional testing and data provider binding.
7) Perform jump target binding wherever applicable.
8) Transport custom templates, TOOLBAR and FOOTER to QA and Production subsequently.
Also i have the following questions:
1. How to migrate functionalities accessed thru web templates like jump queries, general navigation blocks with filter, table interface, and are data providers automatically linked to web items or have to be done manually post migration.
2. Do we need to migrate the library of reusable web items also.
3. After migrating the master web templates and javascript containing templates to BI 7.0, can we migrate automatically the custom webtemplates derived from master templates and containing the custom javascript that is now avaialbe in BI 7.0, will they pick up the custom code automatically.
thanks in advance
Regards
praveenNo resolution found
-
Hierarchy selection using a dropdown in IP web template
Greetings,
Is it possible to have a dropdown on my IP template where I could see all the 0COSTCENTER stored hierarchies ?
What I'm really looking for is replicating the functionality of the dropwdown found in:
In the query - > Click on the Char - In Properties Window - Right Hand Side - Hierarchy Tab (which displays the hierarchies for the infoobject).
But i cannot find the template to view how SAP has done it there.
Br,
HenriHi Martin,
One easy way of solving is to include the WAD command TRANSFER_STATE at the end of all the Planning function / Sequence commands attached to the Button.
This will refresh the WAD layout without having to reenter the variable values if any.
The other Option is to reset all the variables associated with the execution of Planning function after every execution.
This can be included under Web template Properties so this happens after every refresh of the layout.
Hope this helps.
Regards.
Shafi. -
Is there a way to import Raw files into LR catalog ..including..any edits performed in an external raw file editor such as Capture One?
I can import the Raw file successfully but cannot see any edits that were applied in Capture One. Im assuming no but just checking.Your assumption is correct, Capture One, Lightroom and other third party raw processors have their own proprietary processes and profiles for rendering the raw data.
They do not make permanent changes to the raw data and store the changes to an .xmp file or to a catalog file like Lightroom. -
is it possible to include external .js file into .ear file using NetBean 5.5.1? if not, then where should I placed the external .js file and how to write the src="xxx" element? (that is , how to write the path of "xxx"?)
I am using JBOSS 4.2.2 GA as server
thx!!Even this is also not possible because, the code in that package is developed by DWR and i am just adding it to my lib folder and importing the respective classes. In the same manner i need to include the *.js* file in the JSP.It took me about 3 minutes reading through the [DWR Getting Started|http://getahead.org/dwr/getstarted] page to learn that you don't have to do any of that. Perhaps you should read that page?
-
Import external text file into table in database using web form
I whant to import data from text delimited file located in os
into oracle table using web form.
I am using ORACLE DATABASE 8i, APPLICATION SERVER 9i
and ORACLE FORMS DEVELOPER AND FORMS SERVER 6i (Patch 2)
Is there anybody who know how can i do this?
Thank you!WebUtil uploads the files as Binary - so yes you could have some issues if you have a Unix host - however, that would only mean that there is an extra character to trim off of the end of the line read by Text_io.
-
Mixing external wave file into video
I've recorded a video including sound of a mandolin being played. At the same time I recorded the sound with my external recorder which resulted in a wave file of better quality that the sound from the camera. I would like to import the video and the externally recorded wave file into a project, line up the external wave file with the sound recorded by the video camera and then delete the sound recorded with the video camera so I end up with a video that has the sound from the external recording system. Any recommendations on a good approach to accomplishing this task?
There's information here about how to use the new merged clips features in Premiere Pro CS5.5 to merge the audio from an external source with the video from the camera.
Maybe you are looking for
-
Export of the form created in Forms Builder
How to transfer XML form from one portal to another?
-
Design Steps for logical modeling of Dimensional DataMart
Hi begin to understand the process off building a Data warehouse off of an OLTP database. So thought I would put down the steps involved (as I understand them) for clarity. Dose this look right? is there anything im missing? Step 1 - Determine the di
-
CR2 / RAW images no longer displayed
For some reason, I can no longer view CR2 / RAW images (from a Canon EOS 350D). I've never had any issues with them before. Any ideas what can have caused this?
-
IPad Mini freezes when adding a new mail account
Hi, I have just bought the new iPad Mini, and when I try to set up my pop mail account, it comes back with an error saying that the SMTP server doesn't work with SSL activated, and asks if I want to try with this off. If I select yes, it attempts to
-
Embedded PDF on web page fails to display
We have a number of PDFs that are shown embedded in IE (versions vary). This worked fine with Adobe Reader 9.5 but with 10, PDF fails to display. Page takes a while to report error. Error: There is a problem with Adobe Acrobat/Reader. If it is ru