How to set an excellent type of cell as a text instead of general using owa_util?

Hello

I'm generating a csv file by using the following code. But when I open the file using excel, it excludes from 0 and also converts the cells in scientific format. I'm genrating the file using values from database table and I want the file exactly with the same values. I browsed a few forums and found that if I could convert the type of cell from the general text it will keep the values exactly how he got. I have no idea how to do that.

Please notify.

Code:

Declare

output_header varchar2 (4000);

fichier_en_sortie VARCHAR2 (255);

Varchar2 (2) EOL: = Chr (13) | Chr (10);

BEGIN

output_header: = q'~ ADBOR_ID, ID of path ~' | EOL;

fichier_en_sortie: = 'report ' | ". CSV';

owa_util.mime_header ("application/octet ', false");

HTP.p ('Content-Disposition: attachment; filename = "" | ") fichier_en_sortie |' « ') ;

owa_util.http_header_close;

HTP. PRN (output_header);

for r in)

Select ADBOR_ID, from my_table Path_ID) LOOP

HTP. PRN (r.ADBOR_ID|) «, » || r.Path_ID | EOL);

END LOOP;

END;

-Compare the results-

Entry effective from my_table from database. ADBOR_ID: 0296221924

Output in csv (default cell type General): 296221924

It's the scientific format also round the number like this:

Real From my_table of database entry. Path_ID: 5878778827826

Output to csv()default cell type General(): 5.87878E + 12

Just prepend the numeric values with an apostrophe.

Test in a file and when you load the file in excel, you will see that it is treated as text.

Tags: Database

