Select list width and printing output

Hi,
Can anyone tell me how to set the width of a SELECT LIST control? I have tried to set but it is always dynamic and depends on the width of the data items of the list which are supposed to be displayed. Can i fix the width, jsut like simple text field.
I want to print a text from my pl/sql procedure on the web page from where i am caling the procedure. I tried using DBMS_OUTPUT, but vain. I actually want to print a customized error message on my web page at the occurrence of any exception.
Thanks
Salman

Unfortunately it is not working. I have following exception block in my procedure. control will transferred to the exception block if my query to remote database failed over the database link which this procedure just created.
WHEN OTHERS THEN
BEGIN
htp.p ('Database connect information incorrect, please provide correct database connection information');
EXECUTE IMMEDIATE 'DROP database link '||p_db_name;
END;
But, i don't see this message printed on my web page. Instaed, i see exception thrown by the the calling procedure of this procedure which also queried over the same database link.
Thanks

Similar Messages

  • Select list width

    Hi,
    how can I make 'select list' width smaller (strings in list are long)? Setting 'width' and 'maxWidth' properties doesn't show any result?
    thanx
    alek_mil

    Go to HTML Form Element Attributes of the select list and try to enter something like:
    style="width:190px"
    This will control the width as you want.
    Denes Kubicek

  • I'm trying to print from a full size 30x42 pdf of an AutoCAD file.  I only want to print an 8 1/2 x 11 portion, in scale.  How do I select the window and print in scale on my 8 1/2 x 11 printer?

    I'm trying to print from a full-size, 30x42 pdf of an AutoCAD file.  I only want to print an 8 1/2 x 11 portion, in scale.  How do I select the window and print in scale on my 8 1/2 x 11 printer (Brother MFC-9340CDW)?

    You might be better off contacting an AutoCAD support group.

  • Notes won't let me export all my notes at once. I have to select each one and print/export them. Is there a way to select all and have them export as a PDF?

    Notes -Export Question:I have to select each Note  and print/export them. Is there a way to select all the notes and have them export as a PDF

    http://www.igeeksblog.com/export-notes-in-mac-os-x/
    A friend found this for me, I searched SO MANY HOURS but somehow never found this on my own. I love it. It's a download of an app called "Notes Exporter" YAY

  • Help with select list item and dynamics action

    G'Day Apex Gurus,
    I having problems trying to achieve to trigger the help window of a select item automatically. A help window is triggered when the select item label is clicked but my client would like to be triguered automatically as soon as the user click to see the options in the select list.
    I think that I should be able to do it with dynamic actions but I can not get it to work.
    I know when someone click on the label of the select list item trigger this JavaScript
    javascript:popupFieldHelp('277938589795252851','1545903379570909')
    So I want to trigger the javascript also when the user click of the select list item and pull down the options and for that I think that Dynamic actions is the way to go but I can't get it right.
    This is what I a doing:
    I created a Dynamic option as follow:
    Name : test
    Sequence: 30
    Even: Click
    Selection type: Item(s)
    Item(s): P1_RATING <- a selection list item
    Condtion: - No Condition -
    True Actions
    Sequence: 10
    Action : Execute JavaScript Code
    Fire when event result is :True
    Fire on page load: ticked
    Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')
    I appreciate any one who can tell me what i am doing wrong here or provide a solution to my problem of achieving to trigger the help window of a select item automatically.
    Kind regards
    Carlos

    Hi Carlos,
    I set up a test case in exactly the same way and it worked fine for me. I created a page item called P1_DA_DEMO and added some static select list values then added some help text. The settings I used are below, I suggest you try again but also make sure you have no other Javascript errors on the page. Use a tool like firebug to check.
    Name : Dynamic Action Demo
    Sequence: 10
    Even: Click
    Selection type: Item(s)
    Item(s): P1_DA_DEMO <- a selection list item
    Condtion: - No Condition -
    True Actions
    Sequence: 10
    Action : Execute JavaScript Code
    Fire when event result is :True
    Fire on page load: Not Ticked
    Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')
    Event Scope set a s Bind.
    Thanks
    Paul

  • Bug in PDF and print output with gradients?

    I've got a document that makes use of a gradient fill in a table, and I find that (at least for the < 2pt border widths) the border has a thin white line to either side. It shows up readily in both the print and PDF outputs. Is this a known issue? Where can I file a bug for it? I'm using iWork 6.0 with the latest patches applied. This all worked and looked fine under iWork 5.0. :-(
    <br>
    PowerMac G5   Mac OS X (10.4.7)  

    What are you using to view/print the pdf's?
    Make sure you have the latest Adobe Reader, found
    here:
    Adobe - Adobe Reader - Download
    I'm using Preview. I did check it using Acrobat reader on Windows, and the problem still exists. I suspect there was an error made (by Pages) computing the edge of the rectangle for the gradient. It renders correctly in iWork '05.
    -John

  • CP5 and Print output

    I'm packaging some PPTs used for ILT using Captivate.  The package is going to include an .exe version and two handout versions.  One for students and one for instructors.  Has anyone attempted to add or modify the templates for the print output?
    I've just tried to use the Handout Template and it has everything scrunched in the center of the page. 
    When I use this as a handout for students I'd like the graphic more over on the left and more room for longer lines on the right for student notes.
    I'd also like to use the handout format with the slide notes for an Instructor's Handout.
    Any help would be appreciated.
    Thank you,
    Susan

    Susan then asked, "Since I've not written macros do you have a good source for learning how?" and I sent the following reply:
    "Try this link as a starting point: http://msdn.microsoft.com/en-us/library/dd721892(v=office.12).aspx
    However, I must forewarn you, to customize your Captivate documentation your macros will probably need to manipulate images, resizing and/or repositioning them. For that, you will need to learn how to use Visual Basic for Applications (VBA) to manipulate Microsoft Word's "Shapes" and "InlineShapes" collections. Initially, all the slide images in the Word document that Captivate produces are inline shapes, attached to the Word paragraph in which they occur. You can resize an inline shape, but you can't reposition it directly. You can either adjust the position and alignment of the paragraph to which it is attached, or you can convert it to a regular Shape whose position can be controlled independently of nearby text. The following procedure is one I use to position the first slide by itself on the first page of the Word document:
    Sub FloatPicture1()
        Dim iSlideCount As Integer
        Dim oILS As InlineShape
        Dim oFloatingShape As Shape
        iSlideCount = ActiveDocument.InlineShapes.Count ' this line just shows you how to find total number of pics in the document
        Set oILS = ActiveDocument.InlineShapes(1) ' this line sets up a convenient reference to the first picture in the InlineShapes collection
        With oILS ' the "With" to "End With" block lets us do multiple actions on the referenced object
            .Select ' If we hadn't done the "Set oILS" and "With oILS" steps, we would have had to type this line in full as:
                        ' ActiveDocument.InlineShapes(1).Select
                        ' and the following line as Set oFloatingShape = ActiveDocument.InlineShapes(1).ConvertToShape
            Set oFloatingShape = .ConvertToShape
        End With
        With oFloatingShape ' Now that we have floated the shape, we can set its position
            .RelativeVerticalPosition = wdRelativeVerticalPositionPage           ' these settings control how word will interpret
            .RelativeHorizontalPosition = wdRelativeHorizontalPositionPage    ' the .Left and .Top values that follow.
            .Left = CentimetersToPoints(2)
            .Top = CentimetersToPoints(6.5)
        End With
        Set oILS = Nothing ' just some VBA housekeeping here, now that we have finished with these objects
        Set oFloatingShape = Nothing
    End Sub ' FloatPicture1"
    By the way, note that when we converted InlineShape #1 to a floating shape, that would have reduced the count of InlineShapes by 1, and what was previously InlineShape #2 is the new #1. Your code may sometimes need to take that change of numbering into account.
    Trevor

  • How Do I Filter a Report Using a Multi Select List Box and Specifying Date Between Begin Date and End Date

    Hope someone can help.  I have tried to find the best way to do this and can't seem to make sense of anything.  I'm using an Access 2013 Database and I have a report that is based on a query.  I've created a Report Criteria Form.  I
    need the user to be able to select multiple items in a list box and also to enter a Begin Date and End Date.  I then need my report to return only the records that meet all selected criteria.  It works fine with a ComboBox and 1 selection but can't
    get it to work with a List Box so they can select multiple items.  Any help is greatly appreciated while I still have hair left. 

    The query should return all records.
    Let's say you have the following controls on your report criteria form:
    txtStart: text box, formatted as a date.
    txtEnd: text box, formatted as a date.
    lbxMulti: multi-select list box.
    cmdOpenReport: command button used to open the report.
    The text boxes are used to filter the date/time field DateField, and the list box to filter the number field SomeField.
    The report to be opened is rptReport.
    The On Click event procedure for the command button could look like this:
    Private Sub cmdOpenReport_Click()
    Dim strWhere As String
    Dim strIn As String
    Dim varItm As Variant
    On Error GoTo ErrHandler
    If Not IsNull(Me.txtStart) Then
    strWhere = strWhere & " AND [DateField]>=#" & Format(Me.txtStart, "yyyy-mm-dd") & "#"
    End If
    If Not IsNull(Me.txtEnd) Then
    strWhere = strWhere & " AND [DateField]<=#" & Format(Me.txtEnd, "yyyy-mm-dd") & "#"
    End If
    For Each varItm In Me.lbxMulti.ItemsSelected
    strIn = strIn & "," & Me.lbxMulti.ItemData(varItm)
    Next varItm
    If strIn <> "" Then
    ' Remove initial comma
    strIn = Mid(strIn, 2)
    strWhere = strWhere & " AND [SomeField] In (" & strWhere & ")"
    End If
    If strWhere <> "" Then
    ' Remove initial " AND "
    strWhere = Mid(strWhere, 6)
    End If
    DoCmd.OpenReport ReportName:="rptMyReport", View:=acViewPreview, WhereCondition:=strWhere
    Exit Sub
    ErrHandler:
    If Err = 2501 Then
    ' Report cancelled - ignore
    Else
    MsgBox Err.Description, vbExclamation
    End If
    End Sub
    If SomeField is a text field instead of a number field, change the line
            strIn = strIn & "," & Me.lbxMulti.ItemData(varItm)
    to
            strIn = strIn & "," & Chr(34) & Me.lbxMulti.ItemData(varItm) & Chr(34)
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • Save Select List states and load it on reload

    Hi all,
    I have a form in which the user have to choose the values from 5 Select Lists connected with LOVs. If the user selects values in the first 3 lists, but in the fourth one the value which he/she looks for does not exist, the user clicks on a link "Other" opening a page where he/she can enter the value and this value is added to the corresponding LOV on close of the page. The problem is that on the main page the Select List is not updated. The page should be reloaded. And if the page is reloaded, all the values selected in the first three lists are gone and the user should select everything again.
    So the question is how to reload one select list keeping the selected values from the others?
    Thanks in advance.

    Hi Ivan,
    Have a look at: Re: ORA-20507: Invalid numeric value This allows you to create new records for a select list without leaving the page.
    Andy

  • Select Lists - Setting and Referencing (Using) the Select List variable

    I have (a login page and) 3 application pages (call them Day, Week, Month), each with similar selection lists and a chart. I have three requirements.
    1) When a new selection is made, the value of the selection list variable is updated --that is, it does what select lists do.
    2) I need to set the value of the Month selection list variable before the Month page is rendered for the first time -- I need to give it an initial value.
    3) When navigating from page to page, say from Month to Week or Day back to Month, I need to have the value of the selection list variable carried to the new page from the value on the previous page.
    It sounds simple to me -- something that one could do with an (global) application item. The logic would be like
    IF :Page_Name_Flag = 'Week' THEN -- staying on the Week page
      SELECT :WK_SelectList_Name INTO :GLOBAL_SelectList_Name FROM DUAL
    ELSE -- new pass on this page
      SELECT  :GLOBAL_SelectList_Name INTO :WK_SelectList_Name FROM DUAL
      SELECT 'Week' INTO :Page_Name_Flag
    END IF;But that doesn't work for me. The page's select list variable seems to be NULL sometimes causing the value of :GLOBAL_SelectList_Name to be set to null. Other times, the copy from the global variable to page select list varable doesn't seem to change the page select list variable.
    At http://apex.oracle.com/pls/apex/f?p=43250:101 (guest/Ima9Gue8t) is an example where I have each page's select list working (except on the initial visit to the page, where the select variable is null!!!). How can I get the select list value on the new page to sync with the value from the previous page?
    Thanks,
    Howard
    Edited by: Howard (DBA in Training) on Sep 18, 2012 11:53 AM

    I'm closing this because I got it to work. In the end, it worked as I had described above. There was some setting of the Select List variable, that I now have correct, that was incorrect before. I wonder what it was?

  • Dynamic Select List - XML and umlaut

    Hi, I've recently implement a dynamic select list as per [this thread|http://forums.oracle.com/forums/thread.jspa?threadID=327306], however it seems to break if I have any words containing an umlaut. I've tried setting the header on the Application Process to UTF-8 (OWA_UTIL.mime_header ('text/xml', FALSE, 'utf-8');) but it doesn't seem to make any difference. The word in particular giving me problems is Kühne - it's the only non english entry so far, but I would expect others in the future.
    Does anyone have any ideas how to allow this character to be parsed correctly? Short of using replace to check for this and every other possible character I'm not sure what else to do.
    Thanks

    Pete88 wrote:
    Hello
    I would like to create a dynamic select list where you can start entering a name and select list reduces with each character entered.
    E.g. A list of towns in the UK where you want to select London. This list is delay as normal and as start typing by the time you have entered “Lon” the list only has few names starting with “Lon”
    I expect I need a JavaScript to active this?Not in APEX 4.x. Use a Text Field with autocomplete item.

  • Export Table Output and Print Output differing

    I am trying to:-
    export a table to excel.
    print the table data.
    The output of the export and print are differing,the print does not capture the commandlink. The segment that I am using is :-
    <af:group>
    <af:commandToolbarButton text="Export" immediate="true"
    shortDesc="Export All Rows" icon="/images/table.png">
    <af:exportCollectionActionListener type="excelHTML" exportedId="t2"
    filename="export-tasks.xls" title="Export"
    exportedRows="all"/>
    </af:commandToolbarButton>
    <af:commandToolbarButton text="Print" shortDesc="Print" icon="/images/print.png">
    <af:showPrintablePageBehavior/>
    </af:commandToolbarButton>
    </af:group>
    I tried including rendered="#{adfFacesContext.outputMode eq 'printable'}" in the af:outputText for rows & columns in the table,however, as a result the data in the Tableitself was displayed incorectly.
    I got to know about rendered from the following thread Regarding printing a command link using <af:showPrintablePageBehavior>

    I've also exported the document to IDML - and I've unzipped that folder. I've read the information for the colour - there's only 1 reference to Rubine Red and that's giving the same percentages as the InDesign file.
    I don't know where the 2nd shade of pink is coming from.
    But I suspect that it's from the print driver itself.
    Also - just occured to me, I lost my PDF settings a while ago, InDesign crashed and the PDF defaults were missing - I dowloaded a copy of a set from someone on these forums through a google search.
    But I no longer have PDF x4 export option - where can I retrieve these.
    How can I restore the original PDF settings for InDesign?

  • HT204135 I have two Epson printers and one Canon printer. Why am I unable to access the same print options on my MacBook Pro as I could on mp PC i.e. select paper type and print quality?

    I have just purchased a MacBook Pro as my PC has finaly died.
    I have three Inkjet printers i.e. Epson Photo PX700W Epson Photo R340 and a Canon Pixma ip4600 which I connected to my Mac and the print drivers were automatically downloaded. Now when I print using any of the printers the functionality PC i.e. Choice of paper and print quality settings. Is this all I get when using the Mac OS lion or should the functionality be on a par with Windows?

    Depending on the application you are printing from, you may need to press the Show Details button in the print dialog to see all of the additional driver menus.
    The image below is for the extended print dialog of TextEdit and for a Canon MP990 printer. The Show Details button is on the bottom of the print dialog and will change to Hide Details when selected. And with the menu changed to Quality & Media, you have paper options and print quality settings.

  • Pass values fromSharePoint list multi-selection list box to Infopath Multi-selection list box and back

    Design overview:
    List A
    InfoPath Library - Form A
    SharePoint Designer workflow
    List A has a multi-selection column with multi-values.
    Form A has fields populated from the data in List A by using a data connection in the form.  I have a workflow that updates the values or creates a new item in List A. All fields work except the mufti-selection. The multi-selection has ;# separating
    the values and I am having trouble setting the list box properly(checking of the selecting values) instead it concats all values on one line. I basically need to get the multi-selection column from list 1  to show exactly in the Form A and be able to
    update the selection with the workflow. I can do this with single values with no problem. the multi-selection list is difficult. I read somewhere I can use a repeating table but I am not sure the workflow will work with that. That is only a read and not 
    a write.

    Wow over my head a little. I understand what an array is with script but not how to write the script to handle it. I made this:
    event.value = getField("LISTBOX").value;
    But still no change in the behavior with multi selections. Example below if you want to check it out.
    https://dl.dropboxusercontent.com/u/2944617/formtext2.pdf

  • Dynamically generating and printing output from user input on pdf form

    Hi Everyone,
    I am consider the purchase of of Designer with the hopes of doing something really simple (and hopefully in a simple way)
    I would like to present the user with a form which they will fill out. On clicking a "submit button", I would like to generate a letter and have it print out based on the information provided in this form (note, the user doesn't ever really even need to see the letter).
    Would Designer be able to do something like this? I have been messing around with the trial version, so I am somewhat familiar with the scrip language. For instance, I am at the point where I would be able to get all the information, and generate the letter in HTML stored in a string object. But I wouldn't know what to do with this string to render and print it.
    Thanks!
    - Dave

    I have just downloaded the trial version of Acrobat 7. It appears that if you want to create a new form, it pretty much brings you to Designer... which is really fine by me.
    I appreciate everyone telling me that it is doable, I'm still left with the problem of what I should actually do to do it! =)
    - Dave

Maybe you are looking for

  • 10.4.11 Combo update (PPC) fails installer check

    I've tried installing both the Combo update and the standalone rev from 10.4.10 --> 10.4.11. Both stall at the "Select Destination" step stating that my "volume does not meet the requirements for this update". It doesn't give me any more details than

  • Report FP_TEST_00 - Strange behavior

    Hello Gurus, A strange behavior with report FP_TEST_00 occurs: SA38 --> FP_TEST_00 --> select a device --> execute --> print preview then and error or popup is show: Adobe Reader Error initializing the font server module Then the SAP GUI is closed, I

  • IPhone4 failure after 12months and 3 days

    I have had my iPhone for a little over 12months and suddenly the lock button  has decided to stop working. I am appalled at the level of customer Service I received with regards to this matter as it turns out that the product failure occured 3 days a

  • "Error2: photoshop is undefined"

    Trying to switch to Bridge from CS2, and vice versa with an image selected in Bridge, with Command Option O with this result: Error2: photoshop is undefined Line: 1 -> photoshop.invokeBridge (false, false, "); Adobe has a fix for this if using Tiger,

  • Can you track source of clicks on the "clickable" icons

    Can you track source of clicks on the "clickable" icons or track links in Dreamweaver?  I know about Google analytics for a page body but don't know for clicks. Thanks in advance