HTML View using an iView dynamically
Hello Visual Composer experts,
I want to use a SAP Enterprise Portal iView in a VC Model.
For that I use VC HTML View.
In the URL I put SAP EP IView reference, for instance :
http://<xxx>:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fevery_user!2fgeneral!2fcom.sap.portal.afpFavorites
<xxx> stands for development portal.
When I transport my VC model to quality portal I need to manually replace <xxx> by <yyy>.
How can I avoid this ? How can I dynamically address the portal ?
I found something about using "portal:" that will replace http://<server>:<port>/irj/servlet/prt/portal/prtroot/ but did not succeed to make it works.
In the VC HTML view I tried to used "pcd" instead of "http" but again did not make it.
Can someone give me a clue ?
Rgds
Gilles
Hello Udi,
Thansk for your answer. Let me try to clarify my need.
I would like, for instance, to execute "My home" page in SAP EP using a VC HTML view.
I want this to work in all my SAP EP systems (Development, Quality and Production).
My current solution is :
a VC model with an HTML view, a variable where URL is hardcoded @URL and passed to this HTML view (similar as what you describe)
to import the VC model in each EP environment
change the URL to address the EP
deploy the model
I'm looking for a way to achieve this without modifying my VC model (@URL ) in each environnement.
So I'm looking for a way to address dynamically the system.
As explained I did try, without succes, with :
1) Using "portal:" in the variable @URL
2) using pcd parameter in the VC HTML view (I did not understand how to use it)
I was expecting a dynamic way without calling a service.
Kind Regards
Gilles
Similar Messages
-
Hi all,
I am currentyl trying to display an image, which can be accessed by a http-url refering to an external server.
The problem is, that that the displayed image is linked with the content...that means, that the image url has to be dynamic.
Does anybody know how to solve this problem. I am currently mapping an url to the url-input of the html-view, but by starting the application the following error occurs:
com.sap.tc.wd4vc.intapi.info.exception.WD4VCRuntimeException: No parser configuration entry for the tag HtmlView
Does anybody know how to solve this problem?
Thank you in advance.
Kind regards, PatrickHi Patrick,
Are you still looking for the answer?
Did you try the expression editor of the image control, where based on expression (ie., your content), image will be displayed.
Are you storing the data (from where you pass the content to next UI component or next screen) in a data store; and taking the data store value in the expression editor of the image component?
Let me know if it helps
Regards,
Vani -
Problems in using html Viewer control
Hi,
I am using a html viewer control .Depending on the organization, I have to display different pages of the same web application in the html viewer control .Now my problem is
if I display one page in my html viewer control ,its showing the same page again in the html viewer control ,even if i give different url in the show_url method of the html viewer control.
Any body knows how to solve this problem ?Have you tried testing this with the SAPHTML_DEMO1 demo program and just keying in the URLs you want to display?... this demo uses the html_control->show_url method and if you run in debug you'll see it subsequently does a "call method cl_gui_cfw=>dispatch." to trigger the display of the new URL.
Jonathan -
How to View Smart Forms in Portal Using Url Iview?
I am trying to view a smart form in the portal using url iview but not able to define proper url address. can any one help me out with relevant example?
Hi,
Go through Re: Web Dynpro and Smart Forms.
Regards,
Satyajit. -
Parameter Error using HTML Viewer
Post Author: jaclsoft
CA Forum: General
CR11.
Report is executed from within my app. 1 customer is having an issue (other customers have no problem). The report has a parameter (string type). When the report is executed and the Parameter (using the HTML Viewer) tries to popup, it renders partway then pops up an error:
Internet Explorer Script Error.
An error has occurred in the script on this page
Line 31
Char 2
Error Object expected
Code 0
URL file://temp folder\prompting1.html
Do you want to continue running scripts on this page
Yes/No
Any ideas? This hapens on 2 different machines for the customer. 1 machine just has the CR Runtime, the other has CR Professional installed.Post Author: cbrown
CA Forum: General
Had the same issue with a machine that had Business Objects Enterprise XI R2 installed AND Crystal Report XI R2 installed (version 11.5.0.313). When creating a new report (or opening an existing report) in Crystal Reports that contained a parameter with a date field I get prompted with the parameter prompt screen, however there is "Business Objects" written below the prompt with a red circle with an X through it (within Crystal Reports Developer); when I try to click on the calendar icon to select the date I get a IE script error saying
"Unable to file object"
. The same issue occurs when viewing reports with date prompts in BusinessObjects Enterprise.
Resolution:
Traced the error to two different files that were corrupted / old versions:
C:\Program Files\Business Objects\common\3.5\crystalreportviewers115\prompting\css\promptengine_default.css (3Kb modified on 11/3/2004) with one from a working machine (5Kb modified on 01/23/2007)
C:\Program Files\Business Objects\common\3.5\crystalreportviewers115\prompting\js\promptengine_calendar.js(23Kb modified on 7/8/2005) with one from a working machine (27Kb modified on 01/29/2007)
Replacing those files allowed the html prompt page (prompting1.html) that is generated both by Enterprise and Crystal Reports to reference the correct js and css files above that contained the appropriate functions / formatting info to correctly display the prompt page.
Hope this helps.
Chad
www.crystallinetech.com -
BIP report using HTML view in dashboard printing without scrollbars, parts
Have created BI Publisher report in the MS Word using Landscape page settings.The report is printing without scrollbars in the OBIEE Dashboard using HTML view.
Could not see the whole page output...have tried using resolution property settings in the dashboard configuration...havent found any solution.
Have tried to use MHTML but the logos are missing.
Any quick solution for the above will be very helpful.
Thanks
BaddamHi Venkat,
Thanks for your quick respond.
1.) Auto Run is enabled. And the report runs automatically as well. But then it ignores the dashboard prompt (as a regular report would do as well). But when I choose some values in the prompt and then press go. Then it says I have to press on view as well.
2.) no that is not the case. My report is so big that it always need a scroll bar ;) also adjusting the size settings in the dashboard doesn't help. The only occurs when viewing in HTML, when previewing in excel or RTF it all just work fine.
3.) true, but ow well this is the least importetant one ;) so if this doesn't work, than it doesn't work ;)
4.) Ok, I will have a look on that.
5.) I did enabled HTML and EXCEL outputs in my BIP report. But when the first point is working, then I don't want to see the control bar anymore and I want to have the output on the dashboard in HTML and then I want to build a button, or a link or something that exports the request to excel. Is that possible? -
HTML View - Click to activate and use this control
Hi, I have an HTML View in my VC App. When the HTML View is presented it has to be clicked on. There is also a tool tip that states "Click to activate and use this control". I didn't see any mention of this in the forums.
Is there any way to get rid of this?
Thanks,
Ken MurrayHi Kenneth,
maybe you had this issue not before and then you have patched your windows system. This issue comes with a microsoft patch last year I think it was october or november.
Here on SDN is a how-to available which explains how you can remove this patch, but I think it's not recommend to remove security patches.
Best Regards,
Marcel -
Using javascript to dynamically generate the html for a Spry table
I have some javascript which generates html code for a Spry
table which displays the content of a Spry data set. The problem is
that after I generate the html, Spry never fills in the values for
the table.
Here's what I'm doing:
Using a data set observer, check for onPostLoad and generate
the html code
Using innerHTML, stuff the code into the appropriate
<div>
Use regionName.updateContent() to update the region I just
created with the html code I generated
Interestingly, if I take the generated source for my page and
remove the data set observer, the Spry table displays correctly
with all the expected values. This suggests to me that my generated
html code is correct, but that there is some sort of timing issue
(i.e. Spry doesn't know about the new code I generated).
Any suggestions?jalperin wrote:
> Here's what I'm doing:
>
Using a data set observer, check for
onPostLoad and generate the html
> code
>
Using innerHTML, stuff the code into
the appropriate <div>
>
Use regionName.updateContent() to
update the region I just created
> with the html code I generated
>
> Interestingly, if I take the generated source for my
page and remove the data
> set observer, the Spry table displays correctly with all
the expected values.
> This suggests to me that my generated html code is
correct, but that there is
> some sort of timing issue (i.e. Spry doesn't know about
the new code I
> generated).
>
> Any suggestions?
I'd guess that it is a timing issue as well. I haven't looked
much at the dataset capability in Spry, but it may be that the
dataset "finds" all of the regions and code that it applies to
before the onPostLoad event is triggered. If that is the case, then
your generated code doesn't exist yet,and so the dataset thinks
that there is nothing for it to apply to.
Will the HTML that you generate change based upon the dataset
that is actually returned? I guess I'm looking for the reason why
the HTML is being generated when it could be in the page itself and
avoid this issue completely.
Danilo Celic
|
http://blog.extensioneering.com/
| WebAssist Extensioneer
| Adobe Community Expert -
Character format changed when using html view
Hi all,
I have a form for book entering. There are fields for book name, an url adress of book and a html view to display this adress. Before adding html view to my form, there is no problem of entering fields. After adding html view, I can't enter some characters to this fields. Example I want to enter "yazılım" but while writing this word, it appears like "yaz 1l 1m" . If I delete html view, I can write correctly, reason is html view, but what is the solution? how can I correct it? can you please give an urgent response??you can see the runtime in this link : (look at the characters in field labeled as Yazar
http://img228.imageshack.us/my.php?image=runtimehu1.jpg
you can see the model in this link :
http://img523.imageshack.us/my.php?image=modelsz5.jpg
System info :
com.sap.visualcomposer.vcbase.default null (7.0007.20060316174020.0000)
vc_client null (7.0007.20060316174020.0000)
VisualComposerServerEar04 null (7.0007.20060316173253.0000)
com.sap.visualcomposer.mmcompiler null (7.0007.20060316173253.0000)
com.sap.visualcomposer.vcflex.default null (7.0007.20060316174020.0000)
com.sap.visualcomposer.portaladdons null (7.0007.20060316173253.0000)
com.sap.visualcomposer.portaladdons.BIKit null (7.0007.20060316173253.0000)
com.sap.visualcomposer.portaladdons.UWLKit null (7.0007.20060316173253.0000)
com.sap.visualcomposer.portalcontent null (7.0007.20060316173253.0000)
com.sap.visualcomposer.portalpermissions null (7.0007.20060316173253.0000)
com.sap.visualcomposer.vcfrwork.default null (7.0007.20060316174020.0000)
com.sap.visualcomposer.vckitbi.default null (7.0007.20060316174020.0000)
com.sap.visualcomposer.vckitgp.default null (7.0007.20060316174020.0000)
com.sap.visualcomposer.vckitxx.default null (7.0007.20060316174020.0000)
com.sap.visualcomposer.wdext.default null (883791) -
How to display the image which in KM folder using url iview
Hi Friends
How to display the image, which is under KM folder structur using the url iview.
i trying using url iview url as \document\testfolder\abc.jpg as url for the iview.
but its now working .. so please help me how to slove this problem
If is not the correct way then please suggest me best way to achive this.
Thanks
MukeshHi Mukesh,
I think this may work,
1, Create a HTML Layout.
You can put your image wherever u want with HTML Codes.
Check this, [Article|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3915a890-0201-0010-4981-ad7b18146f81] & [Help|http://help.sap.com/saphelp_nw04/helpdata/en/cc/00c93e9b2c3d67e10000000a114084/frameset.htm]
With this, u can use the standard KM commands also.
2, U need to use KM Navigation iView for this rather than KM Doc iView.
3, In the Nav iView, u can use &rndLayoutSet=nameOfUrHTMLLayout to force the view with this new layout.
Regards
BP -
Hello everybody,
I'm developing an application and i need to display a html page inside a view.
I'm developing in SAP NetWeaver Developer Studio, Version: 7.1.0 and UI element like iFrame, or IView does not exists.
Do you have a suggestion, idea or advice?
Thank you,
ConstantinHi Constantin,
For writing Html in iFrame u can use com.lowagie.text package and u can use these inbuild classes.
com.lowagie.text.BadElementException;
com.lowagie.text.Cell;
com.lowagie.text.Chunk;
com.lowagie.text.Document;
com.lowagie.text.DocumentException;
com.lowagie.text.Element;
com.lowagie.text.Image;
com.lowagie.text.Paragraph;
com.lowagie.text.Table;
com.lowagie.text.html.HtmlWriter;
com.lowagie.text.rtf.style.RtfFont;
first u have to create a method
like this
private void <method name>() {
try {
String filename = this.<name/id> + ".html";
IPrivateView.IContextElement elem =
wdContext.createContextElement();
elem.setRTFOutPut(getBytesFromFile(new File(filename)));
final IWDCachedWebResource resource =
WDWebResource.getWebResource(
elem.getRTFOutPut(),
WDWebResourceType.HTML);
//resource.setResourceName("HTML_inline.html"); original
resource.setResourceName("HTML_inline"this.<name/id>".html");
resource.setAttachement(false);
resource.setReadOnce(false);
wdContext.currentContextElement().setUrl(resource.getAbsoluteURL());
} catch (WDURLException e) {
logger.errorT(e.getMessage());
wdThis.wdGetPortfolioMessagesInterface().reportError(
"<custom message",
<Parameters>,
true);
//wdComponentAPI.getMessageManager().reportException(new WDNonFatalException(e), false);
//e.printStackTrace();
than for writing in iframe create a method like this.
private void generateIframe() {
String newLine = "";
Document doc = new Document();
String filename = this.<name/id> + ".html";
HtmlWriter html = null;
try {
RtfFont rtffontN = new RtfFont(FONT, FONT_SIZE, RtfFont.NORMAL);
RtfFont rtffont = new RtfFont(FONT, FONT_SIZE, RtfFont.BOLD);
RtfFont headfont = new RtfFont(FONT, 12, RtfFont.BOLD);
DataOutputStream ds =
new DataOutputStream(new ByteArrayOutputStream());
ds = new DataOutputStream(new FileOutputStream(filename));
html = HtmlWriter.getInstance(doc, ds);
//html = HtmlWriter.getInstance(doc,new FileOutputStream(filename));
doc.open();
//now here u can use the classes like Cell ,table,Document for writing the html code in the iFRAME .for more information on this u can refer this site all the api documentation is given here.
http://itext.ugent.be/library/api/
after writing the html code using com.lowagie.text package.
at the end call the method which u declared earlier to this method.and create a context element URL map it to the source of Iframe in properties view.
Please Reward points for an helpfull answer.
Regards,
Siddharth jain. -
Hi all
I am trying to understand how this object works. I believe that this is a way to write my own html page and see it in a dynpro.
This is the code I wrote:
" declaration of object
DATA html_viewer TYPE REF TO cl_gui_html_viewer.
" container
DATA g_custom_container TYPE REF TO cl_gui_custom_container.
" url of doc created
DATA l_doc_url(255) TYPE c.
" dynamic HTML creation structs
DATA data_table TYPE STANDARD TABLE OF char255.
DATA wa_table LIKE LINE OF data_table.
" test
wa_table = '<h1>This is a test</h1>'.
INSERT wa_table INTO TABLE data_table.
" create container
CREATE OBJECT g_custom_container
EXPORTING
container_name = 'CONTAINER'.
" create html viewer
CREATE OBJECT html_viewer
EXPORTING
parent = g_custom_container.
" load data on server
CALL METHOD html_viewer->load_data
EXPORTING
type = 'text'
subtype = 'html'
IMPORTING
assigned_url = l_doc_url
CHANGING
data_table = data_table
EXCEPTIONS
dp_invalid_parameter = 1
dp_error_general = 2.
" show loaded data in html control
CALL METHOD html_viewer->show_data
EXPORTING
url = l_doc_url.
" call main screen
CALL SCREEN 10.
All works, but html is not interpreted: the result is that I see in the html control '<h.1>Test</h.1>' (Added dot to not see written as header here in the post) and not 'Test' written as header (that would be <h1>Test</h1>). Am i missing something or do I misunderstood the use of this object?
regards
Gabriele
Edited by: Gabriele Montori on Aug 30, 2010 12:38 PMHello,
your problem is witjh the HTML. You need to insert the <html> tag. try this:
" test
wa_table = '<html>'.
Append wa_table TO data_table.
wa_table = '<h1>This is a test</h1>'.
append wa_table TO data_table.
wa_table = '</html>'.
Append wa_table TO data_table.
Regards,
pedro -
PCUI - open New Window via Button (to call custom URL / HTML viewer)
Hello group,
I have followed the "Use CRM PCUI HTML viewer to call a custom URL" in order to create a custom URL to BW web template.
However, instead of displaying the URL in a tab (this works fine), I want a Button in the Accounts view to open up a New Window displaying the URL there.
Here is what I have done:
Create Field Group & Structure
Create Event
- Usage: Layout-Relevant
- Text: Web template call
Added Event to Toolbar Group ACC_OIC
Define Application Layout (CRMM_ACCOUNT) for Event
- Position: New Window
- Screen Element Type: HTML
- my field group
- my structure
Define Application Set (COMM_BUPA)
- my structure
- my access class
The button is there, when clicked the read-method of my access class is executed, but no New Window is opened with the URL displayed.
Is there something I am missing? Can the HTML viewer not called in a new window?!
I appreciate any input you can provide me.
Thanks and regards,
ErikI have the same problem. PCUI toolbar button open url http://www.google.com in new window .
It sames so easy open a link on web page.
why so hard in PCUI !
My god , who design the PCUI.
anyone solve this problem , let me know please. Thanks!
[email protected] -
Dear All ,
I am facing a problem with HTML Viewer . My senario is as follows :
1. I have created one HTML page . On that page there are 4 Images
2. I imported that HTML page in SAP with the help of transaction SMW0
3. I Called that HTML page in my ABAP program using the method "load_html_document" of class cl_gui_html_viewer
4. This is happening perfectly ok on the machine on which all this developement was done.
But the issue is when I execute my ABAP program on a different machine , those Images on that HTML page are not displaying.
Can you please guide me how to remove that machine dependancy?
Regards,
NikhilHi Nikhil,
Please check if the image is properly imported properly. Also check if there is any option which you might have forgotten while imported like dependeency.
Regards
Abhii... -
The internal html viewer is not working in coldfusion builder 2.
It is so frustrating how hard this is. I finished setting up coldfusion and coldfusion builder 2 with an apache local webserver and was hoping to make use of the internal html viewer but it won't come on! All I see is a blank grey page with no content. After creeping around the forums for a while it seemed that the simplest solution was to use the internal coldfusion server so I uninstalled everything and did just that, reverting my administrator page to http://localhost:8500/CFIDE/administrator/index.cfm (working and launchable from the IDE), placing my webroot at C:\ColdFusion9\wwwroot and with all the folders in their right place. The server is running ok and when I launch the run as "coldfusion administrator" option to run my index file, it succesfully opens the external browser and displays the page.
I have the same setup on my desktop at home, the same files, installation, everything! and it works but not on my laptop. I followed Ben Forta's instructions to a T and yet I still am not getting the html preview. I even tried to hard code the absolute url in the html preview settings and still nothing but that annoying grey.
Is this a bug? There doesn't seem to be anything about it in the bug reports. It is quite infuriating how something that seems so miniscule could be such an annoyance. I have already gotten quite used to the preview pages and coldfusion and I would prefer to code that way rather than making use of dreamweaver which I feel I am being forced to use, but at least it's consistent.
Please if anyone could provide some answers and help I would really appreciate it! I have only so much hair left!
Thanks!Perhaps others may recognize and resolve this for you. I and others here often can and do offer quick solutions to many problems. And I can appreciate that it’s reasonable to think that something so simple should just work. But in this case I think are simply too many variables that could explain why things are not working for you. And while I can also appreciate that you will prefer to get a solution for free if anyone can offer it, I just can’t even begin to offer all the possible problems and solutions, at least by email, in this case. Again, maybe someone else will make a quick connection.
But I will point out that if you’re willing to pay US$75, I offer a service of remotely troubleshooting any one CFBuilder problem for that fixed price. Hopefully I might help you solve it quickly (when I can see exactly what’s going on in your environment), but you will not pay if I don’t solve the problem in up to 2 hours effort. If you may be interested, see www.carehart.org/consulting/ for more, and if you want to set up a time to get together (over the web), drop me an email at [email protected]
Finally, please note that I don’t often point out this service here on the forums. I generally just offer suggestions (sometimes lengthy ones) without any commercial expectation, so please don’t regard this as me engaging in “abusive unsolicited commercial email”. I’m just offering a possible solution, given the OPs sincere challenge in solving things.
/charlie
Maybe you are looking for
-
Any way of getting a HH5 for free? (HH2 currently)
Been with Infinity since it launched, Homehub 2 is pretty problematic with the switch / amount of devices I use. DHCP issues a lot with wireless devices, to cut a long story short is there any way I can obtain (without pretending my current router is
-
Interactive PDF- email hyperlink bringing up email window and "Page not found" webpage?
Created interactive pdf with email hyperlink, however, not only does clicking on link bring up email message also brings up "Page not found" in a web browser. How to resolve? Email link setup appropriately in InDesign CC?
-
Home page all screwed up!
Good Evening: The other night I was on my home page just checking my email. I use to have three search engines on the top of the page one had all my favorite. Anyway I'm not sure what happen but they all just went away. Now all I have is Google
-
Hi All, I run a query for which we have to enter a variable called 0Calday while we run a query. i ran the query and save in the excel. I dont remember at what date the query is ran and now I want to know the date. How can I know the date. Help me at
-
The bookmarks, cookies, history all the time are deleted when I start Firefox and I need to import them all the time. I have version 3.6.12