Dynamic values for JSF selectOneMenu using javascrpt. JSF validation error.

Hi,
Im using Myfaces 1.2 (tomahawk) . I have a very bulky page having lot of drop down menus. It has a datatable containing four drop downs in a row and the datatable has close to 40 rows (with pagination) . Each of the drop downs have close to 100 items . This makes the page size very huge and not suitable for an internet application.
Im thinking of a way to have the drop downs populated using javascript in body onload event so that the page size reduces drastically. I have defined a selectOneMenu without selectItems. So before page load there will be no items in the drop down. The body onLoad method populates the drop downs and the page gets rendered as expected. All the javascript events related to these drop downs works fine. When page is submitted i want the selected value in the bean variable.
But when the page gets submitted im getting the error
Validation Error: Value is not valid
Can someone let me know the reason behind this and a way to solve this problem . Its really URGENT...
Please help....
Thanks,
Swami.

JSFdeveloper wrote:
Validation Error: Value is not valid During validations phase, the submitted value of UISelectOne/UISelectMany will be tested against the current SelectItems. If it is not covered by the SelectItems, you will get this error.
Its really URGENT...This is your own problem, not our problem. This way you're only trying to move the problem/pressure to us and pushing us to respond soon. This is considered very rude in terms of netiquette. Next time you do so, I have no problem adding you to my ignore list. [Just ask questions the smart way|http://catb.org/esr/faqs/smart-questions.html].

