Set value for subreport on load or current-to prevent dispalying "#Error"

I've got a Work Orders Report which I use to Print Production Copies for Operators.  This report uses a subreport to pass information about Purchase Orders to the Report and then I use "=[Reports]![WORK ORDERS REPORT]![AssociaterQuery subreport]![SIZE]"
to display the information in text boxes on my main report.  The problem is that sometimes customers supply their own raw material and there is no Purchase Order record, this causes "#Error" to be displayed in my text boxes, which can be confusing.
 I've got a "Customer Supplied Checkbox" to denote that the customer is supplying their own material.  So I'm trying to use an OnLoad event to set these values to an empty string, but I can't quite get it correct.  This is what I've
been trying so far, where am I going wrong?  
js
Private Sub Report_Load()
If Me.CustSupplied Is true Then
[Reports]![WORK ORDERS REPORT]![AssociaterQuery subreport]![Size] = ""
End If
End Sub

I've got a Work Orders Report which I use to Print Production Copies for Operators.  This report uses a subreport to pass information about Purchase Orders to the Report and then I use "=[Reports]![WORK ORDERS REPORT]![AssociaterQuery subreport]![SIZE]"
to display the information in text boxes on my main report.  The problem is that sometimes customers supply their own raw material and there is no Purchase Order record, this causes "#Error" to be displayed in my text boxes, which can be confusing.
 I've got a "Customer Supplied Checkbox" to denote that the customer is supplying their own material.  So I'm trying to use an OnLoad event to set these values to an empty string, but I can't quite get it correct.  This is what I've
been trying so far, where am I going wrong?  
js
Private Sub Report_Load()
If Me.CustSupplied Is true Then
[Reports]![WORK ORDERS REPORT]![AssociaterQuery subreport]![Size] = ""
End If
End Sub
Hi jswan,
If you say:   "=[Reports]![WORK ORDERS REPORT]![AssociaterQuery subreport]![SIZE]" to display the information in text boxes on my main report
then the text box GETS the information form the control SIZE.
In your case you can better use:
Private Sub Report_Load()
If Me.CustSupplied Is true Then
<text box> = ""
Else
<text box> = [Reports]![WORK ORDERS REPORT]![AssociaterQuery subreport]![Size]
End If
End Sub
Substitute for <text box> the real name of the text box.
Imb.

