Web Elements 2.4 - Encoding Values

I am using web elements 2.4 on XIR2.
I have some cascading dropdown boxes populated with dynamic values from a subreport.
This all works fine.
However, some of the data has ampersand's in it such as 'B&P Level'
Looking at the opendocument URL that the web element creates, it does not encode the values and so
the & in the value is mistaken as the start of a new parameter.
My question is, is there any update to web elements to handle non-standard characters and to encode the values in the javascript before it passes them to the opendocument URL?
Thanks

hey Brian,
you have a couple of options when you have characters in the database that url's do not care for.
option A
if you use the extended (ext) cascading controls, they allow for a display value and an ID value to be passed. the ID is then used in your target report instead of your display value. this way the database values that you display in the controls do not have to be changed or encoded.
option B
you can use the urlencode function in crystal reports to change the value in the subreport that is rolling up the data.
cheers,
jamie

Similar Messages

  • Pass values from report1 to report2 but without displaying the web element

    Need to pass a string value from report1 to report2.This can be done by using web elements. But in that case the web element is showing up when we run report1.So what is the way to avoid display of web element but still pass the value to report 2.
    Thanks

    if you have no need for webelements controls on a report and just need a simple hyperlink, use opendocument syntax in conjunction with an object's hyperlink properties in the formatting editor.
    see your online help for more info on opedocument.

  • Crystal Reports XI Web Elements - populate WESelect element values from database field

    <p>Hi,</p><p>I am using Web Elements with Crystal Reports XI. I need to know how to populate the ElementValues and ElementDisplays arguments of the WESelect function from a database field. </p><p>In the function expert when I click on the ElementsValues and ElementDisplays values a drop down appears which will let me select a field or formula. However, when I try saving and leaving the formula workshop an error message is generated.</p><p> "A subscript must be between 1 and the size of the array".</p><p>I assume this is because the WESelect function is looking for the "|" separator in the ElementValues and ElementDisplays arguments.</p><p>Please advise.</p><p>Thanks</p>

    hello,Â
    in the webelements.zip download you should find a DCP report which shows the method for "rolling up" data using a subreport and passing these to a select control using shared variables.
    basically a string running total rolls up the values at run time and character separates them for use by the controls. for any type of select (drop down menu etc.) controls all of the values have to be made available before the main report is run so that's why you use this techique. you can think of it this way...instead of having an asp page that runs a database query and then populates a javascript array for the control, the subreport rolls up the values and passes them to the control.
    other types of controls that you wish to place directly on a group header or details section can be run off of main report fields or formulae...e.g. you can place a checkbox control on the details section without having to roll up the data in advance.
    by just putting a field name in the parameter for a select control, you will only get one value per control.
    i hope that this makes sense as it takes a bit to get used to at first,
    jamie

  • Fetch dynamic value form a web.element of Web applicaiton

    Hi,
    How can I fetch the dynamic value/values displayed on the web page?
    For Textbox we can use .getattribute("value") method.
    temp1 = web.textBox(64,"/web:window[@index='0' or @title='Regular Entry']/web:document[@index='3' or @name='TargetContent']/web:form[@name='win0' or @index='0']/web:input_text[@id='DISTRIB_LINE_MERCHANDISE_AMT$0' or @name='DISTRIB_LINE_MERCHANDISE_AMT$0' or @index='27']").getAttribute("value");
    How about retrieveing value for web.element object?
    web.element(314,"/web:window[@index='0' or @title='Regular Deposit']/web:document[@index='3' or @name='TargetContent']/web:label[@index='1' and @text='Deposit ID:' and @className='PSEDITBOXLABEL' and @innerText='Deposit ID:']").click();
    Here for /web:label[@innertext='Deposit ID:'] I need to fetch dynamic value displayed against Deposit ID.
    Can anyone please help?
    Thanks
    Bhaskar

    Hi Bhaskar,
    You can fetch a value dynamically using the Syntax,
    ]").getAttribute("*text*");
    Hope this Helps,
    Nishanth Soundararajan.
    Edited by: user9277220 on Apr 26, 2010 8:43 PM
    Edited by: user9277220 on Apr 26, 2010 8:43 PM

  • How can I use oracle function to decode the encode value

    Hi everybody,
    If the data is encode value how can I decode this value

    DBMS_OBFUSCATION_TOOLKIT
    DBMS_OBFUSCATION_TOOLKIT allows an application to encrypt data using either the Data Encryption Standard (DES) or the Triple DES algorithms.
    The Data Encryption Standard (DES), also known as the Data Encryption Algorithm (DEA) by the American National Standards Institute (ANSI) and DEA-1 by the International Standards Organization (ISO), has been a worldwide encryption standard for over 20 years. The banking industry has also adopted DES-based standards for transactions between private financial institutions, and between financial institutions and private individuals. DES will eventually be replaced by a new Advanced Encryption Standard (AES).
    DES is a symmetric key cipher; that is, the same key is used to encrypt data as well as decrypt data. DES encrypts data in 64-bit blocks using a 56-bit key. The DES algorithm ignores 8 bits of the 64-bit key that is supplied; however, developers must supply a 64-bit key to the algorithm.
    Triple DES (3DES) is a far stronger cipher than DES; the resulting ciphertext (encrypted data) is much harder to break using an exhaustive search: 2**112 or 2**168 attempts instead of 2**56 attempts. Triple DES is also not as vulnerable to certain types of cryptanalysis as is DES. DES procedures are as follows:
    DESEncrypt Procedure
    DESDecrypt Procedure
    Oracle installs this package in the SYS schema. You can then grant package access to existing users and roles as needed. The package also grants access to the PUBLIC role so no explicit grant needs to be done.
    This chapter discusses the following topics:
    Overview of Key Management
    Summary of DBMS_OBFUSCATION Subprograms
    Overview of Key Management
    Key management, including both generation and secure storage of cryptographic keys, is one of the most important aspects of encryption. If keys are poorly chosen or stored improperly, then it is far easier for a malefactor to break the encryption. Rather than using an exhaustive key search attack (that is, cycling through all the possible keys in hopes of finding the correct decryption key), cryptanalysts typically seek weaknesses in the choice of keys, or the way in which keys are stored.
    Key generation is an important aspect of encryption. Typically, keys are generated automatically through a random-number generator. Provided that the random number generation is cryptographically secure, this can be an acceptable form of key generation. However, if random numbers are not cryptographically secure, but have elements of predictability, the security of the encryption may be easily compromised.
    The DBMS_OBFUSCATION_TOOLKIT package does not generate encryption keys nor does it maintain them. Care must be taken by the application developer to ensure the secure generation and storage of encryption keys used with this package. Furthermore, the encryption and decryption done by the DBMS_OBFUSCATION_TOOLKIT takes place on the server, not the client. If the key is passed over the connection between the client and the server, the connection must be protected using Oracle Advanced Security; otherwise the key is vulnerable to capture over the wire.
    Key storage is one of the most important, yet difficult aspects of encryption and one of the hardest to manage properly. To recover data encrypted with a symmetric key, the key must be accessible to the application or user seeking to decrypt data. The key needs to be easy enough to retrieve that users can access encrypted data when they need to without significant performance degradation. The key also needs to be secure enough that it is not easily recoverable by an unauthorized user trying to access encrypted data he is not supposed to see.
    The three options available to a developer are:
    Store the key in the database
    Store the key in the operating system
    Have the user manage the key
    Storing the Key in the Database
    Storing the keys in the database cannot always provide bullet-proof security if you are trying to protect data against the DBA accessing encrypted data (since an all-privileged DBA can access tables containing encryption keys), but it can provide security against the casual snooper, or against someone compromising the database files on the operating system. Furthermore, the security you can obtain by storing keys in the database does not have to be bullet-proof in order to be extremely useful.
    For example, suppose you want to encrypt an employee's social security number, one of the columns in table EMP. You could encrypt each employee's SSN using a key which is stored in a separate column in EMP. However, anyone with SELECT access on the EMP table could retrieve the encryption key and decrypt the matching social security number. Alternatively, you could store the encryption keys in another table, and use a package to retrieve the correct key for the encrypted data item, based on a primary key-foreign key relationship between the tables.
    A developer could envelope both the DBMS_OBFUSCATION_TOOLKIT package and the procedure to retrieve the encryption keys supplied to the package. Furthermore, the encryption key itself could be transformed in some way (for example, XORed with the foreign key to the EMP table) so that the key itself is not stored in easily recoverable form.
    Oracle recommends using the wrap utility of PL/SQL to obfuscate the code within a PL/SQL package itself that does the encryption. That prevents people from breaking the encryption by looking at the PL/SQL code that handles keys, calls encrypting routines, and so on. In other words, use the wrap utility to obfuscate the PL/SQL packages themselves. This scheme is secure enough to prevent users with SELECT access to EMP from reading unencrypted sensitive data, and a DBA from easily retrieving encryption keys and using them to decrypt data in the EMP table. It can be made more secure by changing encryption keys regularly, or having a better key storage algorithm (so the keys themselves are encrypted, for example).
    Storing the Key in the Operating System
    Storing keys in the operating system (that is, in a flat file) is another option. With Oracle8i you can make callouts from PL/SQL, which you could use to retrieve encryption keys. If you store keys in the O/S and make callouts to retrieve the keys, the security of your encrypted data is only as secure as the protection of the key file on the O/S. Of course, a user retrieving keys from the operating system would have to be able to either access the Oracle database files (to decrypt encrypted data), or be able to gain access to the table in which the encrypted data is stored as a legitimate user.
    User-Supplied Keys
    If you ask a user to supply the key, it is crucial that you use network encryption, such as that provided by Oracle Advanced Security, so the key is not passed from client to server in the clear. The user must remember the key, or your data is nonrecoverable.
    http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96612/d_obtool.htm#ARPLS028
    Joel P�rez

  • Web Elements in Crystal Reports on BOE XIr2

    <p>Hi</p><p>I am trying to set up my crystal report with multiple web elements controls and had a few questions.  Any assitance would be appreciated:</p><p>1) I have set up a radio button control and two drop down controls in my report.  When I post the report to BOE and view it in Infoview, I still see the initial parameter page pop up before getting to the report.  I have default values for each of the parameters and would like the report to bypass the parameter page and use the default values.  Once in the report, I am able to change the parameter values by using the web elements controls.  Any suggestions to get rid of the parameter page?</p><p>2) I also need to set up a hierarchical set of controls in the report.  I would like my radio button to be at the highest level and have the drop down box data be controlled by the radio button selection. How can I set this up?</p><p>3) Radio button - dynamic labels: I&#39;ve done this with a drop down box where the data gets populated from the result set data.  I was hoping to do that with a radio button as well, where the number of radio buttons and labels get dynamically generated based on the number of values in a column. </p><p> Appreciate any help with these.</p><p>Thanks<br />AJ</p>

    <p>hello AJ,</p><p>1) good question. once you&#39;ve built a custom page you never want to see that default prompt page again. what you should do is publish a hyperlink to your CMC that is an opendocument link with default prompt values to your report containing the controls. then hide the report itself in a folder that the end users can&#39;t see. this way only the hyperlink is available and no one will see that prompt page again.</p><p>2) if you open up the webelementsdcp.rpt from the webelements.zip folder, this is an example of heirarchical controls. for the first control in the ElementSet, substitute the WESelectCascade for a radio button control and you&#39;ll get the result you&#39;re looking for.</p><p>3) see #2...once you&#39;ve done the substitution above, the radio button will be using the same live data that the cascading select menu did.</p><p>cheers,</p><p>jamie</p>

  • Crystal Reports Web Elements - database write back question

    Hi,
    I have a question about Web Elements. In description of them on SAP site it says they can provide "write-backs to the database". This is something I would really like to see. I have a scenario:
    User sees a long report and sometimes she needs to add a quick note that should be saved into the database. That note can be entered into WETextArea I suppose and WESubmit button click can be an event  trigger for such a write back.
    I would like to see example of such functionality on Crystal Report rpt file.
    Please advise if anybody knows, I would highly appreciate your assistance.
    Regards, Grettir

    hello,
    webelements can be used for the interface to database writebacks...they don't do the writebacks themselves but create the interface to make it easier for an end user to add annotations etc...these values are then passed to a second report or a subreport. using the default prompting interface makes this quite difficult.
    here's where the database writebacks are done...since version 9 of crystal reports there have been command objects. command objects have the ability to use any database syntax that is compliant with the database connection. i.e. if the syntax can go through the odbc layer then you can do this in a command in crystal reports.
    commands will honour database securities so you don't have to worry about someone dropping a table if rights have been properly assigned. a word of caution there to ensure that database rights have been done properly as you don't want all end users to have the ability to write a report that can do database updates.
    commands are also database specific so you would have to check your database online help to see what syntax would be appropriate.
    the workflow would be to have 2 reports, one that had the webelements user interface and one that did the writeback. this user interface report would have the text object and submit button and using open document syntax, the values would be passed to the 2nd report that had the command object. the command object would have a prompt that would take the values from the open document url and then use the values in the write back.
    for example,
    1) the user interface report has one text object called "t1" and one submit button.
    2) the target command object report has a prompt called "t1".
    3) the target report command object has syntax like
    INSERT INTO yourtestable
    VALUES    ('{?t1}')
    SELECT     1
    4) yourtesttable in this case has only one text field
    5) the "SELECT 1" at the end of the command ensures that a dummy value is returned after running the update...to avoid a database error
    6) this syntax would be for sql server
    this is of course a very simplified example.
    if you are at tech ed phoenix, please drop by the business objects test drive area & i will be there. i can show you a bunch of different webelements examples and write back reports etc. until you become quite bored
    i hope that this helps,
    jamie

  • Web elements installation on 3.1

    Can anyone supply the installation instructions for the server for Web elements on a BOXI 3.1 server

    hi Brian, sorry for the delay in getting a response to you. please see the following....
    STEPS
    1) Open the following file
    C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\Web Content\InfoViewApp\CrystalReports\web.config
    2) **** Make a back up (copy) of the above file ***
    3) change the web.config file so that it looks like the "AFTER" section below
    BEFORE
        <configSections>
              <section name="CrystalReports" type="System.Configuration.NameValueFileSectionHandler,System,Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />          
         </configSections>
         <CrystalReports>
                   <add key="path.dhtmlViewer" value="/crystalreportviewers12" />     
         </CrystalReports>
    AFTER
        <configSections>
              <section name="CrystalReports" type="System.Configuration.NameValueFileSectionHandler,System,Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />          
              <sectionGroup name="businessObjects">
                   <sectionGroup name="crystalReports">          
                        <section name="crystalReportViewer" type="System.Configuration.NameValueFileSectionHandler,System,Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
                          </section>
                   </sectionGroup>
              </sectionGroup>
         </configSections>
         <CrystalReports>
                   <add key="path.dhtmlViewer" value="/crystalreportviewers12" />
         </CrystalReports>
         <businessObjects>
              <crystalReports>
                     <crystalReportViewer>
                            <add key="EncodeHtmlForSingleLineFieldObjects" value="false"/>
                     </crystalReportViewer>
              </crystalReports>
         </businessObjects>
    4) save the web.config file and test a report which contains HTML...e.g. a report with a formula like '<html> </html>'

  • Implementing caascading prompts using web elements

    I am implementing caascading prompts using web elements for two dropdowns PL and MPLl. If a value is selected
    from PL corresponding values are selected from MPL.
    I am using following code in sub report
    1) shared stringvar PL;
    if instr(PL, field1 + "|") = 0 then PL := PL + field1 + "|";
    2) shared stringvar MPL;
    if instr(MPL,"||" + field1) = 0 then MPL:= MPL + "||" + field1 + "|";
    if instr(MPL, field2 + "|") = 0 then MPL:= MPL + field2 + "|";
    3)
    shared stringvar PL:= PL[1 to length(PL)-1];
    shared stringvar MPL:= MPL[1 to length(MPL)-1]; MPL:= replace(MPL, "|||", "||");
    I am using following code in Main report
    1) whileprintingrecords;
    shared stringvar MultiSelectfont;
    shared stringvar PL;
    WESelectCascade ("Product_Line", PL, "Product_Line|MPL", {?Product_Line}, "ALL", true, "4.25cm", MultiSelectfont, "", "");
    2)whileprintingrecords;
    shared stringvar MultiSelectfont;
    shared stringvar MPL;
    WESelectCascade ("MPL", MPL, "Product_Line|MPL", {?MPL}, "ALL", true, "4.25cm",MultiSelectfont, "", "");
    PL has 3 values {ED,Motors, services} ED has 8 values for MPL, Motors has 2 values for  corresponding MPL and services has 2 values for corresponding MPL.  when ED is selected in PL dropdown it is giving 6 values in MPL drop down instead of 8 values.   when Motors is selected in PL dropdown it is giving 2 values in MPL drop down which is correct.   when Services is selected in PL dropdown it is giving 4 values in MPL drop down instead of 2 values.   2 values from services and 2 values from ED. i.e. First selection remaining 2 values are added to last selection i.e. services.
    Any Ideas appreciated

    what are the values of the 2 shared variables?
    i.e. if you un-suppress the formulae in the subreport that generate the 2 shared variables, then copy and paste using the Further Markup Possibilities > Markup/Result > code tags (to the right of the Message)  so that we can see the entire code.
    what could be happening is that there are duplicate values in the 2nd level...each value has to be unique. if they are not unique look into using the Ext (extended) cascading sets where a Display and a Value are used.

  • Setting 6602 registers to latch encoder values on RTSI trigger

    Greetings,
    I am currently using the 6602, comedi driver, and  real time linux to read 6 quadrature encoders.  I would like to add some functionality to the comedi driver that would latch the encoder values from a RTSI trigger.  I have the register programming manual for the 6602; However, I am not quite sure how I should set up the registers for this task.  Any help would be greatly appreciated.
    Thanks,
    Greg

    Thanks Tom and David for your help.
    I have looked over the examples that Tom listed and I think I understand the necessary register settings.  Just in case I missed something I have includded an example configuration and read function for your review.  The configuration is a combination of gpct_ex7.cpp and gpct_ex8.cpp.  Also, am I correct in assuming that if using a RTSI signal to latch the encoder values that the encoder index can not be used to reset the counter?  It seems they would both need access to the gate.   Thanks again for your help,
    Greg
    // configuring 6602...
    void test(iBus *bus)
        tAddressSpace  cardSpace;
        tTIO *board;
        cardSpace = bus->createAddressSpace(kPCI_BAR1);
        board = new tTIO(cardSpace);
        //Reset
        board->G01_Joint_Reset_Register.writeG0_Reset(1);
        //Disarm
        board->G0_Command_Register.writeG0_Disarm(1);
        //load initial value of 0
        board->G0_Load_A_Registers.writeG0_Load_A(0x00000000);
        board->G0_Command_Register.writeG0_Load(1);
        //set the counting mode to quadrature encoding X4
        board->G0_Counting_Mode_Register.setG0_Encoder_Counting_Mode(3);
        //set source to the internal timebase (20 MHz)
        board->G0_Input_Select_Register.writeG0_Source_Select(0);
        //set gate to latch encoder value on rising edge of RTSI 0
        board->G0_Input_Select_Register.writeG0_Gate_Select(11);
        board->G0_Mode_Register.writeG0_Gate_Polarity(0);
        board->G0_Mode_Register.writeG0_Gating_Mode(2);
        board->G0_Mode_Register.writeG0_Trigger_Mode_For_Edge_Gate(3);
        //set counting direction to Gate IO connector
        board->G0_Command_Register.writeG0_Up_Down(2);
        //use the DMA registers as a two element FIFO
        //The TIO will alternate save locations between the HW save and SW
        //save registers.
        board->G0_DMA_Config_Register.writeG0_DMA_Enable(1);
        board->G0_DMA_Config_Register.writeG0_DMA_Int_Enable(1);
        //arm counter
        board->G0_Command_Register.writeG0_Arm(1);
    // reading the counter value would go something like this...
    void generic_read(tTIO *board)
        int HWsaveOrSWsave;
        //the DMA Read register tells us where the most recent sample was saved:
        // 1 for SW save register, 0 for the HW save register
        HWsaveOrSWsave = board->G0_DMA_Status_Register.readG0_DMA_Read_Register();
        if(HWsaveOrSWsave == 1)
            printf("SW Save Register is 0x%08lx\n",
                board->G0_Save_Registers.readRegister());
        else
            printf("HW Save Register is 0x%08lx\n",
                board->G0_HW_Save_Registers.readRegister());

  • BO Webi report hierarchy with measure values showing more(almost double value) compare to BW Bex report

    Hi,
    In our BO Webi report hierarchy with measure values showing more(almost double value) compare to BW Bex report. Can any one please help on this.
    Is it BW problem or BO problem?
    I checked in some other threads but it's not given solution.
    Thanks,
    Manjunatha

    Hi,
    Is it BW problem or BO problem? : BO
    is it causing problem with hierarchly data only ?  without hierarchies data is matching or not?
    Post same in SAP BusinessObjects Web Intelligence  .
    Thanks.

  • Year in drop down appears  using web elements as decimal

    Year field in database as number. I used crystal web element and deployed report in Infoview. But LOV for Year appear as decimal eg: 2,011.00. How to convert to number format as eg: 2011

    Hi,
    I am using the below code in sub report:
    stringvar field4:=left(replace(cstr({AllData.SLS_YR}),",",""),4);
    And using the below code in main report
    WESelect ("Year", P1L4,P1L4,cstr(year(CurrentDate)),MultiSelectfont)
    I am getting drop down with out decimals but current year is not appearing on top instead 2010 appears in infoview.
    Any help appreciated.

  • How to populate data dynamically in WSelect web element.

    How to populate data dynamically in WSelect web element. what is the syntax of WSelect web element to populate data from the database

    Hi Jamie,
    There is no Url to download ackage, instead the link is taking here
    Crystal Reports webElements
    Can you give me correct link?

  • Add web element in Crystal report for SAP system

    Hi all,
    I have added web element in Crystal report for SAP system (BI or R/3) . But it does not show the control. It shows only scipt.It does not render the HTML.
    But if I add the webelement for Excel sheet ,It shows the control.
    How can I add web element for SAP System? Can't we use web controls in SAP system ?
    Help me in this regard.

    Hi All,
    i have the same issue on crystal report add-ins. Have you able to solve this without upgrading our sap business one to the latest version or patch level? Please see details below.
    OS: MS Windows 7 SP1
    SAP Business One 8.82 pl7
    Crystal report 2011
    Crystal report integration package installed under B1_SHare/Client
    But still the problem persist on the workstation.
    Please help me solve this problem.
    Thank you,
    ana

  • How to change the encoding value in jdom?

    When I create a new xml file by using jdom, the encoding value of xml is "UTF-8"
    (<?xml version="1.0" encoding="UTF-8"?>).
    How can I change encoding value to "big5"??
    Thanks

    Use this method (JDom API)
    XMLOutputter.setEncoding(java.lang.String encoding)
    Regards,
    Darren

Maybe you are looking for

  • No access to BIOS on W530 after W7 64bit installation | W7 boots and works fine

    Hello L'users My fancy problem with my W530 DOS machine 2441-B32. Age: 2 weeks. Bios was current (1.11) when I started installing W7 64bit. Before installation, I changed the BIOS setting to UEFI. OS Installation seems to be fine, no error messages f

  • Cannot Play Music Out of My Ipod Stereo

    Hello. I have a major problem. If anyone can shed light onto this problem it would be much appreciated. I have a Phillips stereo which is made for Ipod, and it also acts like a docking station which chrages the ipod aswell, now I had an Ipod classic

  • Purchased ringtones,can't figure out how to install them

    can anyone give me step by step instructions on how i install these things?? i was able get as far as the message options & tapped save attachment & that as far i i got,can't figure out the rest.

  • Sequence settings ratio error - project ruined?

    Hi all. Am new to video editing but an old hand at Cubase, Logic etc, so was able to pick up Final Cut quite quickly, and have just finished editing my first vid. However, think I may have made something of a faux pas regarding resolution. The raw fo

  • Mantain state of hide show region

    hi to all, have someone been able to modify hide / show region to mantain state? This would be a great and if nobody has found a way, this would be really nice to have in next apex release. thanx