Similar Messages

  • How to know the dynamic values for this :AND category_id_query IN (1, :3, )

    Hi Team,
    R12 Instance :
    Oracle Installed Base Agent User Responsibility --> Item Instances -->
    Item Instance: Item Instances > View : Item Instance : xxxxx> Contracts : Item Instance : xxxxx> Service Contract: xxxxx>
    In the above page there are two table regions.
    Notes.
    -------------------------------------Table Region---------------------------
    Attachments
    -------------------------------------Table Region---------------------------
    --the attachments are shown using the query from the fnd_lobs and fnd_docs etc...
    I want to know what are the document types are displayed in this page ?
    --We developed a custom program to attach the attachments to the  services contracts and the above seeded OAF page displays those ..as needed.
    But after recent changes..the Attachments--> table region is not showing the attachments.
    I have verified the query..and could not find any clue in that..
    but i need some help if you guys can provide..
    SELECT *
    FROM
    *(SELECT d.DOCUMENT_ID,*
    d.DATATYPE_ID,
    d.DATATYPE_NAME,
    d.DESCRIPTION,
    DECODE(d.FILE_NAME, NULL,
    *(SELECT message_text*
    FROM fnd_new_messages
    WHERE message_name = 'FND_UNDEFINED'
    AND application_id = 0
    AND language_code  = userenv('LANG')
    *), d.FILE_NAME)FileName,*
    d.MEDIA_ID,
    d.CATEGORY_ID,
    d.DM_NODE,
    d.DM_FOLDER_PATH,
    d.DM_TYPE,
    d.DM_DOCUMENT_ID,
    d.DM_VERSION_NUMBER,
    ad.ATTACHED_DOCUMENT_ID,
    ad.ENTITY_NAME,
    ad.PK1_VALUE,
    ad.PK2_VALUE,
    ad.PK3_VALUE,
    ad.PK4_VALUE,
    ad.PK5_VALUE,
    d.usage_type,
    d.security_type,
    d.security_id,
    ad.category_id attachment_catgeory_id,
    ad.status,
    d.storage_type,
    d.image_type,
    d.START_DATE_ACTIVE,
    d.END_DATE_ACTIVE,
    d.REQUEST_ID,
    d.PROGRAM_APPLICATION_ID,
    d.PROGRAM_ID,
    d.category_description,
    d.publish_flag,
    DECODE(ad.category_id, NULL, d.category_id, ad.category_id) category_id_query,
    d.URL,
    d.TITLE
    FROM FND_DOCUMENTS_VL d,
    FND_ATTACHED_DOCUMENTS ad
    WHERE d.DOCUMENT_ID = ad.DOCUMENT_ID
    *) QRSLT*
    WHERE ((entity_name    ='OKC_K_HEADERS_V'-- :1
    AND pk1_value          IN ( 600144,599046) --:2
    AND category_id_query IN (1, :3, :4, :5, :6, :7) )
    AND datatype_id       IN (6,2,1,5)
    AND (SECURITY_TYPE     =4
    OR PUBLISH_FLAG        ='Y')))
    --='000180931' -- 'ADP118'
    The above seeded query is the one which is used for table region to retrieve the data..
    how to know the dynamic values for this : AND category_id_query IN (1, :3, :4, :5, :6, :7) )
    --Sridhar                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi Patricia,
    is it working for restricted key figure and calculated key figure ??
    Note Number Fisc Period Opening Days
    1 1 2
    2 1 3
    3 1 0
    because I have other restriction, so I create two restricted key figure..
    RK1  with restriction :  Total Number of Note,
    RK2  with restriction :  Total Opening Days ,
    then I Created a calculated key figure, average opening days in a period
    CK1 = RK2 / RK1..
    in this case, I am not sure if it will work or not..
    for example, during RK2 calclation, it might be this   2+3 = 5, the line with 0 will be ignored..
    during RK1 calcualtion, it might be 1 + 1 + 1 = 3. ---> Not sure in this case, the line with opening days 0 will be calculated or not..
    could you please confirm..

  • How to set value for Dropdown control using Querystring filter wepart

    Hi,
    I have a dropdown in my customized list form and need to set the value for the dropdown control using query string filter web part.
    I am able to set value for textbox control using Query String Filer web part.
    But, since the dropdown values are not populated on form load, the value is not set for dropdown control.
    How to load the values in dropdown control on form load and set a value using Query String filter webpart?
    Thanks,
    dhijit

    Hi,
    According to your post, my understanding is that you want to filter choice field using Query String Filter web part.
    To filter using query string filter web part, we can set the default value for the choice field in the query string filter web part panel as below, then connect to the list.
    Now it would be filter by the value you have set.
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Invalid character value for cast specification using SSIS? Please assist

    SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft
    SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "Invalid character value for cast specification". There was an error with input column "INV_DT" (627) on input "OLE DB Destination Input" (332). The column status
    returned was: "The value could not be converted because of a potential loss of data.". SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "input "OLE DB Destination Input" (332)" failed because error code 0xC0209077 occurred,
    and the error row disposition on "input "OLE DB Destination Input" (332)" specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information
    about the failure. SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "OLE DB Destination" (319) failed with error code 0xC0209029 while processing input "OLE DB Destination Input" (332). The identified component
    returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information about the failure. The attempt
    to add a row to the Data Flow task buffer failed with error code 0xC0047020. SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component "OLE DB Source" (1) returned error code 0xC02020C4. The component returned a failure code when
    the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.

    Hi Jony2422,
    From the error message, we can infer the issue is caused by the input column “INV_DT” cannot convert to the output column in OLE DB Destination.
    Based on my research, the exactly cause is the data type of input column “INV_DT” can convert to the data type of corresponding output column, but the data in the input column “INV_DT” cannot convert to the data type of corresponding output column. We can
    verify the issue in the Advanced Editor dialog box of OLE DB Destination.
    To avoid this issue, please make sure the input column can convert to the output column in OLE DB Destination, including the all the values in the input column. For more details, please refer to Visakh's suggestions.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Function module expression for dynamic value for Cost center in BRF

    Hello Experts,
    We are in SRM 7.0 and our business object is shopping cart using BRF.
    Right now we have Cost Center Approver and its evaluation id ()zev_sc_**_*) has expression zc_sc_*_** that checks whether overallvalue >= 5000. It initiates cost center approver only if value is greater than or equal to 5000. But this is static expression. We want it in a dynamic way so that we don't have to modify this value frequently. Therefore we have set approach to use an expression of Function Module BAdI as expression. We have a new z table which contains value field zval. Now I want to know how or what should be the process so that this FM knows the corresponding value from a z table that user might select in the SC.How it should be linked to this. I am using /SAPSRM/WF_BRF_0EXP000 function module. Please advise where should the code be written ? Any method ? And what should be the exporting and importing parameters for this ?
    Right now I can see EV_VALUE, EV_TYPE, EV_CURRENCY etc as exporting paramters. Looking for your suggestions experts.
    Thank you.
    Best regards.

    Dear abhijeet,
    just follow the steps.
    i) I believe you have created the event as Zev_***  with implememt Class     0EVENT.
    ii) copy the std fm /SAPSRM/WF_BRF_0EXP000 to z custom fm
    iii)  since you want to have an  expression as function module procurement type create expression  with                                                                               
    expression type  0CF001
                                                                                    result type B ( boolean)
                                                                                    Buffering as event-controlled buffering
    and very important procurement type as function module.
    iv) immediatly you may find written as AccessFM where pass your custom z function module.
    v) finally link this expression to your event.
    In the custom function module  the exporting parameter EV_VALUE is solely responsible for identifieng the approval based upon the approval criteria. If the field EV_VALUE = 'X' this notify that the approval is required  for current process level, otherwise if it is initial then it will skip the current level and continue with the next level.
    whatever your coding should be written in FM.
    just look into below code
      DATA LO_WF_BRF_EVENT       TYPE REF TO /SAPSRM/CL_WF_BRF_EVENT.
      DATA LO_CONTEXT_PROVIDER   TYPE REF TO /SAPSRM/IF_WF_CONTEXT_PROVIDER.
      DATA: LV_HEADER LIKE BBP_PDS_SC_HEADER_D.
      DATA: LT_ITEM TYPE STANDARD TABLE OF BBP_PDS_SC_ITEM_D.
      LO_WF_BRF_EVENT ?= IO_EVENT.
      LO_CONTEXT_PROVIDER = LO_WF_BRF_EVENT->GET_CONTEXT_PROVIDER( ).
      CALL METHOD LO_CONTEXT_PROVIDER->GET_DOCUMENT
        IMPORTING
          EV_DOCUMENT_GUID = LV_DOCUMENT_GUID
          EV_DOCUMENT_TYPE = LV_DOCUMENT_TYPE.
    pass this guid in the below function module in order to get the SC details.
    GET SC DETAILS
      CALL FUNCTION 'BBP_PD_SC_GETDETAIL'
        EXPORTING
          I_GUID    = LV_DOCUMENT_GUID
        IMPORTING
          E_HEADER  = LV_HEADER
        TABLES
          E_ITEM    = LT_ITEM
    After that loop the internal  table LT__ITEM   and you decide based upon your approval criteria for each line item level wheather the gross price of  line item is exceed 5000k or not.
    you should decide the value for field EV_VALUE within the loop so that each line item will be verified for approval.
    Pls contribute if this helpfull.
    regards
    sahil purushan

  • Issue in creating limits value for service PR using BAPI_REQUISITION_CREATE

    HI Experts
    I am creating a service PR using bapi bapi_requisition_create.I am able to create service PR successfully, but I am not able to set value for overall limit and the Expected value.
    I am passing the limits values through bapi, but when I am trying to display those value in the limits tab in ME53N, it gives dump.
    Please suggest how can I set the limits value.
    regards
    Ashwini

    Could Ashwini or anyone else please suggest how this issue was resolved? I am using BAPI_REQUISITION_CREATE, but the limits I enter in the REQUISITION_LIMITS table, do not get saved, although the Purchase Requisition itself gets created.

  • How to have a common value for a column using sql loader

    Hi Have a sql loader file which looks like below. But I am not getting how insert the same value for the column in all rows.
    id,
    crt_user_id
    BEGINDATA
    1;"system"
    2;"system"
    3;"system"
    So, instead of entering the crt_user_id as system in all rows, can we place the value at the top after the column name?

    Thanks Srini. your hint/suggestion helped me in finding the solution.
    LOAD DATA
    INFILE *
    BADFILE './TEST.BAD'
    DISCARDFILE './TEST.DSC'
    APPEND INTO TABLE TEST_TABLE
    Fields terminated by ";" Optionally enclosed by '"'
    ID,
    crt_user_id CONSTANT 'SOME CONSTANT VALUE'
    BEGINDATA
    1
    2
    3
    so by using CONSTANT key word, we can avoid tying the same value in the data

  • Passing and Parsing Multiple values for 1 Parameter using ASP and reportInterface.ReportParameters

    Post Author: ckwizard77
    CA Forum: Crystal Reports
    HELP!!
    I have been knocking my head against a wall trying to figure out how to pass multiple values to 1 parameter and how to add it to the parameter collection. I have code so if I pass single values for each parameter it works fine. I am passing the parmeters and values in a pipe delimited string through a url where it gets parsed and pass in here.
    Any help would be greatly appreciated.
    Here is the single param code:
    Public Sub SetParamValues(ReportName, strParamName, ParamValue) Dim i,reportInterface, ParamName,strSubReprotName,CurrentValues        Set reportInterface = reportObject.PluginInterface("")      Set reportParameters = result.Item(1).PluginInterface("Report").ReportParameters      For i=1 to reportParameters.Count           if ReportName <>"" then                 strSubReprotName=reportInterface.ReportParameters.Item(i).ReportName               if strSubReprotName=ReportName then                    ParamName = reportInterface.ReportParameters.Item(i).ParameterName                    if ucase(ParamName)=Ucase(strParamName) then                         Set CurrentValues = reportInterface.ReportParameters.Item(i).CurrentValues                         CurrentValues.Clear()                         Dim newSingleParameter                         Set newSingleParameter = ReportInterface.ReportParameters.Item(i).CreateSingleValue                         newSingleParameter.Value = ParamValue                         reportInterface.ReportParameters.Item(i).CurrentValues.Add newSingleParameter                         reportInterface.ReportParameters.Item(i).PromptOnDemandViewing=false                         iStore.Commit result                    End if               End if          Else               ParamName = reportInterface.ReportParameters.Item(i).ParameterName               Set param1 = reportInterface.ReportParameters.Item(i)               if Ucase(ParamName)=UCase(strParamName) then                     Set CurrentValues = reportInterface.ReportParameters.Item(i).CurrentValues                    CurrentValues.Clear()                    Set newSingleParameter = ReportInterface.ReportParameters.Item(i).CreateSingleValue                    newSingleParameter.Value = ParamValue                    reportInterface.ReportParameters.Item(i).CurrentValues.Add newSingleParameter                    reportInterface.ReportParameters.Item(i).PromptOnDemandViewing=false                    iStore.Commit result                End if         End if      NextEnd Sub

    That Makes sense.
    thanks a lot !
    Well now are at it, mind if I ask you another quick question:
    If I make an option in the multiselect list called ALL which should return all the results:
    as should act like this
    select * from dept;
    you solution was:
    select * from dept
    where INSTR(':'||:P1_EMPNO||':', ':'||empno ||':') > 0
    Can I modify this to return all the rows ?

  • How to use dynamic values for service-ref

    service-ref element allows for static configuration for endpoint reference as follows:
    <copy>
    <from>
    <literal>
    <sref:service-ref xmlns:sref="http://docs.oasis-open.org/wsbpel/2.0/serviceref">
    <EndpointReference xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable">
    <Address>http://localhost:8080/mockservice</Address>
    </EndpointReference>
    </sref:service-ref>
    </literal>
    </from>
    <to>$serviceref</to>
    </copy>
    I want to change the address value dynamically in service-ref element. How can I achieve it ?

    Hi,
    Why don't you try:
    1. Bpel references
    You can select a BPEL reference property in your composite.xml and use it within your bpel process. This is explained here:
    http://orasoa.blogspot.co.uk/2009/08/soa-11g-preferences.html
    Then you can create a deployment configuration plan. Right-click on the composite file and generate a deployment configuration plan for your composite. This should create a search/replace construction for your preference.
    2. DVM (Data Value Maps)
    You can populate the address by using dvm lookup function. Create a DVM file with two columns, one to specify the Address/URL and populate the other column with the actual value. Use the address as your unique lookup criteria to retrieve the value. This value can be configured per environment.
    Hope this helps.
    Thanks
    Sander

  • Dynamic values for column header / "AS" using XMLFOREST

    Hello,
    I was wondering if it was possible to show data from a select statement into an AS column, e.g. SELECT col.a AS col.b.
    The reason I need this is for XMLFOREST, as I need the value of a SELECT statement to be the column name, so that it will be the value of the element. e.g. <col.b></col.b>
    Anyone know if/how I can do this?

    SQL> ed
    Wrote file afiedt.buf
      1  WITH t AS (SELECT 'fred' name FROM DUAL UNION SELECT 'bob' FROM DUAL)
      2* SELECT XMLELEMENT(EVALNAME name, name) FROM t
    SQL> /
    ERROR:
    ORA-19039: Keyword EVALNAME reserved for future use
    no rows selected
    SQL> ed
    Wrote file afiedt.buf**** Throws a bit of magic dust into SQL...... ****
    SQL> WITH t AS (SELECT 'fred' name FROM DUAL UNION SELECT 'bob' FROM DUAL)
      2  SELECT XMLELEMENT(EVALNAME name, name) FROM t
      3  /
    XMLELEMENT(EVALNAMENAME,NAME)
    <bob>bob</bob>
    <fred>fred</fred>
    SQL>This is an example of what you'll be able to do with 10.2.0.2 when it's released

  • Dynamic Values for text

    I apologize in advance.  Not much of a web designer or code guy here, but I just need to create a simple animation to be dropped into a MUSE creation and I think Edge Animate is the right way to do it.  For the life of me I cannot figure out how.
    Basically, I want to create a simple animation to explain the dimensions of a product.  A line with arrows on both ends would grow to the length of a line drawing symbolizing its height for example.
    Accompanying that would be a text box that I would like to simply count up from 0.0" to 3.5" for instance.
    The question is how do I dynamically update the text from 0.0 to 3.5 across a 2 second animation in Edge Animate?
    Is this even available or is this why people are still using Flash.
    Thanks in advance and apologies for the naivety!
    Karl

    Hi Karl,
    No naive at all : a very interesting exercise.
    We use three elements
    • a rectangular shape ;
    • a diamond cursor that moves along the shape (2 s tweening) ;
    • a text value element.
    1) The first solution leverages the update event that is fired by the timeline.
    First define constants that you can modify to your needs.
    Stage > creationComplete event handler :
    endValue = 35;
    duration = 2000; // 2000 ms
    Timeline.update event handler (accessed via the top left bullet+curly braces icon : circled on the screen capture) :
    var newValue = Math.floor( sym.getPosition()/duration *endValue);
    sym.$('value').text(newValue);
    sym.getPosition() gives the current position of the playhead in ms. We divide it by the total duration of the animation and multiply by the end value to display. Math.floor rounds to an integer value.
    2) The second solution leverages the JavaScript setInterval function, which calls a function at regular interval. For that, we define a new variable frequency : you can tweak its value until you get the correct frequency for the update.
    Stage > creationComplete event handler
    endValue = 35;
    duration = 2000; // 2000 ms
    frequency = 100;
    setInterval(function()
        var newValue = Math.floor( sym.getPosition()/duration *endValue);
        sym.$('value').text(newValue);
      }, frequency);
    Download the two versions here : https://app.box.com/s/gi7hownshaz6rti8kggu
    Gil

  • Invalid values for negative counts using DAQmxReadCounterF64 for edge counting

    I am seeing this issue with using DAQmxReadCounterF64 with
    simple edge counting. If the counter reads a negative count value, it
    returns a number that looks like an unsigned 32-bit number rolled over
    (~4294967295).
    I am using DAQmx v8.9.5. PXI-6602 with Windows XP, programming in C++.
    Is this a bug in the driver?

    Hi Mroche,
    You're correct that the number you are seeing is the rollover of an unsigned 32-bit integer.  Newer DAQ products use a 32-bit count register (e.g. M Series, TIO, X Series).  In this register, the value -1 is represented the same as 232-1. 
    I wouldn't call this a bug exactly.  The value you are reading is what is in the count register, and I don't think it makes sense to necessarily assume that 4294967295 should be scaled to -1 for all cases.  Making this assumption would result in undesired behavior for anybody trying to count to 231 or higher (at which point the count would roll over to -231).
    Having said that... position measurements are treated differently starting in DAQmx 9.0 due to the behavior reported on another thread which was in fact deemed a bug (which I notice you have seen already).  The driver casts the raw count to I32 before scaling it to a position.
    Now, I'm not so sure it makes sense to treat the two measurement types differently, but I think the reasoning behind the decision was that negative values make sense when talking about position, but for counting edges not quite as much (what exactly is a negative number of edges?).  In the count edges case, I think it makes the most sense for DAQmx to allow the user to handle rollovers himself.  At the end of the day, all the driver can do is change where the rollover occurs (either at 0 = 232 or 231 = -231).
    In your case, if you want to read (-) values on your count edges task, the easiest way to accomplish this is to read the data back as U32 (DAQmxReadCounterU32) then type cast it to I32.  This will give the result that I think you are looking for.
    If you have any suggestions to help improve usability, please feel free to post to the DAQ Idea Exchange.  Some preliminary ideas to make this experience a little more intuitive might include a property node to set how the data is cast, or perhaps have the driver cast the data to I32 if the Count Direction is set to anything other than Count Up.  Although, the 2nd idea has the potential to break existing applications so it might not be as viable of an option.
    Best Regards,
    John Passiak

  • Set different default values for table built using subforms

    I'm using Designer 7.1 and need to have tables with a fixed number of rows, where the first column is readonly and displays a set of distinct values. For example
    Body System Normal Abnormal Comments
    Head
    Neck
    Respiratory
    etc.
    I'm constrained to building the table using subforms. I'd love to do it using the new table feature but this will not interface with our software.
    I'm trying to put Javascript code in the Initialize section of the body subform that puts a different value in each row. I'm not finding a way to distinguish one row from the other. If I simply say
    this.body_system.rawValue = 'Head'
    Then all of the rows will have 'Head' in the first column.
    I've tried the following but it doesn't work:
    this.body_system.rawValue[0] = 'Head'
    this.body_system.rawValue[1] = 'Neck'
    Thanks for your help!
    Peter

    That worked perfectly. I'd love to have figured that out myself but it must be buried in the help somewhere. Is there a good reference document for LiveCycle Designer Javascript? I've scoured around but could only find bits and pieces.
    BTW here's the code that worked:
    xfa.datasets.data.resolveNode("form1.TableParent.TableBodyRow[0].body_system").value = 'Head;
    xfa.datasets.data.resolveNode("form1.TableParent.TableBodyRow[1].body_system").value = 'Neck';
    etc.
    Thanks so much!
    Peter

  • How to set dynamic value for field Month when running background job ?

    Dear guys,
    I have a Z* report in our company, in the selection screen there is a period field (Month and Year) and this report running in background job periodically. My Question is how i can set for Month field become dynamic follow month value of date when this report executed ?
    Example :
    When Z* report running in background on 16.04.2008, Month Value will be 04 and when running on 16.05.2008, Month Value will be 05.
    Please advice.
    Regards
    Gunawan

    Dear guys,
    I have a Z* report in our company, in the selection screen there is a period field (Month and Year) and this report running in background job periodically. My Question is how i can set for Month field become dynamic follow month value of date when this report executed ?
    Example :
    When Z* report running in background on 16.04.2008, Month Value will be 04 and when running on 16.05.2008, Month Value will be 05.
    Please advice.
    Regards
    Gunawan

  • How to get accurate values for select statement using single column

    Hi All,
    Below is my query which runs fine
    Select Distinct Top 4
    FiscalYearId,
    FiscalMonthOfYearId
    From ODS.Common.tODS_Date
    Inner Join
    UTL.Utility.tUTL_ProcessDate
    On tODS_Date.DateShort < tUTL_ProcessDate.ProcessDate
    And tUTL_ProcessDate.DatabaseName = 'ODS'
    Order By
    FiscalYearId Desc,
    FiscalMonthOfYearId Desc
    Below is the generate output
    FiscalYearId FiscalMonthOfYearId
    2014 2
    2014 1
    2013 12
    2013 11
    But i want to use this query in one of my where clause condition as its being used in the where clause it can only return 1 row.So, i tried something like this
    Select Distinct Top 4
    FiscalMonthOfYearId
    From ODS.Common.tODS_Date
    Inner Join
    UTL.Utility.tUTL_ProcessDate
    On tODS_Date.DateShort < tUTL_ProcessDate.ProcessDate
    And tUTL_ProcessDate.DatabaseName = 'ODS'
    Order By
    FiscalMonthOfYearId Desc
    And the result set of this one gives me the output like
    FiscalMonthOfYearId
    12
    11
    10
    9
    Which is not correct,( if you see the result set above). 
    Can someone please help me with any ides on this.

    If you want to use this query in the WHERE clause, then use it with EXISTS option which allows to return more than 1 column. 
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