Similar Questions

  • How to set default cell format 'text' instead of 'general' sheet in excel using pl/sql code?

    Can someone please help me on how to generate excel file using pl/sql? I have generated csv files successfully, but now I need to generate a excel. I changed the code generation of the csv file, but the file gives me error when opening:

    "The file you are trying to open,"XXXX.xls", is in a different format than specified by the file extension. Do you want to open it now? »

    If I choose Yes then open the excel file, but it excludes the leading 0 in the front for one my column. How do I configure excel type default column as text rather than General, when you create the files? I also tried to generate excel file using xml. But I do not know how to set the type of column there, too. I'm using Oracle 11.2.0.3.0 and APEX 4.2.6.00.03. I'll call all these codes apex.

    Code1 is used:

    Declare

    output_header varchar2 (4000);

    fichier_en_sortie VARCHAR2 (255);

    Varchar2 (2) EOL: = Chr (13) | Chr (10);

    BEGIN

    output_header: = 'tls_tracking_id ' | Chr (9) | ' fnn_ext' | Chr (9) | "path_id' | EOL;

    fichier_en_sortie: = 'report_excel' |'. XLS;

    owa_util.mime_header ("application/octet ', false");

    HTP.p ('Content-Disposition: attachment; filename = "" | ") fichier_en_sortie |' « ') ;

    owa_util.http_header_close;

    HTP. PRN (output_header);

    for r in)

    Select tls_tracking_id, fnn_ext, DWD_DTOV_OUT_VW path_id

    where nbn_loc_id = 'LOC000138413115. '

    The order of tls_tracking_id LOOP)

    HTP. PRN (r.tls_tracking_id

    || Chr (9) | r.fnn_ext

    || Chr (9) | r.path_id

    || EOL

    );

    END LOOP;

    END;

    Code2 used :

    create or replace PACKAGE BODY IS pkg_excel_export

    PROCEDURE excel_open (l_xml_body IN OUT NOCOPY CLOB) IS

    BEGIN

    l_xml_body: = ' <? XML version = "1.0" encoding = "ISO-8859-9"? > ' | Chr (10) |

    "< workbook xmlns =" "urn: schemas-microsoft - com:office:spreadsheet" ' | "

    Chr (10) |

    ""xmlns:o ="urn: schemas-microsoft-com ' ' |

    Chr (10) |

    "xmlns: x =" "urn: schemas-microsoft-com: excel" ' | "

    Chr (10) |

    ""xmlns:ss ="urn: schemas-microsoft - com:office:spreadsheet" ' |

    Chr (10) |

                            'xmlns:html=" http://www.w3.org/TR/REC-html40 ">' ||

    Chr (10) |

    ' < ExcelWorkbook xmlns = "urn: schemas-microsoft-com: excel" > ' |

    Chr (10) | ' < WindowHeight > 8580 < / WindowHeight > ' |

    Chr (10) | ' < WindowWidth > 15180 < / WindowWidth > ' | Chr (10) |

    ' < WindowTopX > 120 < / WindowTopX > ' | Chr (10) |

    ' < WindowTopY > 45 < / WindowTopY > ' | Chr (10) |

    ' < ProtectStructure > false < / ProtectStructure > ' | Chr (10) |

    ' < ProtectWindows > false < / ProtectWindows > ' | Chr (10) |

    ' < / ExcelWorkbook > ' | Chr (10) | "< Styles > | Chr (10) |

    '< ss:ID of style = 'Default' ss:Name 'Normal' = >' | Chr (10) |

    "< ss:Vertical alignment = 'Bottom' / >" | " Chr (10) |

    ' < borders / > '. Chr (10) | ' < police / > '. Chr (10) |

    ' < Interior / > '. Chr (10) | ' < NumberFormat / > '. Chr (10) |

    ' < protection / > '. Chr (10) | "< / style > | Chr (10) |

    '< ss:ID of style 's22' = >' | Chr (10) |

    "< x: font family = ss"Swiss":"BOLD"="1"ss:Underline ="Single"/ >" | "

    Chr (10) | "< / style > | Chr (10) | "< / style >";

    END excel_open;

    PROCEDURE excel_close (l_xml_body IN OUT NOCOPY CLOB) IS

    BEGIN

    l_xml_body: = l_xml_body | ' < / workbook > ';

    END excel_close;

    / * Opens a worksheet in the Excel file. , You can open multiple worksheets. **/

    PROCEDURE worksheet_open

    (

    l_xml_body IN OUT NOCOPY CLOB,

    p_worksheetname in VARCHAR2

    ) IS

    BEGIN

    --

    -Create the worksheet

    --

    l_xml_body: = l_xml_body | "' < worksheet ss:Name = ' ' | p_worksheetname |

    "" > < table > ";"

    END worksheet_open;

    / *Farm the worksheet in the Excel file.   **/

    PROCEDURE worksheet_close (l_xml_body IN OUT NOCOPY CLOB) IS

    BEGIN

    l_xml_body: = l_xml_body | ' < / table > < / worksheet > ';

    END worksheet_close;

    / *Opens the tag line * /

    PROCEDURE row_open (l_xml_body IN OUT NOCOPY CLOB) IS

    BEGIN

    l_xml_body: = l_xml_body | "< row >."

    END row_open;

    / *Farm the tag line * /.

    PROCEDURE row_close (l_xml_body IN OUT NOCOPY CLOB) IS

    BEGIN

    l_xml_body: = l_xml_body | "< / row > | Chr (10);

    END row_close;

    / *After the opening of the line, we can write something the first cell* /

    PROCEDURE cell_write

    (

    l_xml_body IN OUT NOCOPY CLOB,

    p_content in VARCHAR2

    ) IS

    BEGIN

    l_xml_body: = l_xml_body | ' < cell > < data ss:Type = "String" > ' |

    p_content | ' < / data > < / cell > ';

    END cell_write;

    / * If you use this package of APEX, you get to download the excel file. **/

    PROCEDURE excel_get

    (

    l_xml_body IN OUT NOCOPY CLOB,

    p_filename in VARCHAR2

    ) IS

    XX BLOB;

    make the NUMBER;

    This NUMBER;

    BC NUMBER.

    LC NUMBER;

    w NUMBER;

    BEGIN

    DBMS_LOB.CREATETEMPORARY (xx, TRUE);

    make: = 1;

    so: = 1;

    BC: = dbms_lob.default_csid;

    LC: = dbms_lob.default_lang_ctx;

    w: = dbms_lob.no_warning;

    DBMS_LOB.converttoblob (xx,

    l_xml_body,

    DBMS_LOB.lobmaxsize,

    do,

    Thus,.

    British Colombia,

    LC,

    (w);

    owa_util.mime_header ("application/octet ', FALSE");

    -set the size so that the browser knows how to download

    HTP.p ("Content-length: ' |") DBMS_LOB.GetLength (xx));

    -the name of the file will be used by the browser if users only one save as

    HTP.p ('Content-Disposition: attachment; filename = "" | ") p_filename |

    '.xls ' | '"');

    -close the headers

    owa_util.http_header_close;

    -Download the BLOB

    wpg_docload.download_file (XX);

    END excel_get;

    END pkg_excel_export;

    I know it's a bit long code, but to better understand please consider...

    Thank you.

    I did worked putting just one extra line in my l_xml_body in the XML (Code 2 used). Now my excel generates with cells type 'Text' and there are no left falling to zero. Also the columns display not scientific format as 2.3D + 12. Current recording shows without default formatting.

    '

  • How to set remote spaced further icon to display more text for the name below?

    Windows 7 desktop has many icons with similar names. I want that name under the icon. How to set remote spaced further icon to display more text for the name below?

    Right-click on the desktop and select Personalize.

    Select the color of the window

    Select the appearance settings advanced.

    Select the drop down next to the element

    Go down and select icon spacing (Vertical)

    change spacing next to size according to the needs.

  • How to set up excel column width

    I use the ExcelRpt_SetCellRangeAttribute function to set the width of a cell in excel.

    What vale I should switch to set the width for example 50, I tried to transmit values, but his does not work.

    After passing the values'm specifying the column containing the cell is hidden.

    pls help me

    Hello!

    I modified the sample project "excel2000dem.prj" come with the installation of LabWindows/CVI to see if I can adjust the width of the column that you have requested.

    Following the partial code successfully set the column width to 15.0 points in MS Excel 2003.

    //----------------------------------------------------------------------------------------------------------------------------------------------------------------------

    #define EXCEL_ARRAY_OF_CELLS "A2:H11".

    ...

    public static ExcelObj_App ExcelAppHandle = 0;
    public static ExcelObj_Workbooks ExcelWorkbooksHandle = 0;
    public static ExcelObj_Workbook ExcelWorkbookHandle = 0;
    public static ExcelObj_Window ExcelWindowHandle = 0;
    public static ExcelObj_Sheets ExcelSheetsHandle = 0;
    public static ExcelObj_Worksheet ExcelWorksheetHandle = 0;
    public static ExcelObj_Range ExcelRangeHandle = 0;

    public static MyCellRangeV VARIANT;

    ....... (I assume that you have an open Excel application and an active workbook already)...

    {

    Get the sheets in the active workbook
    error = Excel_GetProperty (ExcelAppHandle, NULL, Excel_AppSheets, CAVT_OBJHANDLE, & ExcelSheetsHandle);
                   
    Get the first worksheet
    error = Excel_SheetsItem (ExcelSheetsHandle, NULL, CA_VariantInt (1), & ExcelWorksheetHandle);
           
    The first sheet Active - should already be active
    error = Excel_WorksheetActivate (ExcelWorksheetHandle, NULL);

    New range open to the worksheet
    error = CA_VariantSetCString (& MyCellRangeV, EXCEL_ARRAY_OF_CELLS);
    error = Excel_WorksheetRange (ExcelWorksheetHandle, NULL, MyCellRangeV, CA_DEFAULT_VAL, & ExcelRangeHandle);

    Make the range Active
    error = Excel_RangeActivate (ExcelRangeHandle, & ErrorInfo, NULL);

    Set column width
    error = Excel_SetProperty (ExcelRangeHandle, & ErrorInfo, Excel_RangeColumnWidth, CAVT_DOUBLE, 15.0);

    ..........
    }

    //-----------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Let us know if it works for you.

  • How to set the pixels for the softer - edge, in a design? I use PhspCS5 TRIAL grateful for help!

    First of all, I'm not a rather advanced digital artist know the tools of basic (a bit) and I'm pretty good with those who, over the years, however, have a new Mac and better

    visibility for sure and an ASSESSMENT of PSHP CS5 Extended version; what I'm asking is: how to set the pixels... to achieve the softer contour for example. I have

    greeting card templates and is now working on a Christmas tree, with gold stars, they better look (vy-light = blk) but when I ZOOM IN I see the ' wavy lines

    pixels, which appear on the 'place '.  I would like to know how to set the pixels * 1 # and then with respect to colors, when I take a yellow (there are many! yellow!)

    and use my Intuos "tap tap tap" pen drawings (yellow), it does NOT save... (he did it on my other computer and CS4 more aged).  So going

    back to my swatches of color, of... .remember just what yellow I took... ha ha... can be: "not so fast!"

    I buy this subscription at the end of the trial and my bet is that the color picker / working on the purchased version when I "tap tap" to pick up the

    same color II had chosen.  Wouldn't it be good to have a monitor of sorts that says you, what color (s) is used when you need to know, to go

    on the 'design' say after a break for tea, etc.  ?????  (    :

    I save my drawings when facts JPEGs and see now, there's a JPEG 2000... I don't know what it is all about.  I save pdf (1) and a jpeg.  Hope that this sounds

    like what we "do"... When we know much more than me.

    And finally, what program or tool, can a use to put a 'framework' (border) around an eg: 5 x 7 design (again, my goal is for my greeting cards designs.  Are there

    another of Adobe products, I would have to do this.  Free hand has not worked so well, so far.

    I'm in advance, so grateful to you - anyone you may, for your help.  I'm on my way 'Hooray' last now in the hope of success soon... I am a senior of 71

    and so feel I have to really "go there" and learn these basics to ensure my chances of success, at least. Thank you, thank you & thank you! CDW

    Please post in the Photoshop forum.

    http://forums.Adobe.com/community/Photoshop

    Bob

  • How can I add white space between areas that contain text fields? I use Adobe Acrobat Pro DC 2015.  I'm trying to change an existing PDF. I need to add white space between areas that contain text fields to allow these text fields to be developed and not

    How can I add white space between areas that contain text fields?

    I use Adobe Acrobat Pro DC 2015.

    I'm trying to change an existing PDF. I need to add white space between areas that contain text fields to allow these areas to be developed and do not overlap the text and the text below fields.

    For example:

    1. 1.

    Progress/strategies:

    1. 2.

    Progress/strategies:

    1. 3.

    Progress/strategies:

    1. 4.

    Progress/strategies:

    The space between each 'progress/strategies' increasing needs. A text field is under each of them. If it's a Word doc, I could just press on enter. What is the best way to do this with Adobe Acrobat Pro DC?

    There is no easy way to do it. You need to move the text fields more apart and if there are static elements, then you will need to use the tool edit text & Images to move them, separately.

  • How to set the alignment of the cell

    Hello
    Please how to fix the alignment(vertical/horizontal) for the cell. Below the code does not have effect.

    -------
    ARG: = ole2.create_arglist;
    OLE2.add_arg(ARG,1);
    OLE2.add_arg(ARG,1);
    Cell: = ole2. Get_Obj_Property (Worksheet, 'Cells', ARG);
    OLE2.destroy_arglist (ARG);
    OLE2.set_property (Cell, 'Veritcal', 'center');
    --------
    Iqbal

    . HorizontalAlignment = xlGeneral
    . VerticalAlignment = xlTop

    Here, the constant xlTop and xlGeneral are used. I guess they are numeric constants. A quick search for "excel xlTop" in google leads to a link where this code is provided

    var xlTop =-4160;

    -ole2.set_property (Cell, 'HorizontalAlignment', 'xlGeneral');
    OLE2.set_property (Cell, 'VerticalAlignment', 'Top');

    You assign strings here, it's totally different, so maybe try

    ole2.set_property(Cell,'VerticalAlignment',-4160);
    
  • How to set up a type of thermocouple in FPGA on cRIO 9074 + modules 9211

    Hi all.

    Could someone displays an example of VI pour set the type of a module 9211 thermocouple mounted on a cRIo9074 + ethercat 9144.

    After several searches on the forum or in the various labviews, I have nothing concrete to this topic.

    FYI, I realize a project to track T ° on a machine using the cRIO 9074 + ethercat with display on a Touch Panel (touch screen).

    All scan mode in works well. Plug-in of the shared variables to send different surveys on a corporate network so that the Panel button can display this information. A remote PC of supervision may also fetch the info.

    My problem today is to be able to choose the type of thermocouple perono LUN VI without having to him by ironing my project and deployment of my modules after changes.

    Thanks in advance.

    Thanks for the reply.

    I had already seen this example but I thought that there was some chose more "simple".

    I'm going to use up to 9 modules 9211, which will fatten the VI but it should go.

    Thanks again.

  • How to set the date type date of work

    This is perhaps a silly question, but I can't seem to get the data type date to work for a member account. When I go to the planning application and choose an account I want to put in a date entry account, the web form seems to show that the setting of the date works for the account. I even put my account type to be saved hypothesis. For example, I expect to see the date formatted in 10/20/2009 when I enter this value in the web form under my account "Hire Date". I also checked the display options in the preferences of planning. If anyone knows if this function works even on 9.3 or 11.1?

    Hello

    Looks like you have not defined the order of evaluation of Auditors. Administration > Dimensions > evaluation order > select plan type > moving accounts to another window, apply.
    Try the form again.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • How to set the message type to PIN_MESSAGE?

    I made a custom messaging application, while creating / writing a message, by default it is considered Message.EMAIL_MESSAGE. But now, I need to create a Message.PIN_MESSAGE!

    Session session = Session.getDefaultInstance();
    Store store = session.getStore();
    // WHERE TO SAVE THE SEND MESSAGES
    Folder[] folders = store.list(Folder.SENT);
    Folder sentfolder = folders[0];

    net.rim.blackberry.api.mail.Message msg = new net.rim.blackberry.api.mail.Message(sentfolder);

    Hello

    Maybe you have to add the address as PINAddress and therefor the PIN_MESSAGE indicator is set

    by system? Have a try like that...

    Kind regards

    Jochen

  • How to change the encryption type M252dw printer WPA2 (WPA - PSK) for the WPA used by the router?

    We had to change the type of encryption on our WPA2 WiFi router (LAN setup origin, on which to install and successfully used our M252dw printer) and use simple WPA, to solve some other problems of connectivity.

    NOW, the HP printer, we have (M252dw) apparently does not automatically reset the encryption type.

    Apparently, he has no way to automatically start "from scratch" when connecting to the new configuration of router.

    Even with ALL the rest on the LAN works fine and speaking well, including WiFi laptops and smart phones, the HP printer sees the new name of WiFi SSD connects to the router in order to attempt a connection, accepts the new password WPA, but RETAINS THE WPA - PSK PARAMETER OF CONFIGURATION PREVIOUS.

    We know, because after that the printer fails to connect, print the network SHOWS Test report this known problem in the paragraph of the resolution of the problems, but worthless advice said to "run the setup of wireless network for re - enter your network WPA wireless security password. The WPA authentication on your HP printer has been changed from the default setting. This can cause problems connecting to your wireless network, if your wireless router does not use the same breed of WPA authentication.

    Well, DUH.

    Mind you, there is NOTHING in the post above that says:
    1) go to "this" menu item.

    2) click "this" option to change the encryption method.

    (3) select the method (SSID, WEP, WPA, WPA2) that corresponds to your router.

    ... because... There seems to be NO option ANYWHERE in ANY menu that offers this choice.

    HE DIDN'T THERE HAS NO BUTTON, OPTION, SELECTION, OR ADVICE IN THE MANUAL TO RESET OR CHOOSE WPA!

    There is a checklist wonderfully unnecessary, repeated throughout your manuals and on the site, basically saying

    ' Check the type of printer encryption (WEP, WPA, WPA2, etc.) corresponds to the router.

    Well well... What do you do when you KNOW that it IS NOT?

    Thanks to try at least, I appreciate it.

    Unfortunately, it did not work;

    but it leads to find the answer for later use.

    Summary -

    After selecting
    Printer flow treatment and deleted the saved connection data, an IPv4, subnet mask and default gateway address (router address IPv4) and IPv6 turned power on.

    Then... I did this:

    (1) Went back to and IPv6 turned to back, leaving only ON IPv4.

    2) went back to and returned once again the preferred settings.
    Address: 192.168.254.250

    Mask: 255.255.255.0

    Default gateway: 192.168.254.254

    3) reinforced by the "Wizard" where he immediately found the SSID of the wireless router.

    (4) select the SSID of the router

    (5) when it is asked for the password (which is actually just a 'word' with WPA pass) I got that.

    (6) given the printer attempts to connect and failed.

    WPA - PSK same listed, even noted on the test report from network once more.

    Therefore, no chance after Restore Defaults.

    It really would have been nice if HP had made sure this option actually actually reset * ALL * default settings, including the wiping WPA2 security type.

    (Just for reference, the DHCP range is set to 192.168.254.15 - 192.168.254.47, so that the fixed IP addresses assigned, like this printer, you can assign DHCP to be defined to ensure no changes outside.

    This printer is the FIRST device assigned a fixed IP address, to make sure that nothing else can come into conflict with the IP address and eliminate it as a cause as possible.)

    OK - so after your suggestion, I am inspired to re - enter the menu and look at it again.

    I had already looked through what I have and not able to find the submenu I thought that has been included by HP...

    .. .or I would expect a user was manually choose method/type of security encryption (SSID, WEP, WPA, WPA2)

    .. .or at least handed to "REMOVE/RESET/nothing: Please ask the next router you are trying to connect to use"

    One thing I found there is the option that resembled what I wanted now:

    That seemed to be the best thing after trying to 'Network Defaults' so I did.

    Then did a not through all the steps above, 1-6...

    * SUCCESS *.

    ALSO: The printer is already running on each PC had to be "retired" in Windows

    -According to the right

    -Then follow up

    -Waited for printer not found, click it, and then select

    Thank you HP - I just needed to find out who Reset was correct.


    Now - I humbly suggest stating that in the manual.

    Under the line "Verify encryption type corresponds to router", you could add something simple like:

    "IF it isn't, then select and your printer will automatically ask the next router you are trying to connect with and correspond to this type of encryption."

  • How to set the vlan native on a virtual machine in vSphere when you use the 1000V?

    Using the General switch original vSphere, we put VLAN native by VM by setting the VLAN 0 d.

    How do we set VLAN native for a virtual machine, if the virtual computer is connected to a 1000V? I heard that is over, we can use VLAN ID 0?

    Same way as you would on any Cisco switch.

    Add this command to your profile of uplink port:

    switchport trunk vlan native X

    Keep in mind there is no VLAN 0.  VLAN '0' is just how vmware means the VLAN untagged.  There are valid in accordance with the standard 1-4095.

    Kind regards

    Robert

  • How to change the media type of ringtone to your text in iTunes

    I made a ringtone in GarageBand and put it on iTunes. She is very short (4 seconds) and I want it classify as a 'your text', but when I go to "Get Info", it may only rank as "ringtone". Is there a way to fix this?

    There are now only of tones.

  • ForEach: How to set the default value of a command link text while

    Hi all

    I use Jdev 11.1.1.7

    I have a page with 2 foreach

    <af:toolbar id="t1" inlineStyle="border:1px solid #bfc6c9;border-radius:2px;border-right:0px;">
                <af:forEach items="#{pageFlowScope.pbPagePovDetails}" var="page" varStatus="index">
                  <af:panelGroupLayout id="pgl5" layout="vertical">
                    <trh:tableLayout id="tl1" cellPadding="0" cellSpacing="0" halign="center">
                      <trh:rowLayout id="rl1">
                        <trh:cellFormat id="cf2" inlineStyle="border-right:1px solid #bfc6c9;padding:3px;height:38px;">
                          <af:panelGroupLayout id="pov_pgl3" layout="vertical" inlineStyle="padding:5px; border-color:ActiveCaption;min-width:125px;">
                            <af:panelGroupLayout id="dc_pgl6" layout="horizontal"
                                                 rendered='#{pageFlowScope.settingsDimLabel eq null or pageFlowScope.settingsDimLabel eq "Show Dimension Name"}'
                                                 inlineStyle="font-weight:bold;">
                              <af:commandLink text="#{page.dimName}" id="dc_cl1" actionListener="#{pageFlowScope.HspPovBarBean.openMSFromDimension}" rendered="#{page.axisType==3}"/>
                              <af:outputText value="#{page.dimName}" id="ot1" rendered="#{page.axisType==2}"/>
                            </af:panelGroupLayout>
                            <af:panelGroupLayout id="dc_pgl9" layout="horizontal" rendered='#{pageFlowScope.settingsDimLabel eq "Hide Dimension Name"}' inlineStyle="height:10.0px;">
                              <af:spacer width="10" height="11" id="dc_s5" inlineStyle="font-size:small;"/>
                            </af:panelGroupLayout>
                            <af:panelGroupLayout id="dc_pgl7" layout="horizontal">
                              <af:forEach items="#{page.memDetail}" var="mem">
                                <af:outputText value="#{mem.memName}" id="ot2" rendered="#{page.axisType==2}" inlineStyle="font-size:smaller;"/>
                                <af:commandLink id="dc_cl2" text="#{mem.memName}" actionListener="#{pageFlowScope.HspPovBarBean.openMS}" inlineStyle="font-size:smaller;"
                                                rendered="#{page.axisType==3}"/>
                              </af:forEach>
    
    
                              
                            </af:panelGroupLayout>
                          </af:panelGroupLayout>
                        </trh:cellFormat>
                      </trh:rowLayout>
                    </trh:tableLayout>
                  </af:panelGroupLayout>
                </af:forEach>
              </af:toolbar>
    

    His work as expected, but then the text is displayed in #{mem.memName} I want to manipulate this value.

    To do this, I created a variable at the bean

    public class HspPovBarBean{
    
    String memDisplay=null;
    
    
    public String getMemDisplay(){
    memDisplay = (String)resolveExpression("#{mem.memName}");
    memDisplay += ",";
    return memDisplay;
    
    }
    

    But I'm unable to get the value of memDisplay as its null.

    Please let me know if this isn't the correct way to this defect.

    Thank you

    ASHA as


    ASAS

    You can do it directly in the af: outputText

    or in the link or everywhere where you need to display the additional «»

    Timo

  • How can I write in a table cell (row, column appear) in a databae?

    How can I write in a table cell (row, column appear) in a database using LabVIEW Database Toolkit? I use Ms Access. Suppose I have three columns in a table, I write 1 row of the 1st column, then 1st rank of the 3rd column. The problem I have is after writing the 1st column of 1st row, the reference goes to the second row, and if I write in the 3rd column, he goes to the 2nd row 3rd column. Any suggestion?

    When you perform a SQL INSERT command, you create a new line. If you want to change an existing line, you must use the UPDATE command (i.e. UPDATE tablename SET column = value WHERE some_column = some_value). The some_column could be the unique ID of each line, date and time, etc.

    I don't know what is the function to use in the Toolbox to execute a SQL command, since I do not use the Toolbox. Also, I don't understand why you don't do a single INSERT. It would be much faster.

Maybe you are looking for