How to set Where cluase AND dynamically?

Hi all,
I need some info on how we can assign the value to bind variable in AND of the where clause of View Object Query
from the backing bean. As of now I am using the below lines of code for that.
ViewObject vo = am.findViewObject("TestDynamicWhere");
vo.setNamedWhereClauseParam("bindVarDeptId", new Number(10));
vo.executeQuery();
but I am getting error at "am" - Variable not found and at "findViewObject" - this method not found
I replaced am with my AppModule name but still I am getting the same errors. Kindly help me out in this.
Thanks,
Phani.

I don't think you have to do all those useless things just to set the bind variable:
when you drag exexuteWithParam Operation of your viewObject from DataControl as a button, you will be good to go...
now setting bind variable ...
just create a attribute binding from the same viewObject that you want to bind ... eg. in you case you want to bind bindVarDeptId var, so just create a attribute binding for the same var from you viewObject.
final step:
on the pagedef file of executeWithParam provide: ( when you go to the binding tab of your page where you dragged the executeWithParam, you will be that binding, right click and go to source and change NDValue as shown below:)
*NDValue="#{bindings.bindVarDeptId.inputValue}"*
Now it's all done.
Cheers

Similar Messages

  • How to set Where clause in the View Object of the MessageChoice ?

    Hi,
    How to set Where clause in the View Object of the
    MessageChoice ?
    Example:
    <bc4j:rootAppModuleDef name="EdEscolaCampusView1AppModule"
    definition="ed00050.Ed00050Module"
    releaseMode="stateful" >
    <bc4j:viewObjectDef name="EdEscolaCampusView1" >
    <bc4j:rowDef name="CreateEdEscolaCampusView1" autoCreate="true" >
    <bc4j:propertyKey name="key" />
    </bc4j:rowDef>
    </bc4j:viewObjectDef>
    <bc4j:viewObjectDef name="ListaTipLocalView1"
    rangeSize="9999">
    </bc4j:viewObjectDef>
    </bc4j:rootAppModuleDef>
    </bc4j:registryDef>
    messageChoice declaration:
    <bc4j:messageChoice name="SeqTipoLocalCampus"
    attrName="SeqTipoLocalCampus"
    prompt="Local do Campus">
    <contents>
    <bc4j:optionList attrName="SeqTipoBasico"
    textAttrName="NomTipoBasico"
    voName="ListaTipLocalView1"/>
    </contents>
    </bc4j:messageChoice>
    I would like set where clause of ViewObject, with dinamic parameters (using attribute1 = :1), before populate messageChoice.
    thanks...
    Danilo

    Hi Andy,
    I try set a where clause using the message:
    Set where Clause parameter using UIX , but my UIX Page have 2 messageChoice's of different ViewObject's, then I need implement this Java Class:
    //Nome da Package da Tela Detail
    package br.com.siadem.siaed.ed00050;
    // Importa as Bibliotecas necessárias
    import oracle.jbo.ViewObject;
    import oracle.jbo.ApplicationModule;
    import oracle.jbo.client.Configuration;
    import oracle.cabo.servlet.BajaContext;
    import oracle.cabo.servlet.Page;
    import oracle.cabo.servlet.event.PageEvent;
    import oracle.cabo.servlet.event.EventResult;
    import oracle.cabo.data.jbo.servlet.bind.*;
    import oracle.cabo.ui.data.BoundValue;
    import oracle.cabo.ui.data.DataBoundValue;
    import javax.servlet.http.HttpServletRequest;
    import br.com.siadem.siaed.util.*;
    import javax.servlet.http.Cookie;
    import oracle.cabo.data.jbo.def.NestedAppModuleDef;
    import oracle.cabo.data.jbo.def.ViewObjectDef;
    import oracle.cabo.data.jbo.def.AppModuleDef;
    // Classe que configura os parametros para a execução da Query,
    // utilizando variáveis de Sessao
    public class FunPreQueryLista
    public static EventResult FunConfiguraQuery(BajaContext context, Page page, PageEvent event) throws Throwable
    // TrataDadosSessao - Classe utilizada para retornar os valores das variáveis de sessão genéricas
    // Ex: CodCliente, CodMunicipio etc...
    TrataDadosSessao varDadosSessao = new TrataDadosSessao();
    // 1o. Parametro Configurado - Através da classe TrataDadosSessao, utilizando um método Get
    // <alterar>
    String valor1 = varDadosSessao.getCodCliente();
    String valor2 = varDadosSessao.getCodMunicipio();
    //Cria o objeto que retorna o ApplicationModule
    ApplicationModule am = ServletBindingUtils.getApplicationModule(context);
    // Início das Configurações da Query da Lista
    //Cria o objeto que retorna o view object da lista desejada
    //alterar
    ViewObject TipoLocal = am.findViewObject("ListaTipoLocalView1");
    //Configuração dos parametros definidos na query do view Object
    //alterar
    TipoLocal.setWhereClauseParam(0,valor1);
    TipoLocal.setWhereClauseParam(1,valor2);
    // Executa a Query
    TipoLocal.executeQuery();
    // Fim das Configurações da Query da Lista
    // Início das Configurações da Query da Lista
    //Cria o objeto que retorna o view object da lista desejada
    //alterar
    ViewObject TipoDestLixo = am.findViewObject("ListaDestinoLixoView1");
    //Configuração dos parametros definidos na query do view Object
    //alterar
    TipoDestLixo.setWhereClauseParam(0,valor1);
    TipoDestLixo.setWhereClauseParam(1,valor2);
    // Executa a Query
    TipoDestLixo.executeQuery();
    // Fim das Configurações da Query da Lista
    // Retorna o Resultado para a Página
    return new EventResult(page);
    The code works very well...
    And, I'm sorry for my two repost's in UIX Forum about this in a few time.
    Thank very much...
    Danilo

  • How to set multiple ORACLE_HOME and ORACLE_SID, on Windows

    How to set multiple ORACLE_HOME and ORACLE_SID, on Windows.
    I have 5 oracle instances. Every time if i want to start up the services , I am manually setting the environment variable (ORACLE_HOME and ORACLE_SID) and starting the services one at a time.
    Can we set multiple ORACLE_HOME and ORACLE_SID in Start->My computer-> properties-> advance-> Environment variable.
    Thanks
    Naveen

    Hi ,
    Can you please give me the link, for the doc you are referring to
    Thanks
    Naveen

  • How to set the IP and MAC address in C program?

    My working environment is Sun250 Server, Solaris 7 operating system. I encountered a problem ---- How to set the IP and MAC address in C program to make the system change it IP & MAC at runtime?
    Any idea is welcome! Thanks!

    Hi
    As a simplest possible solution, you can use the system command
    to run ifconfig that can set both the mac address and the IP address of the system. You will have to use setuid though.
    Or you can use the DLPI calls ( do a man DLPI or search for a
    Sun documentation on the same at http://soldc.sun.com) to write
    a pure C program.
    HTH
    Shridhar

  • How to set default currency and Country in R12 financial modules

    Hi all,
    How to set default currency and Country in R12 financial modules (AR,AP,GL,FA,CE) becuase I found some default settings are shown "USD" & "United States" such as create AR Customer, the Country is shown the default "United States"....
    Can anybody advise ?
    Thanks & Regards,

    Hi,
    Change the below profile for the user to a territory different than the US :
    In System Administrator, navigate to Profiles -> System.
    Select Site, Application, and Responsibility.
    Profile options:
    Default Country
    HZ: Reference Territory
    ICX: Territory
    Regards,
    Raju.

  • How to set the WIDTH and ALIGN of h:column in h:dataTable ??

    How to set the WIDTH and ALIGN of <h:column> in <h:dataTable>??
    Thanks a lot!

    Hi,thanks to your reply.
    Now I find a more convenient appraoch to set column's width and align respectively:
    <h:dataTable ...>
    <h:column>
    <f:facet name='header'>
    </f:facet>
    <h:outputText style="width:80px; text-align: right;" value='#{row.fieldA}'/>
    </h:column>
    <h:column>
    <f:facet name='header'>
    </f:facet>
    <h:outputText style="width:120px; text-align: left;" value='#{row.fieldB}'/>
    </h:column>
    </h:dataTable>
    It works fine.
    ^-^

  • How to set the router and play the Command & Conquer using direct IP mode?

    My router is WRT54GFirmware Version: v3.03.1
    How to set the router and play the Command & Conquer using direct IP mode with other computer?

    Hi, when you say direct IP mode, what do you mean ? do you wanna play the game online or on the LAN ??
    can you give a few more details.

  • How to set the gain and input coupling for each channel on a NI 4462 DaQ card?

    I've seen a few examples in how to set the gain for NI 4462, but none tell me how to chose the channel I wish to set this gain.  Also the same problem with input coupling
    Does anyone know how to set the gain and input coupling for each individual channel?
    Thanks,
    Hector
    LabView 8.5 Windows XP

    Hey Hector,
    http://forums.ni.com/ni/board/message?board.id=100&thread.id=1688
    This has a few examples of how to do that.  Let me know if you have further questions.
    Have fun!
    -gaving

  • How to set the Mail and Fax options  for the Smartforms ???

    How to set the Mail and Fax options  for the Smartforms ??? Please reply me very soon. Its a life deciding question now for me. Please .

    >
    veera Karthik wrote:
    > How to set the Mail and Fax options  for the Smartforms ??? Please reply me very soon. Its a life deciding question now for me. Please .
    Hi
    Check this Link:
    http://help.sap.com/saphelp_nw04/helpdata/en/a5/28d3b9d26211d4b646006094192fe3/frameset.htm
    P.S: Never say reply me soon....people answer you here voluntarily and as everyone has their own desk to manage...sp replies may late or early..depending upon the availabality of the members.
    Vishwa.

  • How to set input delay and output delay when source Synchronous

    ClkIN is the board clock which is connected to the FPGA. Clkif is the generated clock from ClkIN. The Device's clk come from Clkif. So, how to set input delay and output delay in this scene(within my understand, this is Source Synchronous)?
    The example in many document, the input delay and output delay setting all refer to board clock(within my understand, this is System Synchronous). In that scene, the input delay max = TDelay_max + Tco_max; input delay min = Tdelay_min + Tco_min; the output delay max = Tdelay_max + Tsu; output delay min = Tdelay_min - Th.
    So, I want to know how to set input/output delay in the Source Synchronous.
    In system synchronous, I set input/output delay such as:
    create_clock -period 20.000 -name ClkIN -waveform {0.000 10.000} [get_ports ClkIN]
    create_generated_clock -name Clkif -source [get_pins cfg_if/clk_tmp_reg/C] -divide_by 2 [get_pins cfg_if/clk_tmp_reg/Q]
    create_clock -period 40.000 -name VIRTUAL_clkif //make virtual clock
    set_input_delay -clock [get_clocks VIRTUAL_clkif] -min 0.530 [get_ports DIN]
    set_input_delay -clock [get_clocks VIRTUAL_clkif] -max 7.700 [get_ports DIN]
    set_output_delay -clock [get_clocks VIRTUAL_clkif] -min -0.030 [get_ports DOUT]
    set_output_delay -clock [get_clocks VIRTUAL_clkif] -max 1.800 [get_ports DOUT]
    *******************************************************************************************

    So, first. Architecturally, the clock that you forward to your external device should not come directly from the clock tree, but should be output via an ODDR with its D1 input tied to logic 1 and the D2 tied to logic 0. This guarantees minimal skew between the output data and the forwarded clock.
    ODDR #(
    .DDR_CLK_EDGE("OPPOSITE_EDGE"), // "OPPOSITE_EDGE" or "SAME_EDGE"
    .INIT(1'b0), // Initial value of Q: 1'b0 or 1'b1
    .SRTYPE("SYNC") // Set/Reset type: "SYNC" or "ASYNC"
    ) ODDR_inst (
    .Q (Clkif_ff), // 1-bit DDR output
    .C (ClkIN_BUFG), // 1-bit clock input
    .CE (1'b1), // 1-bit clock enable input
    .D1 (1'b1), // 1-bit data input (positive edge)
    .D2 (1'b0), // 1-bit data input (negative edge)
    .R (rst), // 1-bit reset
    .S (1'b0) // 1-bit set
    OBUF OBUF_inst (.I (Clkif_ff), .O (Clkif_out));
    This generates an output clock that is the same frequency as your input clock. This is consistent with your drawing, but inconsistent with your constraints - is the forwarded clock a 50MHz clock or a 25MHz clock?
    I will assume your ClkIN goes to a BUFG and generates ClkIN_BUFG.  Your first constraint generates a 50MHz clock on the ClkIN port which will propagate through the BUFG to (among other places) this ODDR.
    create_clock -period 20.000 -name ClkIN -waveform {0.000 10.000} [get_ports ClkIN]
    Assuming your forwarded clock is supposed to be 50MHz, then your 2nd command is close to correct
    create_generated_clock -name Clkif -source [get_pins cfg_if/ODDR_inst/C] -combinational  [get_pins cfg_if/ODDR_inst/Q]
    With this done, you have successfully described the forwarded clock from your design. This is the clock that goes to your device, and hence should be the clock which is used to specify your input and output constraints.
    set_input_delay -clock [get_clocks Clkif] -min 0.530 [get_ports DIN]
    set_input_delay -clock [get_clocks Clkif] -max 7.700 [get_ports DIN]
    set_output_delay -clock [get_clocks Clkif] -min -0.030 [get_ports DOUT]
    set_output_delay -clock [get_clocks Clkif] -max 1.800 [get_ports DOUT]
    If you want to get fancier, you could try adding a set_clock_latency to the forwarded clock to account for the board propagation of the clock
    set_clock_latency -source TDtrace2 [get_clocks Clkif]
    (But I haven't experimented with clock latency on a generated clock and I don't know for a fact that it works).
    Avrum

  • How to set the file path dynamically based on sytem, username, and date

    Hi All,
    My requirement is upload the data into one  structure like xyz that is related to t.code MCSZ.
    file will be in  UNIx SERVER .
    PATH IS: /sapif
    file name is xy789 load .txt
    I have  to write code in one user-exit
    how can i set the file path for this.
    shall i put hard code file path?
    because i have to writecode in user-exit.
    plz tell me how to set the file path based ons syetem, username, date
    Thanks in advance
    Ram.A

    Concatenate the field SY-SYSID, SY-UNAME and SY-DATUM for the file path

  • How to set the width and heigh in the popup window

    Hi All,
    I tried to show a report in a popup window style.
    In the column link section, I defined the URL like the following:
    javascript:popupURL('f?p=&APP_ID.:128:&SESSION.::&DEBUG.::P128_PAY_RATE,P128_PAY_TERMS:#PAY_RATE#,#PAY_TERMS#'). how and where to set the height and width for page 128?
    Thank you,
    spark

    Here is a sample of the JavaScript function I re-use that opens a popup window. You'll notice that it includes the width and height of the popup window:
      function callTCPopup (formItem1) {
        var formVal1 = formItem1;
         var url;
      url = 'f?p=&APP_ID.:1111:&APP_SESSION.::::P1111_TC_ID:' + formVal1;
      w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600");
      if (w.opener == null)
      w.opener = self;
      w.focus();
      }You could also look at using a Modal Page (Skillbuilders' plugin - watch the video for use).

  • How to set background image in Dynamic Shell Layout

    Experts,
    Using dynamic shell layout, how can we create a skin like this http://www.2shared.com/photo/OqXfb5jq/layoutissue.html
    Issues :
    1)Need to set the background to the page - How to set it in dynamic shell layout.
    2)Panel box color to be changed
    please advice
    thnks
    jdev 11.1.2.1

    Color goes UNDER the background image. Just set it.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "StarPilot06" <[email protected]> wrote in
    message
    news:eqqve6$341$[email protected]..
    >I am trying somethign that seems tricky to me...
    >
    > The image I am using I faded to a solid color on the
    bottom half. I set
    > the
    > background image to to left and NO REPEAT but when the
    cell grows with
    > content
    > and it stretched beyond the image it goes blank
    underneath. How do I set
    > a
    > background color without going over the background
    image?
    >
    > I need them both to be background because I want to use
    text over both.
    >
    > Any ideaS?
    >

  • Can anyone please tell me how to set a long tip dynamically?

    Hi Team,
    Could you please tell me how to set a longtip dynamically??
    Thanks,
    Swetha S

    Hi Shweta,
    As mentioned, the parameters for the setLongTip(OAPageContext pageContext, String tipMessageApplShortName, String tipMessageName)
    Instead, you are passing setLongTip(pageContext,String string). Put in the Message Application Short Name and respective Message name in above method parameters.
    Regards,
    Zahid

  • How to set both dpi and dimensions?

    I haven't used illustrator in a while, but for classes, I have to set the image to 300dpi and 800x800 px, and I can only keep one or the other, so how do I keep both?
    My art board is 800x800px, I've set my doc raster effects settings to 300dpi. I've tried searching for an answer but I can only find solutions to one or the other, so I'm suspecting it's something simple that I just can't figure out! Any help would be appreciated! Thanks!

    This question is one of the most frequent points of confusion asked about in this forum. So I will go ahead and post the answer I typed, despite your having resolved the issue. It may be of benefit to others.
      ...I have to set the image to 300dpi and 800x800 px...
    You have to set what image to those values, and where?
    This is a vector-based drawing and design assembly program. Unlike a raster imaging program (Photoshop, etc.) it isn't about just manipulating a single array of pixels. Any program like Illustrator (or like InDesign, etc.) is about assembling any combination of independent OBJECTS into a layout. Each of those OBJECTS can be a raster image, a mathematically-defined shape (vector-based path), or a text object.
    So you have to be careful about your terminology when asking for explanations. In the context of a program like Illustrator, the term "image" is assumed to refer to a raster image object. That object may be an individual raster image that exists somewhere on the page, or a rasterization of the entire page that you intend to export, or a raster image that is automatically generated on-the-fly when you apply a raster-based Effect like a Drop Shadow or a Blur. Your question makes it clear that you are confusing all three, and the answer to your question depends on which kind of object you are talking about setting to the required values.
    PPI (Pixels Per Inch) is nothing but a scaling factor. 800 x 800 pixels is a specific COUNT of rows and columns of pixels. Any COUNT of pixels can be scaled so as to achieve any PPI. "Pixels" is only half of the equation. "Inch" is the other half.
    In other words, you can't know the PPI of a raster image until you know TWO things: The COUNT of rows/columns of pixels contained in the image and the MEASURE of the overall image. Only then can you know the third thing: the COUNT per MEASURE; the Pixels Per Inch:
    COUNT / MEASURE=Count Per Measure
    So your stated requirements provide two values: 800 is a COUNT of pixels (actually rows or columns) contained in an image. 300 is a COUNT per MEASURE after the image has been scaled to some unknown MEASURE. So:
    800/300=Number of Inches
    The PPI of an 800 x 800 pixel raster image is 300 PPI only when those 800 pixels (rows/columns) contained in the image have been scaled to occupy 2.66666.... inches. (Notice that this is actually quite intuitive enough to do in your head: How many "threes" does it take to equal one "eight"? Two-and-two-thirds, or 2.6666....)
    So whatever 800 x 800 pixel image you are talking about will have to be scaled to MEASURE 2.66 inches in order for its PPI to be 300. That's 2.66... inches or its equivalent in some other unit of actual measure.
    Again the question remains: What image are we talking about? And how does that relate to Illustrator's rulers and Document Raster Effects setting? Read on.
    Read the first paragraph again and be sure you understand this point: An Illustrator page can contain any number of INDEPENDENT raster images. Each is an independent OBJECT that each can be independently scaled. Therefore, each raster image on an Illustrator page can have its own, individual, PPI value. But Illustrator has only one horizontal page ruler. So there is no way that setting Illustrator's rulers to "Pixels" can reliably indicate
    the actual number of pixels contained in any and all raster image(s) that may exist on the page.
    Unlike Photoshop, Illustrator's rulers are always an indication of linear measure. A pixel has no linear measure whatsoever until you give it one; i.e.; until you scale it to an actual size. Therefore, a pixel is not a unit of linear measure. So the actual PPI of any raster object that resides on the page, in truth, has absolutely NOTHING to do with the "Pixels" indicated on the page rulers when you set the ruler units to "Pixels," unless you deliberately set up that correspondence.
    (I can't decipher from Jacob's tongue-in-cheek response to whom he is referring as "some." If "some" includes me, I assure you I am not saying this to confuse anyone. I'm saying this to help clear up the confusion that chronically occurs among newcomers due to this regretful element of the interface.)
    Suppose for example, you have an image that you know contains one pixel. You import this image into an Illustrator document. The rulers are set to Inches. In the Transform palette, you set the height and width of this raster image object to 1 inch. You carefully position the upper left corner of the image to the page origin.
    Based on what you observe by looking at the rulers, the resolution of this image is one Pixel Per Inch. Makes sense, right?
    Now change the rulers' Unit of Measure to "Pixels."
    Based on what you observe by looking at the rulers, the resolution of this image is one Pixel Per 72 Pixels. Wha...? Umm... its resolution is 1/72 Pixels Per Pixel? Its resloution is .013888... Pixel Per Pixel? What kind of sense does this make?
    See? Remember: In order to know the resolution of a raster image, you need two values: A COUNT and a MEASURE. What the heck does "Pixel Per Pixel" mean?
    In Illustrator, it simply means Pixel Per Point (1/72 inch).
    ...and I can only keep one or the other, so how do I keep both?
    Sure you can have both. Again, any number of pixels can be scaled to any size, to result in any PPI. But in Illustrator, the only way an 800-pixel image is going to have a PPI of 300 is if it is scaled to measure 2.666... inches. Simply select the 800 x 800 image, set the Unit of Measure to Inches, go to the Transform palette, turn on the proportional chain link, and set the width or height to 2.66.
    But if you then change the Unit of Measure back to "Pixels", don't expect the rulers to indicate a "width" or "height" of 800 "Pixels." They will indicate 192 "Pixels", because 2.66... inches equals 192 Points.
    My art board is 800x800px,...
    No. As you should now understand, your Artboard is, in fact, 800 x 800 points, which is 11.111... inches. If you don't believe this, just change your Unit of Measure temporarily to Inches. The only way you will get an 800 x 800 pixel image corresponding to this Artboard is if you export it to a raster image format (i.e.; create a raster image of it) at a resolution of 72 PPI.
    I've set my doc raster effects settings to 300dpi.
    That simply means that the raster images that are created when you apply raster-based live Effects (Drop Shadows, Glows, Blurs, etc.) will be created with pixels which measure 1/300th of an inch, according to Illustrator's rulers which, again, always refer to an actual unit of measure. So if your rulers are set to Inches, a 1 inch by 1 inch Effect will be rasterized to 300 x 300 pixels. If you change your rulers to "Pixels", the Effect will still be rasterized to 300 x 300 pixels, but your ruler will indicate that that raster image only measures 72 x 72 "Pixels." What that really means is merely that the image measures 72 points, which is equal to 1 inch.
    Don't blame me. I didn't design the program.
    JET

Maybe you are looking for

  • B&W G3/450/built-in SCSI

    I installed 10.3 on the original SCSI drives of two B&W towers. The install went smoothly, but on startup I now get the grey forbidden (circle w/slash) symbol. The firmware seems to be v1.1; I downloaded the v1.2 file and tried to install under 9.2.2

  • ITunes crashed while iPod software being updated

    I didn't notice this variation of the problem in any other post. I was downloading a CD into iTunes. Meanwhile, I plugged in my iPod (color display). (It happened to be in lock mode at the time.) The message came up about updating the iPod software,

  • Rich text editor problem

    Hi, I'm using stellent 7.5.1. I cannot upload pics and/or update text via the rich text editor .. The editor field opens, but just stays grey, i.e. they don't have any option of entering or saving text. I have even checked Java version its fine. Do i

  • Trackpad Middle click or 3-finger click to open new browser tabs

    I can't figure out how to use the "Middle-Click" feature of most browsers to open a new tab. Can we not use a 3-finger click on links to open in a new tab? The only way I have found is by using a USB or Bluetooth mouse, or Command+Click. Too much wor

  • Idoc entering status 51

    Hello ,    This problem is little different . When IDOC is processed it enters status 51 Error:Enter the requested delivery quantity If we keep break point in respective fn module and reprocess the idoc then it enters status 68 Error : no further pro