SET PRINTER TRAY AT RUN TIME

HELO EVERY BODY
I HAVE TWO REPORTS I WANT TO PRINT FIRST REPORT FROM UPPER TRAY AND SECOND REPORT FROM LOWER TRAY HO CAN I DO THIS?
SECOND PROBLUM IS I CREATE A REPORT ON LEGAL PAPER WHEN I RUN THIS REPORT IT WILL TAKE DEFAUT PAPER SIZE OF PRINTER WHICH IS LETTER HOW CAN I SET PAPER LEGAL BY WHICH I NOT CHAND PAPER EVERY TIME
THANKS IN ADVANCE
KHUDA HAFIZ

Faiz,
Pl see my response, and reply in your other thread:
set printer tray and page size
Navneet.

Similar Messages

  • How can i set print mode at run time in smartforms???

    Hi expert,
    In smartforms how can I  set print mode at run time.
    I have one screen.In this screen one check box is there.If user select that check box then print should be come double side otherwise it is coming single side.
    If it is possible then plz give me answer asap.

    Hi,
    Set These settings
    While calling smartform, paas control_parameters and output_options as mentioned below and set
    user_settings = ' '.
    It will send the smartform output to spool.
    DATA: wa_output_options TYPE ssfcompop,
    wa_ctrl TYPE ssfctrlop.
    wa_output_options-tdimmed = 'X'.
    wa_output_options-tddelete = 'X'.
    wa_output_options-tdimmed = ' '.
    wa_output_options-tddest = 'LOCL'.
    wa_ctrl-no_dialog = 'X'.
    CALL FUNCTION lv_fm_name
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    control_parameters = wa_ctrl
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    output_options = wa_output_options
    user_settings = ' '
    x_adrp = x_adrp
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Kumar(Reward if helpful).

  • Can you set an image at run time?  Does it really work?

    I have read that others have been able to set an image at run time, but I cannot seem to get it to work (the image I set does not load).
    What I do is have a page, call it page2, that has two image components on it. In the constructor for page2 I do this:
    // Additional user provided initialization code
    image1.setValue("bike1.JPG");
    image2.setValue("bike2.JPG");
    The jpg files are in the build directory:
    C:\Documents and Settings\Darrin\My Documents\Creator\Projects\ImageTest\build\images
    The odd thing is that for the first image component(image1), I set a default jpg file (nogo.JPG that is in the same directory as the other two), and that does load.
    In fact, when I I check the value of image1 in afterRenderResponse by calling image1.getValue() it still has the default image (nogo.JPG) instead of the one I set it to (bike1.JPG) in the constructor by calling image1.setValue("bike1.JPG");
    So, either the image1.setValue() has no effect, or something is overwriting it.
    What is the trick to getting an image to load at run time like this?
    THANKS!

    Well after several more hours of banging myh ead against the wall, I still cannot get this to work.<br><br>
    I read in the constructor comments that whatever is in the jsp file will override the backing bean's constructor, so that might be part of the problem, but others I thought got this to work using a similar method.<br><br>
    Here is what I tried last which still does not work, but mimics what others have said did work for them:<br><br>
    //See if the default jpg file can even be copied over
    <br> image3.setHeight(image1.getHeight());
    <br> image3.setUrl(image1.getUrl());
    <br> image3.setValue(image1.getValue());
    <br>
    <br> Integer aiw = new Integer("1");
    <br> float aar = 0;
    <br> float ar = 0;
    <br>
    <br> ImageIcon ii = new ImageIcon("C:/Documents and Settings/Darrin/My Documents/Creator/Projects/ImageTest/build/images/bike1.JPG");
    <br> ar = (float)ii.getIconHeight()/(float)ii.getIconWidth();
    <br> aiw = new Integer(ii.getIconHeight());
    <br> aar = ar*aiw.intValue();
    <br> image1.setHeight(""+(int)aar);
    <br> image1.setUrl("images/bike1.JPG");
    <br> image2.setValue("C:/Documents and Settings/Darrin/My Documents/Creator/Projects/ImageTest/build/images\\bike2.JPG");
    <br> image2.setUrl("C:/Documents and Settings/Darrin/My Documents/Creator/Projects/ImageTest/build/images\\bike2.JPG");
    <br><br>Note that when I run this and look at the log that I write out to in afterRenderRepsponse, it shows that image1 (which shows up as the default image I set at design time) and image3 (which does not show up which I set at run time using image1's value) both show the nogo.JPG image from the <b>resource</b> directory while image2 (that I set at run time to be bike2.JPG) is showing up as <b>empty</b>
    <br><br>
    This is really getting frustrating, and I would greatly appreciate a small tutorial from the JSC staff on just how you need to go about doing this. given that this is so common a need, a tutorial is warranted. Heck, just clue me in on how it is done and I will write one!
    <br><br>
    THANKS!

  • Set printer tray and page size

    hi every body
    i create two reports and i want to print these reports from different printer trays for excemple first report from (upper papaer tray) and second from (lower paper tray)i want all of this automaticaly user can not select tray at runtime print automaticaly goes to set tray by default
    second problum is i create report on legal size when i run report in runtime the page setup shows letter size
    how can i solve these problums
    thanks in advance
    allah hafiz

    Hi Faiz,
    There are 2 places where you need to worry about paper size in your report:
    1. When you design the report, you need to make sure that your report is designed according to the paper size that you would finally print on. For this, you first set Reports properties "width" and "height", and then design your report such that everything fits in this size. This has nothing to do with what physical paper size is chosen by the printer at runtime. This merely ensures that the report will be formatted according to the report width and height that you have set.
    If at runtime, your actual paper size in the printer is different (eg, you design according to legal, but you printer contains letter), you can use the property PAGESIZE in your command line to dynamically change the paper size in your report, and Reports will try to format your report accordingly. Again, this property PAGESIZE does not switch the physical paper in the printer. It only ensures that the report is formatted according to what you specify as width and height.
    2. You want to set the "physical" paper size that the report will finally print on. This is controlled by the printer. In reports, you can control which tray should be chosen, but you cannot control what physical paper size it should print on. This is controlled by the printer. Report will print on the paper size that is present in the relevant printer tray.
    Navneet.

  • Setting FLVPlayback parameters at run time

    Hello,
    Is there a way to change the parameters on the FLVPlayback at
    run time? For example, I create a swf file to play the video
    "my_video", and I set the parameter "autoPlay" to false. I then
    embed the following code into a web page:
    <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
    http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
    width="326" height="266" id="my_video" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="my_video.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#666666" />
    <embed src="my_video.swf" quality="high" bgcolor="#666666"
    width="326" height="266" name="my_video" align="middle"
    allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer">
    </embed>
    </object>
    The video is embedded in the page, and the user can click the
    controls to play the video.
    What I'm wondering is ... can I change the parameters at run
    time by using the above code somehow? For example, can I change the
    autoStart parameter to true, so now the video would start
    automatically when the page is loaded. Or, could I change the
    contentPath parameter so the code would now play a different flv
    file?
    Thanks for any help.
    Bob

    Hi,
    Thanks for the quick response. Your suggestion works almost
    perfectly. I can now change the flv to any flv I want, and it plays
    the video I want. However, even though I am specifying
    autoPlay=false, it still plays automatically when the page loads.
    Here is my actionscript:
    flvPlayback.playPauseButton = myplayPause;
    flvPlayback.seekBar = mySeek;
    flvPlayback.muteButton = myMute;
    flvPlayback.contentPath = newPath;
    flvPlayback.autoPlay = autoStart;
    and here is my html:
    <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
    http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
    width="326" height="266" id="xxx" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="pokflvplayer.swf">
    <param name="FlashVars"
    value="autoStart=false&newPath=holiday_message_2007.flv" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#666666" />
    <embed src="pokflvplayer.swf"
    FlashVars="newPath=holiday_message_2007.flv&autoStart=false"
    quality="high" bgcolor="#666666" width="326" height="266"
    name="medical_imaging" align="middle"
    allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer">
    </embed>
    </object>
    Any idea why it will not recognize the autoStart paramenter?
    By the way, I had to change your myFLV.autoStart - autoS to
    flvPlayback.autoPlay=autoStart. The actual name of the parmameter
    is autoPlay, not autoStart. My guess is that was just a typo on
    your part. Thanks again for your help.
    Bob

  • Set Printer Tray

    Hi
    I'm experiencing difficulty with a report.
    My requirement is to print a four page report duplexed with the first page coming from tray 1 and the following page coming from tray 2.
    When the report is printed via Adobe Acrobat Reader it will successfully duplex, but will not print from the separate trays.
    When the report is sent direct to printer, setting the report property DESTYPE = PRINTER the report will print from the separate trays, but not duplex.
    I've got the set_printer_tray commands on the repeating frame triggers.
    Going through Adobe, I believe the report loses the printer tray commands.
    Looking at the printer properties the printer's default behaviour appears to be duplex printing.
    Any ideas on what could be going wrong?

    Hi Faiz,
    There are 2 places where you need to worry about paper size in your report:
    1. When you design the report, you need to make sure that your report is designed according to the paper size that you would finally print on. For this, you first set Reports properties "width" and "height", and then design your report such that everything fits in this size. This has nothing to do with what physical paper size is chosen by the printer at runtime. This merely ensures that the report will be formatted according to the report width and height that you have set.
    If at runtime, your actual paper size in the printer is different (eg, you design according to legal, but you printer contains letter), you can use the property PAGESIZE in your command line to dynamically change the paper size in your report, and Reports will try to format your report accordingly. Again, this property PAGESIZE does not switch the physical paper in the printer. It only ensures that the report is formatted according to what you specify as width and height.
    2. You want to set the "physical" paper size that the report will finally print on. This is controlled by the printer. In reports, you can control which tray should be chosen, but you cannot control what physical paper size it should print on. This is controlled by the printer. Report will print on the paper size that is present in the relevant printer tray.
    Navneet.

  • Printer Name in Run Time

    Hello,
    Is there any standard API to get the name of the Printer from the program run time? Please let me know if anyone knows.
    Thanks,
    Genoo

    Please see if (FND_PRINTER_PKG) helps.
    FND_PRINTER_PKG -- 11i
    http://etrm.oracle.com/pls/trm11510/etrm_pnav.show_object?c_name=FND_PRINTER_PKG&c_owner=APPS&c_type=PACKAGE
    PACKAGE: APPS.FND_PRINTER_PKG - R12
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_PRINTER_PKG&c_owner=APPS&c_type=PACKAGE
    Thanks,
    Hussein

  • Setting bind references at run-time

    Hi,
    I am working on a dynamic form,which will instantiate questions based on some instructions specified in XML when the form loads up, much like John Brinkman's example
    http://blogs.adobe.com/formfeed/2009/03/a_form_to_design_a_form.html
    At design time, it is not know which node in the data dom the field should be bound to, so I would like to be able to simulate a match="dataRef" ref="$.myNode" statement at run-time.
    However, my recollection is that the binding reference can't be changed at run time. Does anyone know if it can be done, and how to do it?
    John

    Hi,
    Thanks for the quick response. Your suggestion works almost
    perfectly. I can now change the flv to any flv I want, and it plays
    the video I want. However, even though I am specifying
    autoPlay=false, it still plays automatically when the page loads.
    Here is my actionscript:
    flvPlayback.playPauseButton = myplayPause;
    flvPlayback.seekBar = mySeek;
    flvPlayback.muteButton = myMute;
    flvPlayback.contentPath = newPath;
    flvPlayback.autoPlay = autoStart;
    and here is my html:
    <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
    http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
    width="326" height="266" id="xxx" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="pokflvplayer.swf">
    <param name="FlashVars"
    value="autoStart=false&newPath=holiday_message_2007.flv" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#666666" />
    <embed src="pokflvplayer.swf"
    FlashVars="newPath=holiday_message_2007.flv&autoStart=false"
    quality="high" bgcolor="#666666" width="326" height="266"
    name="medical_imaging" align="middle"
    allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer">
    </embed>
    </object>
    Any idea why it will not recognize the autoStart paramenter?
    By the way, I had to change your myFLV.autoStart - autoS to
    flvPlayback.autoPlay=autoStart. The actual name of the parmameter
    is autoPlay, not autoStart. My guess is that was just a typo on
    your part. Thanks again for your help.
    Bob

  • How to set vo query at run time

    Hi,
    Is it possible to bind the where clause of query at run time.
    N :)

    Hi,
    Yes its possible.
    To add new where clause to your query.
    vo.setWhereClause(null);//If you want to remove any existing programmatically added where clause.
    vo.setWhereClause("Your new query");
    To bind varibales (Say there are 2 bind variables),
    First way to achieve this.
    setWhereClauseParam(null); //Always reset it to remove existing bindings)
    setWhereClauseParam(0, "Your first paramter value"); // Second parameter "Your first paramter value" is of type object.
    setWhereClauseParam(1, "Your first paramter value");
    In case you use "?" styly type binding, this count in above method starts with 1 instead of 0.
    Second way is to put all bind variables in an object array and pass to above method.
    Vector params=new Vector(2);
    params.addElement("FirstParameter");
    params.addElement("SecondParameter");
    Now call vo.executeQuery() to fetch the results as per new query.
    Abdul Wahid

  • Set value Field in run time

    hello guys!!!
    it's called the process where
    on my screen I have two fields
    Field 1: enabled for editing
    Field 2: disabled for editing
    when i fill the value in a field 1 I want to play the same value for the field 2 in run time. that´s possible?What can I study?

    So, you want the user to be allowed to enter a value in field 1, then after tabbing out to the next field, display that same value in a non-editable field underneath?
    You can definitely implement this using Partial Page Rendering (PPR).
    Go to your help section within JDeveloper. Type in "Partial Page Rendering Exercise". A tutorial will pop up showing you how to implement this sort of thing.

  • Crystal 8.5! Set table locations at run time to queries

    Hopefully some people still remember version 8.5...
    I have a number of reports which all work from a single database, this can be either Access or SQL Server, I'm currently testing on Access. I would like to use the same reports but print them for multiple databases, all of which have the same schema. To do this I'm creating UNION queries in one of the databases and I now want to change the location of the tables in the report to use these union queries instead.
    For example, say the report uses table "Customer" in db1 but I have also have db2 and db3 with the same table, I'm enumerating all fields used in the report and creating a union in db1 something like:
    SELECT field1, field2 FROM Customer IN 'db1.mdb'
    UNION SELECT field1, field2 FROM Customer IN 'db2.mdb'
    UNION SELECT field1, field2 FROM Customer IN 'db3.mdb'
    Now I've tested this in Crystal Reports itself, i.e. setting the location to the new tables, and it works OK. I'm having to use an OLEDB connection otherwise the links get removed. When I try to set the location in code I just get no data on the report even though there is data available.
    In code I'm going through all tables (and all tables in all sub reports) and I've tried setting the Location property to the name of the union, I've tried SetTableLocation "<path to db>", "<union name>" and I've tried both using SetLogOnInfo "<path to db>" as well.
    I'm thinking perhaps converting the report to active data and plugging in an ADO recordset could be a solution but I'm not sure how feasible that is from code (i.e. converting the database driver from either pdsoledb.dll or pdbdao.dll to pdsmon.dll and creating a ttx on the fly...).
    Any help much appreciated.

    Hi,
    SetTableLocation should work but you need to make sure you call it for each of the tables in the report or in this case the Union. 
    Just like in the report designer when you set the location you need to point to the table you want to change.  Even though you get the prompt asking to set the same location for all the tables, it's doing the same thing for you. 
    Hope this helps,
    Brian

  • CR2008 - Set chart titles during run time

    Hello community!
    Is there a way to change the chart titles during runtime with the fullversion?
    I have the following code to change the text of the "FieldHeadingObject" and "TextObject" and this is working.
    foreach (CrystalDecisions.CrystalReports.Engine.ReportObject repObject in sec.ReportObjects)
       if (repObject.Kind == ReportObjectKind.TextObject ||
           repObject.Kind == ReportObjectKind.FieldHeadingObject)
            ((CrystalDecisions.CrystalReports.Engine.TextObject)repObject).Text = "my new Text";
    How can I change the titles of the chart object?
    I know already that there is the class "ChartTextOptionsClass"
    Does someone know how I could access the TextOptions in the ChartObject so that the new Titles are displayed in the report?
    Thank you
    Alex

    Hello Ludek!
    Thank you for the example code. I modified them to meet my requirements.
    void LoadReportLanguageResources(ReportClass report)
       foreach ( CrystalDecisions.CrystalReports.Engine.Section sec in report.ReportDefinition.Sections)
          foreach (CrystalDecisions.CrystalReports.Engine.ReportObject repObject in sec.ReportObjects)
             if (repObject.Kind == ReportObjectKind.TextObject ||
                  repObject.Kind == ReportObjectKind.FieldHeadingObject)
                ((CrystalDecisions.CrystalReports.Engine.TextObject)repObject).Text = "test";
       CrystalDecisions.CrystalReports.Engine.ReportDocument rptDoc = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
       CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument rptClientDoc;
       report.Load();
       rptClientDoc = report.ReportClientDocument;
       CrystalDecisions.ReportAppServer.ReportDefModel.ReportObjects myCharts;
       myCharts = rptClientDoc.ReportDefController.ReportObjectController.GetReportObjectsByKind(CrReportObjectKindEnum.crReportObjectKindChart);
       foreach (CrystalDecisions.ReportAppServer.ReportDefModel.ReportObject oldObject in myCharts)
          if (oldObject.Kind == CrReportObjectKindEnum.crReportObjectKindChart)
             CrystalDecisions.ReportAppServer.ReportDefModel.ChartObject oldChart;
             CrystalDecisions.ReportAppServer.ReportDefModel.ChartObject newChart;
             oldChart = (CrystalDecisions.ReportAppServer.ReportDefModel.ChartObject)oldObject;
             newChart = (CrystalDecisions.ReportAppServer.ReportDefModel.ChartObject)oldChart.Clone(true);
             newChart.ChartStyle.TextOptions.Title = "My new Title";
             newChart.ChartStyle.TextOptions.DataTitle = "My new data Title";
             newChart.ChartStyle.TextOptions.SeriesTitle = "My new series Title";
             rptClientDoc.ReportDefController.ModifyChartObject(oldChart, newChart);
    But I am hvaing problems with the method modifyChartObject(oldChart, newChart). When the method is called i get an COMException with a message like "The data fields of the diagramm are not valid" (German message: "Die Datenfelder des Diagramms sind ungültig"); ErrorCode -2147213287;
    LoadReportLanguageResources is called via the following functions - I left out the outermost functions where the reportingList is loaded and the parameter is built.
    //Checks the list with the report items and call the main load method
    void IReportView.LoadHusReport(IList<HusRepItem> reportingList, BDEA01RangeParameter parameter)
       if ( reportingList.Count > 0)
          reportClass = new repHusReport();
          reportClass.SetDataSource(reportingList);
          LoadReport(reportClass, "Hus Station Report", parameter);
    void LoadReport(CrystalDecisions.CrystalReports.Engine.ReportClass myReport, string title, BDEA01Parameter parameter)
       //check the parameters
       //set the parameters for the report (start and end time of the displayed report range)
       myReport.SummaryInfo.ReportTitle = title;
       if(reportViewer == null)
          crCrystalReportViewer = new CrystalReportViewer();
          reportViewer.Child = crCrystalReportViewer;
       LoadReportLanguageResources(myReport);
       crCrystalReportViewer.ReportSource = myReport;
    Is there something I have forgotten?
    I checked the datafields of the old and the new chart and both have 0 entries before the ModifyChartObject method is called.
    If the method is not called, the report is functioning and all values/diagrams are displayed correctly.
    Thank you Ludek for your help.
    Alex
    Edited by: Alexander Frwirth on Jul 7, 2010 10:13 AM

  • cm:select - want to set query param at run time

    Hi,
    I've just started using the personalization server and have a question
    regarding the content manager tag.
    The JSP that runs generates some value that I want to use in the query
    parameter. In the following example, I would like to replace the 02 with a
    dynamic value:
    <cm:select contentHome="com.beasys.commerce.axiom.document.Document"
    query="parentId = '02'" sortBy="ibioObjType ASC" id="objList" />
    So if the JSP had a String variable myVal, essentially, I want to do this
    <cm:select contentHome="com.beasys.commerce.axiom.document.Document"
    query="parentId = '<theValueOfMyValInHere>'" sortBy="ibioObjType ASC"
    id="objList" />
    Any ideas would be gratefully received - thanks in advance,
    Peter Villiers

    Peter -
    Simply use a JSP Scriptlet to generate the query and put it in the tag. For
    example:
    <% String query = "parentId = '" + myVal + "'"; %>
    <cm:select contentHome="com.beasys.commerce.axiom.document.DocumentManager"
    query="<%=query%>" sortBy="ibioObjType ASC"
    id="objList" />
    Just make sure that myVal doesn't contain any single or double quotes, or use
    com.beasys.commerce.util.ExpressionHelper.toStringLiteral() to quote the
    quotes.
    It is also recommended that you use the DocumentManager as the contentHome,
    rather than the Document (see the WLPS 2.0.1sp1 releaste notes on
    http://e-docs.bea.com).
    Hope that helps,
    Greg
    Peter Villiers wrote:
    Hi,
    I've just started using the personalization server and have a question
    regarding the content manager tag.
    The JSP that runs generates some value that I want to use in the query
    parameter. In the following example, I would like to replace the 02 with a
    dynamic value:
    <cm:select contentHome="com.beasys.commerce.axiom.document.Document"
    query="parentId = '02'" sortBy="ibioObjType ASC" id="objList" />
    So if the JSP had a String variable myVal, essentially, I want to do this
    <cm:select contentHome="com.beasys.commerce.axiom.document.Document"
    query="parentId = '<theValueOfMyValInHere>'" sortBy="ibioObjType ASC"
    id="objList" />
    Any ideas would be gratefully received - thanks in advance,
    Peter Villiers[greg.smith.vcf]

  • Is it possible to set valid values at run time?

    Hi,
    I'am using a BPM Presentation and I want to know if it is possible to set the values of a combo box depending of the value of other field in the same presentation ando if so how to do it? I tried to do somethin like:
    var = fiedlValidValues()
    I tried to use refreshValidValues but it says that cannot execute the action in a presentation, I don&acute;t know wath else to do
    but it doesn&acute;t works, any idea??
    Thanks in advance
    Marig
    Edited by: user646988 on 05-feb-2009 19:30

    Hi, thanks Anup
    I followed your advise but i didn&acute;t success. I have question, if I'm getting the default values of a field with a method using a query. The type field is String and I'm using it into a combo box so the method I'm using returns a String[], is something like this:
    for each row in SELECT column
    FROM DataBase.SYSBPM.TABLE
    where var1 = var2
    do
    clases[] = row.clase
    end
    return clases
    But if I use a method for the onChange property if the field how to set the default values?
    I tried with
    for each row in SELECT column
    FROM DataBase.SYSBPM.TABLE
    where var1 = field1
    do
    clases[] = row.clase
    end
    clases = claseValidValues()
    But this is not working, do you have any ideas??
    Thanks
    Edited by: user646988 on 15-feb-2009 19:36

  • SET BORDER BEVEL  at run time

    Has anyone get this built_in working correctly:
    set_item_instance_property('blk1.item1',i,BORDER_BEVEL,LOWERED);
    I also tried
    set_item_instance_property('blk1.item1',i,BORDER_BEVEL,'LOWERED');
    I got this error for both:
    FRM-41384: Invalid parameter used for Set_Intem_Instance_Property.
    But in the documentation, this parameter is valid.

    Works fine for me (9i) - is "i" in your sample set to a valid record number?
    set_item_instance_property('emp.empno',1,BORDER_BEVEL,LOWERED);

Maybe you are looking for