SAP WPC Rendering

Hi
     We are tryng to change the rendering mode of WPC pages to adapt to new multi language support mechanism. We basicly want content to have "placeholders"  that initially are only available in one language(author writes the content) and then a translator would be responsible for implementing the placeholders in other languages.
  This would require us to change the rendering mode  for WPC pages. The pages would refer to content. this content would then depending on the language load a specific value from the available depending on the current language ( probably in property files like resource bundles).
   anyone have any suggestion regarding this? thanks

thanks but ive seen all the information in that link before and i cannot find a answer to my problem . this is probably something way more complex to be directly in a SAP library/general information link
Still looking for answers, thanks
Edited by: Phatinox on Aug 17, 2011 5:28 PM

Similar Messages

  • WPC: rendering of articles collection

    Hi guruz,
    I'm enjoying the capabilities of the Web Page Composer in the Enterprise Portal but I have some doubts I didn't clear reading the documentation. I already try to create new web forms for my custom articles editing the xml and xsl files, now I'm wondering if it is possible to create a list of all the articles in a folder, order by some property e.g the date of creation.
    I did this in the past with xml forms using layout sets and custom render list items to render collections of xml forms in a folder.
    Now I used Web form editor instead of XML forms and I can customize the xsl file that renders the single article (it's the same than the show xsl in the xml forms) but I can't find any xsl for the rendering of the list of articles.
    Can anyone help me?
    Thank you
    Mattia

    Hi Mattia.
    At this moment it is no any standard WPC solution that automatically generates a list of articles.
    As a staring point you may have a look at Link List/Teaser forms and adopt one of them for your needs. However, a usage of them require manual work and rational only in case of small amount of articles and/or updates.
    Also you might consider about The specified item was not found.'s suggestion in the tread Re: Article management like SDN:
    For a very editor friendly solution like SCN, you would use the Web Page Composer (so still XML Forms) to create the articles and implement a special iView that you would link to a WPC container. This iView could have a nice user interface for the search parameters and compose the search query to display the list of articles
    Best regards,
    Aliaksandr

  • Get GUID in custom WPC page layout

    I'm developing a custom WPC page layout with an embedded Visual Composer flash file. Since KMC web pages are stored in KM I can use the KM Java API to access properties on the document in KM. I want to use this technique to let users store a value at design-time and use this value to generate the code to view the VC flash file at run-time. I've managed to get everything to work except for one small detail: The only way I've been able to get a reference to the document in KM (as an IResource object) is by reading the GUID from the URL, and this is only available at design-time and when previewing the WPC web page, not at run-time when the web page is opened through portal navigation.
    Does anybody know of a way to get the GUID (or any other reference) to the current KM document from a page (JSP file)? I have the page and WPC taglibs available, and of course the request object.
    Thanks,
    Terje Bjørgum

    It's all in the DOCTYPE declaration that  you see in a typical HTML page.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    SAP/WPC usually don't have this properly placed or is missing from any of the pages you create. Once you publish the page you created, view its source by right-click -> view source on the browser. You may be surprised that the DOCTYPE declaration is not there at all and the DOCTYPE declaration tells the browser how to render the page along with the CSS that you may have.

  • A question on post processing of generated html

    Hi friends,
    I've been using bsp:findAndReplace for alot of my applications to add or replace html code. Alot of people say this is not a good practice, and I'm not sure why.
    Anyway, I've come to the point where I cannot use fixed strings anymore as the "find" attribute.
    Is there any way to do something like the following:
    <bsp:findAndReplace
    find = '<table id="abc"> * </table>'
    replace = '<table id="def"> * </table>'
    >
    where the "*" would represent any amount HTML code. I couldn't find anyone on this forum with this requirment, I think there are alot of uses for this, like it would make it alot easier to, for example, remove some <table> tags along with their correct </table> tag and not a </table> tag belonging to some other table.

    When I have had to use <bsp:findAndReplace> on tags with inner elements, I usually turn it into two different finds:
    <bsp:findAndReplace
      find = '<table id="abc">'
      find1 = '</table>'
      replace = '<table id="def">'
      replace1 = '</table>' >
    This works pretty well especially if you are limiting the scope of where the find and replace must run. 
    However I would be one of those people that say that the use of findAndReplace is not a good general practice.  I have used it only very sparingly over the years (actually I don't have any production applications using it).
    You are taking a considerable risk that you will break SAP's rendered code if you do a find and replace over BSP Extension Elements.  From support package to support package, this inner generated code does change (thereby breaking your find and replace code).  I wonder what kind of situations you have where you have to use this in "a lot" of your applications.  Perhaps it would be better to explore building your own composite extension elements instead.

  • Set a colour to a row in a table view which does not use an iterator

    Hi ,
      I have an application , which displays data using a table view.
    How can i set colour to a row based on the value of one of its coloums.
    The table view does not use an itertator.
    Thanks
    Arun

    you can use the following code in the ONMANIPULATION event to modify the color of the row. but be aware that if SAP changes rendering ot htmlb:tableview it may not work.
    this code sample set the bgcolor of row 2 to blue.
    DATA: httpbody TYPE string .
    CALL METHOD response->if_http_entity~get_cdata
      RECEIVING
        data = httpbody.
    REPLACE ALL OCCURRENCES OF '<tr rr="2"' IN httpbody WITH '<tr rr="2" bgcolor="blue"' IGNORING CASE .
    CALL METHOD response->if_http_entity~set_cdata
      EXPORTING
        data = httpbody.
    Regards
    Raja

  • Hyperlink in a User Exit for standard transaction?

    Hi,
    First off, I am a novice in ABAP. After some searching on the forums, I have found out that it is possible to have hyperlinks in an ABAP Programm.
    Is it possible to change a standard transaction (through user exits) to add in this sort of functionality? For instance, a link in VA23 to jump to a remote portal? Is it possible? And if yes, could anyone give me an example of how this could be done? Links to documentation or tutorials would also help me.
    Could such a functionality be added through a button in the same transaction instead of a simple hyperlink?
    Thanks and regards
    Sameer

    The SAP.Web.UI.Controls namespace is a collection of classes that allow you to create controls in an iView. SAP NetWeaver web controls run on the server and include form controls such as buttons, input fields and tables. Because web server controls run on the server, you can programmatically control these elements. SAP NetWeaver controls are more abstract than HTML server controls or Microsoft web controls from the System.Web.UI.WebControls namespace. Their object model does not necessarily reflect HTML or Microsoft web control interfaces. SAP NetWeaver controls reflect the SAP WebDynpro UI elements. They also implement the behaviour of SAP Unified Rendering, which allows custom UI branding by selecting and modifying CSS style sheets. This namespace includes the ViewElement class, which is derived from System.Web.UI.Controls.Control and provides all SAP server controls with a common set of functionality. Therefore you can also mix SAP NetWeaver controls with Miocrosoft web controls within an iView.
    for more details on this please go through the below link.
    https://www.sdn.sap.com/irj/go/km/docs/library/dotnet/pdk%20for%20.net/developer's%20Guide%20PDK%202.0%20for%20.NET/Reference/SAP.Web.UI.Controls.html
    <b>Give points if useful</b>
    related topics
    http://help.sap.com/saphelp_crm50/helpdata/en/20/041c3a1cf1c54be10000000a114084/content.htm
    http://help.sap.com/saphelp_crm50/helpdata/en/e7/43f438c842cc2be10000000a114084/content.htm

  • BAPI_PO_GETDETAIL1 - An invalid XML character (Unicode: 0xb) was found

    Hi,
    We are using BAPI_PO_GETDETAIL1 to get the Purchase Order details. it worked well in the past.
    But its failing for a particular PO number.
    Error Message:An invalid XML character (Unicode: 0xb) was found in the element content of the document.
    I understand there might be some special character in the record. But it works well at SAP ECC.
    Can someone please suggest some solution or workaround?
    Thanks,
    Anil

    Hi,
    I faced the same issue recently, and came accross this sap note : 1559677 : XML renderer creates invalid XML.
    Take a few moments to read the contents, but here's the most important part :
    If an application program uses the SAP XML renderers to create XML 1.0
    documents that must strictly conform to the specifications of W3C, this
    application program must ensure that problematic characters are removed
    from the data before transferring this data to the SAP XML renderer.
    So, you need to clean up the characters by yourself...
    Best regards,
    Wouter

  • Object Versions invalid after DB actions (table copy)

    Hi all,
    recently I have encountered some weird issues during a little archiving run I'm doing on MM_MATBEL.
    Tables involved:
    IMEXT
    MKPF
    MSEG
    MSEGO1
    MSEGO2
    NAST
    OIAQB
    After the archiving was done I logically went for an online reorg of these tables. This worked for all tables, except for MSEG. The reason was the following:
    BR1962W Table SAPSR3.MSEG has more than 255 columns
    BR1967W Table SAPSR3.MSEG would be implicitly decompressed during reorganization
    BR1111I Reorganization of table SAPSR3.MSEG will be skipped
    So apparently the table had been compressed in the past (when it had less than 255 columns) and now cannot be rebuilt anymore with compression.
    In the following note they mention a workaround/solution:
    http://service.sap.com/sap/support/notes/1872983
    The solution consists of copying the compressed table into a newly created table. After some problems with the script (which will be fixed) and consulting SAP Support I finally succeeded in rebuilding the tables.
    After this rebuild there are numerous dumps (LOAD_FORMAT_ERROR,  DDIC_TYPE_INCONSISTENCY, LOAD_TYPE_VERSION_MISMATCH, etc...) in SAP itself, rendering the system practically unusable.
    One workaround is to manually re-activate the object generating the shortdump, this does solve the issue on that object, but that's it.
    I can hear you think: "Run SGEN, you stupid". Well, I did, and it did not help, or at least not much. It did regenerate some objects, but apparently it's not sufficient.
    To me it seems like some inconsistency in the Dictionary, caused by the tables that were rebuilt. Is there a way that we can regenerate the Data Dictionary of SAP? Or at least fix the DDL inconsistencies?
    The tables that I have recreated using note 1872983 are:
    LIPS
    MSEG
    VBAP
    VBRP
    ZEKPO
    N2CA02
    N2CA03
    N2CA04
    N2CA05
    N2CA09
    PA0008
    PA0146
    PA0701
    PA0706
    PA0764
    PA0897
    PB0008
    T5ITT7
    RSEUMOD
    COMPMOVE
    WDFR_POS
    N3BGF1008
    OIUH_RV_JE
    OIUH_RV_RJE
    TTONFTVZZBEPP
    TLVC_DFT_ASSGN
    If you have any suggestions, I'd love to hear them.
    Thanks in advance
    Dieter Waelkens
    Ps:
    I've found notes
    http://service.sap.com/sap/support/notes/1567187
    http://service.sap.com/sap/support/notes/162991
    I'll analyze them and come back with an update
    Message was edited by: Dieter Waelkens (added notes in the end)

    Hello Dieter,
    Looks like your errors are more related to DDIC problems than program problems, this might be why SGEN could not help.
    Report RUTMSJOB could help, at least to identify if there are inconsistencies, that could be fixed by re-activating the tables.
    Check note  1538932 - RUTMSJOB error with check DDTYPES
    You could also use report RSNTABCONSISTENCY  from note 1167784 - Runtime error DDIC_TYPE_INCONSISTENCY
    Regards
    Options for RUTMSJOB in expert mode.

  • Unable to refer to custom resource bundle in WPC content rendered with xslt

    Hi,
    I need to use the resource bundle messages inside WPC content.
    When rendered by standard xsl templates the  call to XSLTHelper class is done to retrieve message from the standard SAP resource bundle com.sap.nw.wpc.bundles.core.properties, like this:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                         xmlns:wpc="com.sap.nw.wpc.km.service.editor.hslt.XsltHelperCore">
    <xsl:value-of select="wpc:getString([key defined in sap bundle], string(/document/@locale))"/>
    The problem is that helper class doesn't provide any API to use custom bundles.
    I tried to create xslt helper (including config in KM), but that didn't succeed neither. It would return with error NoClassDefFound.
    Could you please help on configuring xslt helper and registering it with xslt rendering engine for Web Page Composer? I could not find any how-to guides on xslt helpers for WPC.
    Thanks in advance.
    Ruslan

    Hi
    Did you find a solution?
    Christof

  • WPC HTML editor rendering changed after SPS21 upgrade

    Hello experts,
    We've just upgraded our SAP Portal to SPS21. This upgrade included KMC. Since the upgrade the fontsizing of content types has changed. Everything has become so small, content cannot be properly read. I'm trying to narrow down the problem and found out the following:
    - It only happens when existing content (pre upgrade content) get saved. Before saving the font size is good, but after saving it changes.
    - It only happens to content which is being edited in the HTML edit object of WPC.
    I was surprised it only happens to existing content and not to new content. Using the IE Developer toolbar I tried finding out the difference in HTML. This is what I found:
    - Existing content is only rendered by the XSL. The XSL defines the content to be viewed in a paragraph tag. This is exactly the output of the HTML
    - New content (same content type) is rendered by the XSL, but has "extra" rendering: Text is shown in two SPAN tags <span> with extra class attributes urFontStd and urTxtStd.
    I don't know enough about WPC to know why it renders in two different ways if the same xsl file is used for the content. I hope someone can help me solve this problem.
    Thanks in advance.
    Kenny
    Edited by: K. Kok on Sep 30, 2010 1:58 PM

    No, I don't have a proper solution yet, but we adjusted our stylesheet., so we have a workaround A normal paragraph has 0.75 em and a paragraph inside the spans have a 1.0em value. Both paragraphs show the results in 12px.
    It's not pretty, but it works.

  • Issue regarding Planning layout is not getting rendered and is dumping at : CL_RSDRC_TREX_QUERY_LAYER ~ _GET_PARTPROVS_WITH_TREX_PART in SAP TPM IP

    Gurus,
    I am facing an issue regarding SAP TPM IP ( HANA)
    I have 3 Infoproviders
    Planning infocube, Planning DSO1, Planning DSO2 and i created multiprovider and added these 3 infoproviders into it. I have created Aggregation level on multiprovider. Created Bex Input ready query on Aggregation level.
    Issue is  Planning layout is not getting rendered and is dumping at : CL_RSDRC_TREX_QUERY_LAYER ~ _GET_PARTPROVS_WITH_TREX_PART.
    I tried debugging it and found it is trying to read   i_r_pro -> n_ts_part. It is populated with only 3 values (i.e. 2DSOs and 1 Cube), whereas <l_partprov>-partprov is referring to Aggergation level, hence read statement isn't successful, it is dumping.
    The class CL_RSD_INFOPROV_CACHE->GET() method is trying to populate the N_TS_PART.N_TS_PART uses P_R_INFOPROV table which seems to be already populated.  So, I debugged all the below methods to find out how the P_R_INFOPROV but couldn't find any clue.
    Can any one help,it would be really help.
    Thanks
    Ashok

    Hello Gregor,
    On the launch of planning layout it throws an error message:
    Planning is not possible RSCRM_IMP_CORE008.
    When I debugged, i got to a point wherein
    particular Real Time Planning DSO is
    not getting retrieved under the MultiProivder in below class.
    Class: CL_RSCRM_IMP_ACTIONS_SERVICE, Method: GET_INFOPROV is not
    returning the real time Info-Provider Name(i.e. Planning DSO)
    underlyingthe Multiprovider.
    I've also tried to run the report mentioned by you for the Multiprovider but issue still exists.
    Let me know, if you have any pointers on this topic.
    Thanks,
    Jomy

  • IGrid - SAP MII 12.1.8 SP 05 (build 36) - rendering not working properly.

    Hi,
    In the 12.1.8 SP 05, when the iGrid cell values set through the java script, the rendering part is not working.
    For example,
    The data set returned by iCommand has 25 rows.
    Java script sets the values in the iGrid from each row.
    The application was working well with 12.1.8 SP02. The same application is not working properly now.
    the error from the java script show this as java.lang.NullPointerException.
    For the same set of data, this error is occurring sometimes at the third row, sometimes in the middle and sometimes in the end.
    The java console is quite consistent. The same error occurs multiple times.
    I have given the error in the end.
    After the grid loaded, the script tries to set the cell values. some time only a single line has values and some time 4 to 5  lines has values for the same data set. The lines are not shown to the user. When he moves away from that page and comes back all the 25 lines are seen, mostly without values.
    Is anyone working with 12.1.8 SP05 patch? The Xacute Query string output size is 64K in the SP02. In SP04 and SP05 this issue is fixed. This needs to be implemented. But in SP 03, IGrid functionality is refactored.
    The SAP notes number: Note 1566572 - MII 12.1 SP08 Patch03 says,
    Re-factored iGrid to improve datatype handling
    Notes number for SP04:  Note 1581779 - MII 12.1 SP08 Patch04
    Notes number for SP05: Note 1586551 - MII 12.1 SP08 Patch05
    If you have upgraded into the latest version of 12.1, are you facing the similar problem?
    The java Console error:
    Exception in thread "AWT-EventQueue-2" java.lang.NullPointerException
         at com.sap.xmii.applet.grid.renderers.MultiLineRenderer.setValue(MultiLineRenderer.java:60)
         at com.sap.lhcommon.gui.table.TableMultiLineCellRenderer.getTableCellRendererComponent(TableMultiLineCellRenderer.java:129)
         at javax.swing.JTable.prepareRenderer(Unknown Source)
         at com.sap.lhcommon.gui.table.BaseTable.prepareRenderer(BaseTable.java:560)
         at javax.swing.plaf.basic.BasicTableUI.paintCell(Unknown Source)
         at javax.swing.plaf.basic.BasicTableUI.paintCells(Unknown Source)
         at javax.swing.plaf.basic.BasicTableUI.paint(Unknown Source)
         at javax.swing.plaf.ComponentUI.update(Unknown Source)
         at javax.swing.JComponent.paintComponent(Unknown Source)
         at com.sap.xmii.applet.grid.base.types.BaseGrid.paintComponent(BaseGrid.java:947)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JViewport.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintToOffscreen(Unknown Source)
         at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
         at javax.swing.RepaintManager.paint(Unknown Source)
         at javax.swing.JComponent._paintImmediately(Unknown Source)
         at javax.swing.JComponent.paintImmediately(Unknown Source)
         at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
         at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
         at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Thanks and Regards,
    Kishore kumar P S

    Hi Jamie,
    SAP has proposed a solution not to check the word wrap in the Grid.
    The iCommand data call was happening with Creation event of iGrid.
    Now changed to FirstUpdateEvent. This works fine.
    Thanks and Regards,
    Kishore kumar P S
    problem resolved
    Edited by: kishore kumar on Jul 12, 2011 3:33 PM

  • WPC and rendering problems

    Hi
    I created an own Contenttype (xml) one Stylegroup for this Contenttype and three Styles (three xls files) for rendering.
    When i create a new content with the WPC all three renderoptions are showen in the preview display field. when i press the preview button the content is showen in the right way but when i save the content it always jumps back to the first rendering style and i can't save the content with the 2nd or 3rd style. can someone help me
    thanks
    Edited by: tintiifax on Sep 24, 2009 12:16 PM

    TinTiifax-    It's a know issue. Try to make a form. Ignore the style for now. After you drag and drop the webform in the container.
    Click the pencil icon on the containerand from the context menu select the select content layout option and you should be able to change the style.
    Let me know if you have any issues.

  • Rendering xml-table into logical filename in SAP R/3

    Hi,
    I am trying to translate an xml-table with bytes into a logical filepath in SAP R3.
    Do I have to use the method gui-download or shall I loop the internal xml-table?
    When I tried to loop the xml-table into a structure, and then transfering the structure into the logical filename, I get problems with the line breaks in my xml-file. How do I get the lines to break exactly the same as I wrote them in my ABAP-code?
    Edited by: Kristina Hellberg on Jan 10, 2008 4:24 PM

    I believe you posted in the wrong forum.
    This forum is dedicated to development and deployment of .Net applications that connect and interact with BusinessObjects Enterprise, BusinessObjects Edge, or Crystal Reports Server. This includes the development of applications using the BusinessObjects Enterprise, Report Application Server, Report Engine, and Web Services SDKs.
    Ludek

  • Sap.ui.table.Table resetting valueState during rendering

    Am I doing something incorrect ?
    The following jsbin demostrates the problem. Edit one of the textfields in the table and you will notice that the value state for that field is set to Error. Now, switch tabs and then switch back and the value state has been reset to None. If I remove the table and place the textfield directly as the content of the tab, the value state is retained.
    OpenUI5 ValueState Test
    In debugging my application I notice that onBeforeRendering() the value state is correct and set to error, however at some point during rendering it is reset to None. In onAfterRendering() the value state is None.
    This appears to be a bug to me but wanted to make sure that I am not doing something incorrect.
    Regards,
    Trevor

    Dennis,
    Thank you for the reply.
    That suggestion certainly resolves my particular issue. I guess the fact that column is using a template of a TextField and not a particular instance, it makes it impossible to "remember" the state as the data could have changed its position in the table.
    Makes more sense.
    Regards,
    Trevor

Maybe you are looking for

  • Recipe App Wanted

    I'm planning to purchase an iPhone soon and have been searching for applications I might want to get along with the phone. I've browsed through the lists in the iTunes store for recipe and cookbook apps but can't seem to find one quite like what I'm

  • Interview questions in reporting

    hi all, i m preparing for interview, and was trying to fathom all possible troubleshooting questions on reporting.. Can someone pls send me a list of the most frequently occuring errors in reporting (at <removed>) All possible help is thankfully ackn

  • Adobe's not converting

    I've recently purchased Adobe Reader XI from on-line to convert PDF files to word doc as this is what the write-up said it did. Purchase order Number FS2271738 but it is not working.  I select my PDF file that I want converted and click on convert. 

  • Trouble organizing songs in itunes

    I orgaganize my songs and podcasts the way I want them but everytime I unplug my shuffle they are mixed up. I have checked to make sure that its not on shuffle, but it mixes them up anyway. please help

  • HELP!!! Deleted Folders in Filed Mail

    HELP! I seem to have accidentally deleted a very needed set of folders in Mail kept in Filed Mail section. I have not emptied Trash, hoping they are all still on computer somewhere. But via all Search functions (Mail and Spotlight) and just poking ar