Maybe you are looking for

  • Can not view my purchases in app store, on none of my iphones or ipad...

    my purchases will not come up for nothing,..I have done restored my phones n pad..all im going to for it Not to help....if this dont get fix...sorry kids these phones n pads are going to sold,..n we as a family moving on to better ones...sorry for so

  • 30 inch display compatibilty

    will the 30 inch disply work with the imac or air

  • Boxed Contents!

    Just received my LR V1 Box, it contains loads of extra stuff!! Adobe Reader 8.0 Help.pdf Adobe Support Info.pdf ReadMe.html And..... Samples! Lets open up quick quick!..... Hang on.... what the...!! One, 1, yes ONE sample .dng image! Let me read that

  • Configuring Proxy servers for Mail.app

    Hello, and sorry if this question has been answered b4, but I couldn't find an answer... basically, I have to go thru proxy server at work to connect to the internet on my MBP, which I configured with Network Preferences (I enabled ftp, http, https,

  • [svn:cairngorm3:] 16694: Adding a custom IconButton component.

    Revision: 16694 Revision: 16694 Author:   [email protected] Date:     2010-06-28 05:20:58 -0700 (Mon, 28 Jun 2010) Log Message: Adding a custom IconButton component. Using the ErrorPolicy.RETHROW flag for unhandled exceptions Modified Paths:     cair