Similar Messages

  • Is there any way we can set default value for a Date Attribute to current date in Master Data Services

    Is there any way we can set default value for a Date Attribute to current date in Master Data Services.
    I as well wants to know that is there any posibility to show Calendar control while input data into respective date attributes.
    Thanks.

    Hi Anagha,
    So far i havent found any way to set todays date by default from MMI, but i guess this flow should work as workaroud
    1. Add buisness rule which can set a default value when Date = NULL/Blank
    2.get the entity table ,use -select EntityTable from mdm.tblEntity where Name = '<enter entity name>'
    3.Go to that table and add a after update trigger like
    if uda_<entityid>_<attributeid(Date attribute)> = default value
    update uda_<entityid>_<attributeid(Date attribute)> =getdate() where id = <LastUpdatedRow>
    I will check on this too from my side.
    By the way AFAIK i dont think so calendar control integration is possible .

  • 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

  • How to set value for trim and bleed using jsx script?

    I have tried using bleedoffsetRect but somehow it is not working. Can anybody please help me on how to set value for trim and bleed using jsx script? Any example will be highly appreciated.
    Following is the code I am trying with:
    var _saveName = new File ( root_path +_strFileName+".pdf");
        var _saveOpts = new PDFSaveOptions();
        _saveOpts.printerResolution = 300; 
        var bleedarray = new Array();
         bleedarray[0] =9.00;
         bleedarray[1]=9.00;
         bleedarray[2]=9.00;
         bleedarray[3]=9.00;    
        _saveOpts.bleedOffsetRect = bleedarray;

    I would expect although I've not actually tried this for the bleed off set box to be larger than the artbaord and the first two values to be negative or 0…
    var bleedarray = new Array(-9,-9,artboard.width+9,artboard.height+9);
    Where 'artboard.width' & 'artboard.height' you will have calculated from your file. An Array(9,9,9,9); would not constitute any boxes bounds.

  • SAP BEX Analyzer Set values for variables

    Please help us out in sorting out this problem,
    We are automating BEx Analyzer for a Testing Project with Quick Test Professional (QTP) a functional automation tool uses VB script.
    Problem:
    There are 5 steps in automation
    Invoke BEx Application
    Log in to BEx server
    Run Query
    Set values for Variables for Query
    Display Report
    We are able to do 1,2,3 steps using BEx API functions and running BEx macros but we struck up with 4th step,
    1. Invoke BEx Application
    ‘Launch Excel
    Dim app
    Set app = createobject("Excel.Application")
    ‘Make it visible
    app.Visible = true
    ‘Attach add-in to Excel file
    app.Run ("'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SetStart")
    2. Log in to BEx server
    Login to Bex server
    Function logonToBW(app)
    Dim myConnection
    Dim logonToBW2
    On Error Resume Next
    logonToBW2 = True
    ' Create logon to system with following user and system details
    Set myConnection = app.Run ("'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'! SAPBEXgetConnection")
    With myConnection
    .client = "600"
    .User = "USERNAME"
    .Password = "Welcom123"
    .Language = "en"
    .systemnumber = "00"
    .System = "BWDCLNT600"
    .systemid = "BWD"
    .ApplicationServer = "156.158.7.161"
    .SAProuter = ""
    .Logon 0, true
         If .IsConnected = 0 Then
               .Logon 0, False
    If .IsConnected <> 1 Then
    MsgBox "Automatic logon failed. Please enter your username and password in the next screen ..."
    Exit Function
    End If
    End If
    End With
    ' Run connection query to see if connected
    app.Run ("'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXinitConnection")
    logonToBW2 = True
    End Function
    3. Run a Query
    app.Run "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'! runQuery", "ZZCCA3_M01_Q0003"
    Till here the script is running fine then the “Select values for Variables” window is displayed.
    This is where exactly we struck up; in this window we need to select values.
    Name of the Fields
         Field Name     Technical name of characteristic     Variable Name     Value
    1     Company Code                     0COMP_CODE     ZM_COMPCODE     1000
    2     Cost Center Hierarchy          0COSTCENTER     ZS_CCTRN     1000MDON
    3     Cost Center Node     0COSTCENTER     ZS_CCTRN     1000COP
    4     Cost Element          0COSTELEMENT     ZS_COELN     1000GDON_6999
    5     Fiscal Year     0FISCYEAR     0P_FYEAR     2007
    To select values for variables, we are trying below code but its giving an error,
    app.Run  "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXSetFilterValue", “1000”, "0COMP_CODE"
    app.Run  "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXSetFilterValue", “1000MDON”, " 0COSTCENTER "
    app.Run  "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXSetFilterValue", “1000COP”,  "0COSTCENTER"
    app.Run  "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXSetFilterValue", “1000GDON_6999”,  "0COSTELEMENT "
    app.Run  "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXSetFilterValue", “2007”,  " 0FISCYEAR"
    Any help highly appreciated, thanks in advance.

    Hi Reinhard,
    Pleas look at this:
    Passing a range to SAPBEX.XLA!SAPBEXSetFilterValue
    Best regards,
    Eugene

  • Setting values for non-displayed fields on a Tabular Form

    I'm having a problem setting non-displayed fields on the same table as displayed fields like last_update_date, last_updated_by, id's and other fields when creating new records or updating existing records in a Tabular form.
    What is the best and easiest way to set these values without using database triggers?

    Hi Jes,
    I'm a little reluctant to use database triggers as I used this product a couple of years ago and I'm fairly sure I handled this problem in HTML DB without the use of triggers. I am therefore I'm getting a touch frustrated that I can't remember how to do it now !!
    Do you know of any way of setting values for non-displayed fields on a Tabular Form without using database triggers?
    Also, you seem to be suggesting that database triggers is the best way to do this?
    Thanks

  • Which are the setting values for the Virtual CTI Driver? (Siebel Communica)

    hi everybody,
    the application I'm using is Siebel Communications 8.1.
    I am learning about integration processes with the Siebel Communications Server Administration Guide. One of the points or topics there is the use of the Virtual CTI to integrate your Siebel Business Applications with Oracle Contact Center Anywhere (as in the bookshelf described).
    I've read, with this driver agents can access communications functionality using the communications toolbar.
    The Virtual CTI is a driver provided by Oracle. You can't see it listed on the Administration -> Communications ----> Communications Drivers and Profiles. So I guess it is important to add this driver to the list.
    I have questions about that:
    1. Should I add this driver to the list? or when can I do that?
    2. Which are the setting values for the mentioned driver?
    - Communications Channel?
    - Inbound Yes
    - Outbound Yes
    - Interactive
    - Channel string
    - Library name
    Could anybody help me? I would appreciate that.
    Regards

    Thanks for the reply KT.
    I am not sure how to set a new custom style, but will look it up. If you have a url that points to the topic I would appreciate it.
    Thanks,
    Rhek

  • Using HttpHeader to set value for session variables

    Hi,
    We want to set values for 2 session variables (USER and ROLEID) using HttpHeader in obiee 11g. Has anyone tried this? How can we achieve this?
    I found the below note on the forum for setting value for the USER session variable. how can we set the ROLEID session variable also? is it possible to set values for 2 variables?
    for setting the USER session variable,
    You should add this in $BI_HOME/bifoundation/web/display/authenticationschemas.xml:
    <SchemaKeyVariable source="httpHeader" nameInSource="Proxy-Remote-User" forceValue="SSO"/>
    <AuthenticationSchema name="SSO" displayName="Single Sign On" userID="IMPERSONATE" proxyUserID="NQ_SESSION.RUNAS" options="noLogoffUI noLogonUI">
    <RequestVariable source="httpHeader" type="auth" nameInSource="Proxy-Remote-User" biVariableName="IMPERSONATE" options="required"/>
    </AuthenticationSchema>
    Please suggest.
    Thanks.

    I think maybe your SnmpValue type or value is not corrent.
    1.3.6.1.4.1.7064.201.1.200.100.0 is Enum control type
    when I use
    SnmpValue val = new SnmpString("0");
    It doesn't work, but when I use
    SnmpValue val = new SnmpInt(0);
    It works. I think the JDMK should give some warning message when the type is not correct. :)
    The code is following:
    final SnmpVarBindList setList = new SnmpVarBindList(" set varbind list ");
    SnmpOid oid = new SnmpOid("1.3.6.1.4.1.7064.201.1.200.100.0");
    SnmpValue val = new SnmpInt(0);
    SnmpVarBind valueBind = new SnmpVarBind(oid, val);
    setList.addVarBind( valueBind );
    SnmpRequest setRequest = session.snmpSetRequest(null, setList);

  • NSInvalidArgumentException : Attempt to set value for immutable property

    I get "An unexpected error has occurred. Please quit and reopen Keynote." EVERY time I try to copy a slide and change the master that controls it. Console says "Exception caught by top level: NSInvalidArgumentException : Attempt to set value for immutable property moviePoster." I'm not using any 3rd party themes. Advice from anyone?

    You can use the skip property of the train stop. You can have an EL expression for it, some thing like this #{pageFlowScope.isContinueEnabled}.
    Once all the mandatory fields are entered, you can set the isContinueEnabled flag and refresh the train button bar.
    For more info refer this: http://docs.oracle.com/cd/E14571_01/web.1111/b31974/taskflows_complex.htm#CJHFBFIE
    Also, you can try navigating to different train stops programmatically.
    Check: 082.      How-to programmatically navigate ADF train models
    in http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html

  • How to set value for radio button in sap crm survey suite

    Hi ,
    I created a survey in CRM Service, in which I added a question with answer as '10 Selection Button Group ('radio button'). And answer has 11 answer options (which means 11 radio buttions). Now when we test the survey, the value for the radio buttons is appearing like 'id_0050569b03091ee480a29d8ee61e953c'. But i want to set a specific value for each radion button (from 1 to 11). So, how to set value for radio button in sap crm survey suite???.
    Thanks & Regards,
    Seshu

    Hi,
    I found solution myself. Click on Goto -> Editing Mode -> Expert Mode. Now you can set value for radio button.
    Regards,
    Seshu

  • How to set value for selectOneChoice

    Hello,
    How to set value for selectOneChoice defined as:
    <af:selectOneChoice label="Label" id="soc1" binding="#{DepositorMergingBean.socSurnameComponent}">
    <f:selectItems id="si1" value="#{DepositorMergingBean.socSurnames}"/>
    </af:selectOneChoice>
    where socSurnames is List<SelectItem> - manually filled list of SelectItem(SomeObject, (String)text_description), so - SOC is filled manually (no binded iterators, etc..)
    Neither socSurnameComponent.setValue( new Integer(0) ) nor socSurnameComponent.setValue( socSurnames.get(0) ) do not help.
    Thanks in advance.

    this.selectOneChoice.setValue(selectItems.get(2).getValue());Try as per the following sample:
    SelectOneChoiceTest.JSPX:
    <af:form id="f1">
    <af:selectOneChoice label="Select One Choice" id="soc1"
    binding="#{SelectOneChoiceTestBean.selectOneChoice}">
    <f:selectItems value="#{SelectOneChoiceTestBean.selectItems}"
    id="si1"/>
    </af:selectOneChoice>
    <af:commandButton text="Set Selected Value" id="cb1"
    actionListener="#{SelectOneChoiceTestBean.onClick}"/>
    </af:form>
    SelectOneChoiceTestBean.java:
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.event.ActionEvent;
    import javax.faces.model.SelectItem;
    import oracle.adf.view.rich.component.rich.input.RichSelectOneChoice;
    public class SelectOneChoiceTestBean {
    private RichSelectOneChoice selectOneChoice;
    public SelectOneChoiceTestBean() {
    super();
    private List<SelectItem> selectItems;
    public void setSelectItems(List<SelectItem> selectItems) {
    this.selectItems = selectItems;
    public List<SelectItem> getSelectItems() {
    selectItems = new ArrayList<SelectItem>();
    selectItems.add(new SelectItem("One", "One"));
    selectItems.add(new SelectItem("Two", "Two"));
    selectItems.add(new SelectItem("Three", "Three"));
    return selectItems;
    public void setSelectOneChoice(RichSelectOneChoice selectOneChoice) {
    this.selectOneChoice = selectOneChoice;
    public RichSelectOneChoice getSelectOneChoice() {
    return selectOneChoice;
    public void onClick(ActionEvent actionEvent) {
    this.selectOneChoice.setValue(selectItems.get(2).getValue());
    Thanks,
    Navaneeth

  • Setting values for items other than default value

    How can I set the value of Items (hidden item, display item etc) without using any of navigational control such as list, select list or tree?
    I have a two report region on a page and no navigation control. the requirement is only one region should be displayed at one point of time.
    Condition that drives this are passed from other page through links.
    The code is like this
    For Region A
    select * from table a where cola = :P_VALUE_FROM_OTHER_PAGE; //value passed is JOE
    For Region B
    select * from table a where cola = :P_VALUE_FROM_OTHER_PAGE; //value passed is JOHNnow there is the hidden item :P_HIDDEN that i am comparing in expression1 = expression2 conditions for each region
    for e.g.
    for region A
    value in expression1 = expression2
    P_HIDDEN = 1
    for region B
    P_HIDDEN = 2my issue is, where can I set values for P_HIDDEN item (set to 1 and set to 2) without any navigational control on the page.
    Thanks,
    R
    now there is the hidden item :P_HIDDEN that i am comparing in expression1 = expression2 conditions for each region
    for e.g.
    for region A
    value in expression1 = expression2
    P_HIDDEN = 1
    for region B
    P_HIDDEN = 2
    my issue is, where can I set values for P_HIDDEN item (set to 1 and set to 2) without any navigational control on the page.
    Thanks,
    R
    Edited by: Rich V on May 21, 2010 10:41 PM

    The question I would ask is:
    How are you determining which region you want to be displayed by default?
    Either way, you could potentially use a 'before header' computation to calculate the value of your hidden item, although you'd also need to include some sort of conditional means of preventing the computation from running everytime to run the page (otherwise you'd never see your other region) e.g. you might only want it to run if the hidden item is null.

  • Setting values to properties on load

    Hi,
    I have a big Trouble on Data Populating to the components on page loading like,
    Have page1 and page2.Based on ID passed from page1,query should execute and results should set to the form on page2 through Backing Bean.
    What doing is..
    using setActionListener passing ID from page1 and setting to method in page2 as argument which gets results based on ID and sets to component properties, here the problem is..
    Before page2 loads method called first from setActionListener where we cannot set the values to properties before loading.
    How can we set values to components in backing bean only on load based on ID from other page.
    And one more issue is, if we make any code in setter property it get executes every time,
    what is the correct procedure to execute the method only on loading.
    Does there any procedure to make method to excecute only on load.
    Please suggest me, how can i overcome this issues,these were become major issue for the Development.
    Thanks,
    Bandaru.

    hi,
    we tried to achieve the same thing.. But its not possible to set the values to individual segments of a KFF..
    Thanks,
    raghav.

  • How to set value for table lines in web dynpro ?

    Hi experts,
    I'm new in webdynpro. My requirement is to set value to the second line when user press expand on first line.
    In method ONACTIONLOAD_CHILDREN , I use  get_static_attributes_table to get the current table records and change return table value .
    Then i user bind_table to pass table to the screen.
    It works fine for first time i press expand and collaps, but when i expand it again it throw out a dump 'OBJECTS_OBJREF_NOT_ASSIGNED'.
    Could any one please help to solve that?
    Thanks

    Hi Harsha,
    Thanks for your reply,I've check the dump details and it display like this:
    Information on where terminated
        Termination occurred in the ABAP program "CL_WDR_CONTEXT_ELEMENT========CP" -
         in "IF_WD_CONTEXT_ELEMENT~SET_ATTRIBUTE".
        The main program was "SAPMHTTP ".
        In the source code you have the termination point in line 40
        of the (Include) program "CL_WDR_CONTEXT_ELEMENT========CM007".
        The termination is caused because exception "CX_SY_REF_IS_INITIAL" occurred in
        procedure "IF_WD_CONTEXT_ELEMENT~SET_ATTRIBUTE" "(METHOD)", but it was neither
         handled locally nor declared
        in the RAISING clause of its signature.
        The procedure is in program "CL_WDR_CONTEXT_ELEMENT========CP "; its source
         code begins in line
        1 of the (Include program "CL_WDR_CONTEXT_ELEMENT========CM007 ".
    First time i debug it work fine but the next time it dump with same import values.  And it even did not reach the logic i add when i expand it again.
    I'm not sure why it happen.
    My code in ONACTIONLOAD_CHILDREN is like this.
    *navigate from <CONTEXT> to <ITEM_DATA> via lead selection
      lo_nd_item_data = wd_context->path_get_node( path =
      `COMP_CONTEXT.ITEM_DATA` ).
    *get element via lead selection
      lo_el_item_data = lo_nd_item_data->get_element( ).
    *get all declared attributes
      lo_nd_item_data->get_static_attributes_table(
        IMPORTING
          table = lt_item_data ).
      LOOP AT lt_item_data INTO ls_item_data.
        IF sy-tabix = 2.
          ls_item_data-description = 'TEST'.
          MODIFY lt_item_data FROM ls_item_data TRANSPORTING description.
        ENDIF.
      ENDLOOP.
        lo_nd_item_data->bind_table( new_items = lt_item_data
        set_initial_elements = abap_true ).
        lo_nd_item_data->set_lead_selection_index( 1 ).
    First line was set selected but still got dump.
    Could you please help to check this ?
    Thanks & Regards
    Eric Li

  • Could not set values for dimension in disc R2

    We have a star schema with 11 dimensions.
    We have got the data in the analytic workspace. Now we are trying to create a cross-tab workbook using the wizard in Discoverer Plus R2. We were trying to have the slice of data based upon only Security Type dimension and Maturity dimension.
    Now the tool is asking us to put default values for all other dimensions.
    I could set the desired values for DIM_ASSET_CLASS and DIM_COUNTRY (which are first two). But I could not do it for DIM_CURRENCY (which is the third in the list).
    I click on the “more…” but it never came back with data. Same happened for rest of the dimensions. Hence no data came on the sheet when I click on the “Finish” button. I observed that all those dimensions, in question, the tool has taken defaults (the first available records for each dimension) and which combination does not exists.
    Why the tool is behaving like this? Am I doing anything wrong?
    Also, when I tried to create a worksheet with all eleven dimensions it did not produce any results. Could you please suggest what may be wrong?

    In the Create User UI Task, add an action task which sets the MX_PASSWORD and MX_ENCRYPTED_PASSWORD attributes
    In the To Identity Store Pass use the following mappings
         mskeyvalue     %mskeyvalue%
         MX_ENCRYPTED_PASSWORD     $FUNCTION.sap_encryptPassword()$$
         MX_PASSWORD     $FUNCTION.sap_encryptPasswordMD5()$$
         changeType     modify
    This causes the system to generate a password. Note we haven't got the MX_PASSWORD field in our Create User UI Task
    For Password Reset adding the MX_PASSWORD to the UI is all that's required. When set from the UI the password policy is invoked and the appropriate tasks mapped on the Password Policy Tab of the Identity Store Configuration are triggered. You need to tick Enable password provisioning.
    From the Help file:
    Select this check box to specify that a two-way encrypted version of the password (MX_ENCRYPTED_PASSWORD) should be stored separately to be used for password provisioning. This is in addition to the hashed password (MX_PASSWORD), which is used for authentication.
    Under the section General - Event Handling there is no documentation describing these three event fields - but I think they are linked to the MX_PASSWORD attribute events. We're not currently using the other two Event Handling tasks for Change Password and Disable Account.
    We've linked out AD password change tasks to the General - Event Handling - Modify task.
    I hope this helps.

Maybe you are looking for

  • Mac reboots on its own

    My Mac reboots on its own a few times a day. I have checked all the permitions and have checked the disk. No issues found. After the reboot this is the report I send: Sat Aug  3 20:19:27 2013 panic(cpu 1 caller 0xffffff7f93a32f33): NVRM[0/2:0:0]: Rea

  • IPhone not working with Windows 7. Message asks to install 64-bit version

    Full error message; "This iPhone cannot be used because the required software is not installed. Run the iTunes installer to remove iTunes, then install the 64-bit version of iTunes". I have just bought my wife a brand new iPhone 32Gb 3S for Christmas

  • Solaris 6 binary on Solaris 8 ( Multithreaded application.)

    I have to explore further, but I like to know whether any of you have faced similar problem. We have multithreaded server. A thread in detached mode will be created to serve each new connection. The binary was compiled on 32bit solaris environment an

  • Infoset Query- F4 help missing for few selection fields

    Dear Experts, While creating Infoset/ Quick view queries, I find few fields of the selection screen are not having F4 help. How this happens and How to correct this? Regards Jogeswara Rao

  • Submitting a Form to Multiple Recipients

    I am running into problems when I attempt to send a form to multiple recipients. I am using Acrobat Pro 8.0 and my mail client is Outlook. I have an interactive form that contains a submit button. I set the submit button to execute the following URL: