Filtered Sub-grid lookup

I'm trying to achieve the following setup for a client in CRM2015:
They have a 2-level hierarchy of Accounts (Head-office and Branches) that are related using the 'Parent Account' field. For each Parent Account, there are multiple ways they internally group the related child accounts with the parent account.  To replicate
this grouping, I've created a new entity called 'Account Lists' that allows them to select a parent account and then in a Sub-grid select one or more of the related child accounts.
These are the steps I took so far:
1) Added a new View to the Accounts Entity called 'Child Accounts' which displays all accounts where a custom option set value is equal to Child
2) On the new 'Account Listings' Entity I created a N:N relationship with the Accounts entity
3) Inserted a Sub-Grid on the form and selected the following for Data Source:
 -Records - Only selected records
 -Entity - Accounts (Child Accounts)
 -Default View - Child Accounts
4) In additional options, I applied the following settings:
 -View Selector: Show Selected Views
 -In the Views list, I only have the 'Child Accounts' view selected
The problem I'm having is that the Sub-grid drop down and related lookup is displaying all accounts, including parent accounts, and not just child accounts.  Is there something I've done wrong here or do I need to be looking at custom lookups with
JavaScript to achieve what I'm looking for?
Thank you

Just wanted to add some more information in case I helps explain this issue:
1) Our custom 'Account Lists' entity only contains two controls: a lookup and a subgrid.
-The lookup is labeled Parent Account and only allows the user to select an Account where a custom option set field value is equal to "Parent".  The lookup view attached to this lookup is a custom view called Parent Account that enforces this
restriction.
-The second control is a subgrid labeled Child Accounts.  Similar to the lookup, we've tried to apply a custom View to filter which accounts the user can select.  In particular, we created a view called Child Accounts as we're hoping they would
only be able to select Child Accounts from the subgrids related selectors (ie via the plus button or after clicking the "Lookup More records" link).
2) The enforcing of the default View between the Lookup and Subgrid is behaving differently as follows:
-When the user opens the lookup, they are presented with the "Parent Account" view and cannot select any other View.  This is perfect.
-With the subgrid, when the user clicks the plus button (+) they are shown 10 accounts, but the accounts shown include both Parent and Child accounts and not just Child accounts as we expected when assigning our custom view to this grid.  Also,
even though I see the name of the custom View (Child Accounts) to the left of the plus button, the grid is displaying different fields then those defined by the view.
-Similarly, when they click the "Lookup More Records" link and are presented the Look up Records window, the default view is the native "Account Lookup View" and all the other Account views are available for selection.  I was expecting
to see only our "Child Accounts" view to be available for selection so the users could only add these Accounts to the grid.
Any idea why we can enforce a default view on the lookup, but not the subgrid?  Am I missing something here or is this is a bug in CRM 2015?

Similar Messages

  • Flitered Sub-grid in Online CRM 2015

    Hi all ,
       I have the following requirement. In Case form we included multiple sub-grids (Opportunity,Lead, etc..). On selecting the value in customer field, only the related records of that particular Customer should flow in the
    respective sub-grids.
    The same functionality we worked in CRM 2013 which was working fine. At present in CRM 2015 on loading the form some times it is working & some times it is not working (means some times it shows related record & some times it shows all records).
    Unable to identify the issue. We have also tried by refreshing the sub-grid twice in J-script.
    Any solution?
    Thanks &  Regards
    Shankar

    Hi Polat,
     Thanks for your reply. We have done the same work. Please find below Jscript we have used, which is working fine in CRM 2013. In CRM 2015 some times it works & some times it shows all the records with out filter. So any other solution for
    this issue.
    function BindGridSubscription() {
        // Get  Customer
        var lookupfield = new Array;
        lookupfield = Xrm.Page.getAttribute("customerid").getValue();
        if (lookupfield != null) {
            var lookupid = lookupfield[0].id;
        else {
            return;
        var relatedSubscriptions = null;
        relatedSubscriptions = document.getElementById('sgvSubscriptionDetails');
        if (relatedSubscriptions == null || relatedSubscriptions.readyState != "complete") {
            setTimeout('BindGridSubscription()', 2000);
            return;
        var fetchXmlSubs = "<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>";
        fetchXmlSubs += "<entity name='opportunity'>";
        fetchXmlSubs += "<attribute name='opportunityid' />";
        fetchXmlSubs += "<attribute name='tec_zone' />";
        fetchXmlSubs += "<attribute name='totalamount' />";
        fetchXmlSubs += "<attribute name='tec_subscriptiontype' />";
        fetchXmlSubs += "<attribute name='tec_copystartdate' />";
        fetchXmlSubs += "<attribute name='tec_copyenddate' />";
        fetchXmlSubs += "<attribute name='tec_subscribedscheme' />";
        fetchXmlSubs += "<attribute name='tec_subscribedproduct' />";
        fetchXmlSubs += "<attribute name='tec_schemestartdate' />";
        fetchXmlSubs += "<attribute name='tec_schemeenddate' />";
        fetchXmlSubs += "<attribute name='tec_poimplementationdate' />";
        fetchXmlSubs += "<attribute name='tec_bookingformnumber' />";
        fetchXmlSubs += "<attribute name='tec_bookingdate' />";
        fetchXmlSubs += "<order attribute='tec_zone' descending='false' />";
        fetchXmlSubs += "<filter type='and'>";
        fetchXmlSubs += "<condition attribute='customerid' operator='eq' uitype='contact' value='" + lookupid + "' />";
        fetchXmlSubs += "</filter>";
        fetchXmlSubs += "</entity>";
        fetchXmlSubs += "</fetch>";
        relatedSubscriptions.control.SetParameter("fetchXML", fetchXmlSubs);
        relatedSubscriptions.control.Refresh();
    Thanks
    Shankar

  • ORA-00933 error when filtering in grid implementation

    Hi,
    I am implementing the workshop grid function and set up the SQL statement in dbcontrol
    as follows, please note the SQL statement join two tables:
    SELECT S.ID,S.SAMPLE_ID,S.SAMPLE_CODE,S.SAMPLE_BATCH,S.SALTCODE
    FROM LOPROJ.LO_SAMPLES S,LOPROJ.LO_MASTER_COMPOUND_LIST M
    WHERE M.SAMPLE_CODE=S.SAMPLE_CODE AND M.PROJECT_ID = 16337
    {sql: filter.getWhereClause ()} {sql: filter.getOrderByClause ()}
    and I have code in grid.jsp as following:
    <netui-data:basicColumn filterable="true" title="Id" sortable="true"
    name="id"/>
    <netui-data:basicColumn filterable="true" title="Sample_id" sortable="true"
    name="sample_id"/>
    <netui-data:basicColumn filterable="true" title="Sample_code"
    sortable="true" name="sample_code"/>
    <netui-data:basicColumn filterable="true" title="Sample_batch"
    sortable="true" name="sample_batch"/>
    <netui-data:basicColumn filterable="true" title="Saltcode" sortable="true"
    name="saltcode"/>
    the data are properly retrieved from the database and rendered in grid view, however,
    when I tried to do filter for individual column, I got the following error:
    An exception occurred in the action begin
    ORA-00933: SQL command not properly ended
    I have code in begin action as following,
    public Forward begin()
    throws Exception
    sortFilterService = SortFilterService.getInstance( getRequest() );
    allRows = myControl.getAllLoSamples( getSortFilterService().getDatabaseFilter(
    getGridName() ) );
    allRows.last();
    row_count = allRows.getRow();
    return new Forward( "grid" );
    I am wondering whether the workshop filter class does not apply to joining of
    two tables? Any suggestion is appreciated.
    Thanks!
    Zhenhao

    Zhenhao--
    At the very least, the SQL statement generated below will have two
    WHERE clauses; the substitution {sql: filter.getWhereClause()} will
    create a WHERE clause that will be inserted into your SQL after the
    previously declared WHERE.
    It would probably help here if you changed the getWhereClause()
    method to getFilterExpression(), which will just return the expression
    without the WHERE keyword.
    Hope that helps...
    Eddie
    Raj Alagumalai wrote:
    Zhenhao,
    I am currently working on reproducing this. I will get back to once I have
    additional information.
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "Zhenhao Qi" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    I am implementing the workshop grid function and set up the SQL statementin dbcontrol
    as follows, please note the SQL statement join two tables:
    SELECT S.ID,S.SAMPLE_ID,S.SAMPLE_CODE,S.SAMPLE_BATCH,S.SALTCODE
    FROM LOPROJ.LO_SAMPLES S,LOPROJ.LO_MASTER_COMPOUND_LIST M
    WHERE M.SAMPLE_CODE=S.SAMPLE_CODE AND M.PROJECT_ID = 16337
    {sql: filter.getWhereClause ()} {sql: filter.getOrderByClause ()}
    and I have code in grid.jsp as following:
    <netui-data:basicColumn filterable="true" title="Id"sortable="true"
    name="id"/>
    <netui-data:basicColumn filterable="true"title="Sample_id" sortable="true"
    name="sample_id"/>
    <netui-data:basicColumn filterable="true"title="Sample_code"
    sortable="true" name="sample_code"/>
    <netui-data:basicColumn filterable="true"title="Sample_batch"
    sortable="true" name="sample_batch"/>
    <netui-data:basicColumn filterable="true" title="Saltcode"sortable="true"
    name="saltcode"/>
    the data are properly retrieved from the database and rendered in gridview, however,
    when I tried to do filter for individual column, I got the followingerror:
    An exception occurred in the action begin
    ORA-00933: SQL command not properly ended
    I have code in begin action as following,
    public Forward begin()
    throws Exception
    sortFilterService = SortFilterService.getInstance( getRequest() );
    allRows = myControl.getAllLoSamples(getSortFilterService().getDatabaseFilter(
    getGridName() ) );
    allRows.last();
    row_count = allRows.getRow();
    return new Forward( "grid" );
    I am wondering whether the workshop filter class does not apply to joiningof
    two tables? Any suggestion is appreciated.
    Thanks!
    Zhenhao

  • Filtering data from Lookup lists

    I have created a couple of custom lists, one called Partners, the other named Countries.
    The Countries list is populated with a list of the world's countries. The Partners list is a list of our Partners with columns such as Organization Name, Address, Telephone etc and a column that shows which countries they operate in. This Operational_Countries column
    is configured as a Lookup type (allowing multiple selections) using the data from the Countries list.
    What I would now like to do is be able to create a page where I can select/tick any number of country names from the Countries list and then below it see the Partners that are operational in any of the selected countries.
    I created a page with two web parts, the first being a view of the Countries list and below it the Partners list.
    I linked the two web parts and it does work apart from a couple of issues which are:
    I can only select one option from the Countries list rather than multiple options. I need to be able to select multiple country names because I get regular calls asking who works in CountryX, Country Y and Country Z.
    When the page first loads, by default it selects the first country in the list. What I need is it to start off with nothing selected therefore showing ALL the entries in the Partner list. Once I start selecting countries then I'd expect this list to start
    narrowing to the partners matching the selected criteria.
    I know that I could have used the Choice column type for the Operational_Countries column in the Partners list and that would have simplified the filtering but I preferred to keep the two lists separate. Unfortunately it seems as though you can use
    the simpler key filtering on Lookup column types.
    I've only been using Sharepoint for a couple of weeks so I apologise for what may be dumb questions. I am using Sharepoint 2013 but have no scripting ability whatsoever.
    Thanks for any ideas and/or advice especially relating to issue number 1 above...

    Hi Inderjeet
    That's what I've done (I believe) but the main problem is that I can only select one option from the Countries list and pass it between the connected web parts. I really need to be able to select multiple countries and be able to filter the Partners list
    on all those selected.
    I don't think it's possible OOB to do this but would be very happy from anyone that has done something like this before.

  • Filtering sub-categories on Interscan for CSC SSM

    Does anyone no how to identify what URL's are classified as a part of each sub-category? Is there a published list somewhere that I can tell which sites are part of certain categories?
    Thanks,
    Larry

    Try this link:
    http://www.cisco.com/univercd/cc/td/doc/product/multisec/modules/cscssm/cscssm61/csc61adm/

  • CRM 2013: Custom button to Open multiselect lookup with custom view

    Hello Everyone,
    Looking for your suggestions to implement the following requirement.
    We want to implement a custom button on the sub grid of Custom Entity (Lets say, "PersonMapping"). The custom button should open another entity multi select lookup(Lets say, "Person"). Till here we could achieve by directly opening the
    multi lookup url of the Person using "Window.showModelDialog". But in this lookup, we want to set our custom view as default view. Please suggest some solution to achieve this.
    Thanks.

    Hi,
    First of all I would advice you to post this question in the new CRM 2007 forum.
    We have created our own button that calls an URL in a separate window. Here is some coding from the method CALLBACK~GET_BUTTONS which may inspirere you:
    CONCATENATE 'javascript:window.open'
                  lv_http
                  '","Print","resizable=yes,height=850,width=700,dependent=yes,status=1");'
             INTO lv_java.
      ls_button-type     = cl_thtmlb_util=>gc_icon_print.
      ls_button-tooltip  = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BT_SALES_QUOT/SALESQUOT_PRINT' ).
      ls_button-on_client_click = lv_java.
      ls_button-page_id  = me->component_id.
      ls_button-enabled  = abap_true.
      APPEND ls_button TO rt_buttons.
      CLEAR ls_button.
      ls_button-text     = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BT_SALES_QUOT/SORDER_CREATEFOLLOW-UP' )."#EC NOTEXT
      ls_button-tooltip  = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BT_SALES_QUOT/SORDER_CREATEFOLLOW-UP' )."#EC NOTEXT
      ls_button-on_click = 'FOLLOWUP'.                          "#EC NOTEXT
      ls_button-page_id  = me->component_id.
      ls_button-enabled  = lv_persistent.
      APPEND ls_button TO rt_buttons.
      CLEAR ls_button.
    /Anders

  • How can I programmatically load a sub VI into my code

    Hi everybody,
    I am developing a program for an automated test system to determine the cut off frequency of  low pass filters.The filters in question are simulated in labview as sub VIs  with two inputs (input voltage and frequency) and one output (output voltage.
    I have already developed a program that can interrogate one filter and determine its cut off frequency.
    My challenge is how to test any of the filters automatically without writing parallel codes for all of them.
    Put in another way, I want the program to ask the user to load any of the filters (sub VI) from the desktop or from any other location so the the code I have already writing can interrogate the filters and determine the cut off frequency
    Any suggestion will be appreciated
    Thanks.
    kaydgreat.

    There are a couple of ways to do this, depending on your ability. You can do it with a heirarchy of inherited classes, or a selection of VIs with the same connector pane layout. (These are basically the same; classes would be more manageable, and selectable VIs probably quicker to implement)
    Search the example finder for 'plugin' to find a plug-in architecture of the latter of the above methods.
    - Cheers, Ed

  • Unable to filter LookupSet values based on another Lookup value

    Hey all, I've got a report item where I'm pulling a list of values using a lookupset. The lookupset is working as expected, however I need to filter those results based on a different value which belongs to the same dataset as the lookup value. I'm trying
    to filter on the tablix but nothing I try is working to filter. I just end up with no data when I know I should be getting one value. I tried filtering using a lookup and lookupset expression but that doesn't seem to be what is needed. This is my first time
    really diving into lookups so any help would be appreciated.
    Thanks,
    Bryan
    (using report builder 3.0)

    Do you only want the values where type = "Writing Assignment 1". If that is the case then modify your LookupSet as follows:
    =Join(Lookupset(Fields!identifier.Value+"Writing
    Assignment 1",Fields!Student.Value+Fields!value.Value,
    Fields!value.Value, "Comments"), vbCrLf)
    This will require that identifier matches student and type matches "Writing Assignment 1".
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • Filter a Many-to-Many query in Hibernate

    I'm working with Hibernate and I'm in trouble with some "simple SQL" query, but no a simple HQL query -for me.
    I have what you should think a one-to-many relationship, Person and PhoneNumber. For misterious reasons that I don't know somebody build a Many-to-Many relation.
    I build my HBM mapping file for Person and PhoneNumber with a simple "Person -> many-to-many property".
    What I've to do now is filter the Person list by some PhoneNumber.
    like
    StringBuilder sb = new StringBuilder( );
    sb.append( "from Person p " );
    sb.append( "join p.pnumbers number " );
    //HELP HERE
    Query query = session.createQuery( sb.toString( ) );
    List list = query.list( );In old style SQL the query could be like this:
    SELECT P.*
    FROM PERSON,
    (SELECT * FROM PHONENUMBER PN WHERE PN.NUMBER IN (1,2,3,4,5)) N
    WHERE P.ID = PN.PERSON_IDAnyone knows how to make that H-query ?

    If I have understood your query correctly you have a custom entity, lets say A which has many to many relationship with both account and contact. And you want to have say a sub-grid of custom entity A on contact form where Custom Entity A is associated with
    Contact's parent account.
    This can not be handled OOB as per best of my knowledge. You may have to write a code to achieve that.
    http://missdynamicscrm.blogspot.in/2014/08/crm-2013-using-addcustomfilter-to-get-filtered-lookup-field-based-on-linked-entity.html
    Hope it helps!
    Regards, Abhishek Bakshi If you find this post helpful then please Vote as Helpful and Mark As Answer. Check my blog on https://mydynamicscrmblog.wordpress.com/

  • CS5 not updating LR3 Catalog properly on return

    Hi, 
    I'm going crazy with what looks like a bug in the SW - but may be operator error. 
    Starting in LR3 Grid view that is filtered on a keyword, I select a JPG.   I want to create a PSD copy that has a text layer and have the PSD staked on top of the JPG in LR when I return from CS5.  I had been doing this in LR2 and CS3 but it does not seem to wrok the same with LR3 and CS5.  I can't recall exactly how I got this to work in LR2 & CS3 but I belive my steps were similar to the following.  The main difference is that in LR2/CS3 it worked and in LR3/CS5 I have the problem indicated below. 
    Here are my steps...
    1)  I right click on a JPG image (in the LR3 grid showing images filtered on a keyword) and select edit in Photoshop CS5.  I then select "Edit a copy" from the popup (I've also tried "Edit a cooy with LR adjustments")
    2)  This creates a 2nd jpg file with "edit" in the file name on my hard drive and opens the image in CS5
    3)  I add a Text layer to the photo. 
    3)  I then close the image in CS5 and it asks if I want to update it and I say Yes
    4)  I then get the "Save As" dialog and save the image as a PSD which saves a 3rd image on my HD as a PSD (does not have "edit" in file name)
    5)  I then go back to LR and I see in the filtered grid that I now have my original jpg, and an "edit" jpg, marked as 2 of 3 and 3 of 3 - but no PSD
    6)  However, if I unfilter the grid, I see all 3 images,  the original jpg (3 of 3),  the "edit" jpg (2 of 3), and an a psd (1 of 3) 
    7)  Now, here's what's driving me crazy....  All 3 images have the exact Metadata, including the exact same keywords which means that all 3 should have been visible in the filtered view.
    8)  OK,  so I now refilter the grid on the keyword that all 3 images in that stack have but only the 2 jpg's show up.  This is crazy.  All 3 should be visible.
    9)  So, I go back and unfilter the grid again, revealing the PSD along with the two jpg's.
    10)  Now, I remove the keyword from the PSD (uncheck it in the keyword list),  then add the same keyword back (check it in the keyword list), and again filter by that keyword
    11)  Now I have all three images visible with the PSD on the top of the stack. 
    Q1 - Why did I have to remove and re-add the keyword to get the PSD to show up in the filtered view?  Is this a bug?
    Q2 - Is there a better way to go to CS5 and create a PSD hopefully without having a 2nd JPG created as well?
    Q3 -  Is there a way to add a text overlay in LR3 directly to the jpg without having to go to CS5 at all?
    Appreciate any help anyone has.
                       Thanks -- Dan

    Thanks, but I guess PSE works differently.
    I don't get a place to specify TIFF or PSD format when the image is passed to PS
    Here is also some new info.
    I applied all the latest "updates" to the LR3 and CS5  SW and now the symptoms are different.
    1)  When I "edit in CS5"  I no longer get a jpg created on my HD
    2)  When I "close" the image in CS5,  it asks me if I want to save it.  I say "yes" and it gives me the "Save As" dialog with PSD preloaded in the file type, the original folder preloaded in the location, and the file name is preloaded with the original name pluse "edit".
    3)  After saving, I flip back to LR and my filtered grid and here is what I find.
    a)  There is no image selected in the grid.  In other words the original jpg file is no longer selected (highlighted) and no other image in the grid is either
    b)  All the info in the right panel seems to be for the psd.  For example, the File Type says "Photoshop Document" and the Metadata Date is seconds ago.
    c)  All the keywords,rating stars, labels, title, caption, etc are present as well and the same as the jpg which is what I would expect.  This indicates that the LR catalog has been updated.
    4)  Unfiltering the grid makes the PSD visible and it is 1 of 2 with the jpg being 2 of 2 which is correct.
    5)  Both images have exactly the same keywords as evidenced by no "*"s in the Keywording section, and all the other keywords having a check mark (when both images selected) rather than a dash.
    6)  Even after synchronizing the psd metadata from the jpg metadata, re-applying the grid filter which happened to be in effect when I went I sent the jpg to CS5, still does not show the PSD file in the grid.
    7)  Howevr, filtering the grid by a different keyword that both images have in common does show the psd in the grid.
    8)  The only way (so far) that I have been able to get the psd to show up in the grid when the grid if filtered by the orignal keyword is to unfilter the grid, then uncheck that keywork in the keyword list, then re-check it.  After doing that it now appears in the grid when filtered by that keyword.
    It seems that the logic that decides which images to show in the grid based on the filters is ignoring the keyword that the grid was filteredby when the image was sent to and returned from CS5 - but is only ignored for the returned psd image. 
    I'm pretty sure this is a bug.  Does anyone know how to report a bug to Adobe?
    Thanks -- Dan

  • How to get subgrid Id

    In my recent requirement client want to put dynamic view inside subgrid. For this I am using document.getElementById("SubgridName");
    This code is giving me null value. If I use document.getElementById("_SubgridName");, then it give me some values, but most of all the code is not working.
    I referred many blogs like http://blog.navantis.com/dynamically-change-sub-grid-fetchxml-with-a-small-twist-fix/
    Please help me, this is very important.
    Thanks in advance..!!!
    Harsha

    Hi,
    document.getElementById("_SubgridName") is coming null because , subgrids loads
    asynchronously. Thats why you have to check the subgrid element with setInterval function. Check this in my blog. You will understand how subgrid works.
    Filter Subgrid
    If you find this post helpful then please Vote as Helpful and Mark As Answer. Thanks and Regards, Polat Aydın
    My blog

  • Excel 2010 – VBA Userforms – Vlookup via Textbox, display result in another textbox

    Hi,
    Thank you in advance for your time.
    I have a multi-page userform and I am having problems getting the result I am after.
    I am trying to get the user to enter a four digit (numeric code) into a textbox and display the contents of that code in another textbox when the user clicks in another textbox.
    I have 2 textboxes.
    One textbox txt_SAC_No is for the user to enter a four digit numeric code, which should return the address in another textbox txt_Site_Address.
    The lookup is located in a dynamic named range
    as SiteAddress which encompasses 20 columns. The first column has the code and the second column holds the actual address which is what I am after.
    Included in the named range, I have set up a code of 0000 (zeros) and instead of having the address in it, I have a message in there to tell the user to manually type the address (overwriting my text message). The code, 0000, means that there is no pre-defined
    address and it's a once off entry.
    I do not want the address to be updated in the source of the Vlookup as it is a ‘once only’ entry and unlikely to ever be used again.
    I have searched on the web and attempted to adapt various codes, but I have been unable to get anything to work.
    I have some sample code I have tried, but my attempt to adapt it to my needs has not been successful.
    Worksheet where data is transferred is code named: ws_Incident_Details
    (which is actually sheet named “Incident Details” – but I’d like to use the ‘coded’ sheet name in case someone changes the name in the tab of the sheet
    Private Sub SAC_No_AfterUpdate()
    'lookup value based on SacNo
    With Me
    .txt_Site_Address = Application.WorksheetFunction.VLookup(CLng(Me.txt_SAC_No), wsAlarmResponseList.Range("SiteAddress"), 2, 0)
    End With
    End Sub
    I'd really appreciate any help :) I have tried other avenues for help, but it doesn't seem like anyone wants the challenge :(
    Thanking you in advance .... it will indeed be appreciated :)
    Kind regards,
    ShyButterfly
    Hope you have a terrific day, theShyButterfly

    Hi Andreas :)
    The above code works like a dream :) Thank you ...
    I succeeded on this ocassion on being smart, and was successful in adapting your code to auto-complete textboxes based on the SAC # details.
    They ALL work purrrrfectly .... thank you SO much .....
    Here's the code that worked (this is based on the Name Range only capturing the 'Column Heading' ... so I created a Named Range for each of the Column Headings (highlighted in bold ... I hope :) )
    Private Sub txt_SAC_No_Change()
    Dim R As Range
    Set R = Range("SAC").EntireColumn.Find(txt_SAC_No.Value, _
    LookIn:=xlValues, LookAt:=xlWhole)
    If R Is Nothing Then
    txt_Site_Address = "(not found)"
    ElseIf R.Value = "0000" Then
    txt_Site_Address = "(manually type the address)"
    Else
    txt_Site_Address = Range("SiteAddress").Cells(R.Row).Value
    End If
    'Manned / UnManned Site:
    Set R = Range("SAC").EntireColumn.Find(txt_SAC_No.Value, _
    LookIn:=xlValues, LookAt:=xlWhole)
    If R Is Nothing Then
    txt_Manned_UnManned_Auto = "N/A"
    ElseIf R.Value = "0000" Then
    txt_Manned_UnManned_Auto = "N/A"
    Else
    txt_Manned_UnManned_Auto = Range("MannedUnManned").Cells(R.Row).Value
    End If
    'txt_Business_Owner:
    Set R = Range("SAC").EntireColumn.Find(txt_SAC_No.Value, _
    LookIn:=xlValues, LookAt:=xlWhole)
    If R Is Nothing Then
    txt_Business_Owner = "N/A"
    ElseIf R.Value = "0000" Then
    txt_Business_Owner = "N/A"
    Else
    txt_Business_Owner = Range("Business").Cells(R.Row).Value
    End If
    'Site Type:
    Set R = Range("SAC").EntireColumn.Find(txt_SAC_No.Value, _
    LookIn:=xlValues, LookAt:=xlWhole)
    If R Is Nothing Then
    txt_Site_Type = "N/A"
    ElseIf R.Value = "0000" Then
    txt_Site_Type = "N/A"
    Else
    txt_Site_Type = Range("SiteType").Cells(R.Row).Value
    End If
    End Sub
    With immense gratitude :)
    The ShyButterfly
    Hope you have a terrific day, theShyButterfly

  • Using a Search Window to Filter Data In PowerPivot on Sharepoint?

    When viewing a PowerPivot workbook natively all is well. However when I save it to Sharepoint and view it via a browser, I find that the option to filter data by typing in a value is no longer present. (All there is is an extremely LONG list of values
    which must be scrolled through and checked.) Being able to type in a value to search on is rather crucial feature when one wants to filter on a row where there may be thousands (or more) distinct values. Using a slicer or the standard filter drop-down in this
    case is pretty unworkable! Is there no way around this?

    Hi Ed,  we have a workaround that one of my team members found.  
    Even though there doesn't appear to be a way to have a search window associated with a long filter list, it is possible to filter by column, by clicking on its respective drop-down to bring up a short-cut menu.  From there you can expand either the
    "Label Filters" or "Value Filters" sub-menu (depending on your data-type) and bring up, among other options,  the "Contains..." dialog box.  It's not as convenient but it does the job.
    Now we just need to check with our users that this is an acceptable solution.  Thanks.

  • Filter Subgrid with Javascript - MS CRM 2013

    Hi,
    I want to filter a subgrid.
    My code :
    function FilterCasesSubgrid() {
    var CasesSubgrid =Xrm.Page.getControl("lots_associes");
    if(CasesSubgrid==null){
    setTimeout(function () { FilterCasesSubgrid(); }, 2000); //if the grid hasn’t loaded run this again when it has
    return;
    var fetchXml ="<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>"+
    "<entity name='new_lot'>"+
    "<attribute name='new_name' />"+
    "<attribute name='new_nomduprogramme' />"+
    "<attribute name='new_villelookup' />"+
    "<attribute name='new_loyertotal' />"+
    "<order attribute='title' descending='false' />"+
    "<filter type='and'>"+
    "<condition attribute='new_name' operator='eq' value='004' />"+
    "</filter>"+
    "</entity>"+
    "</fetch>";
    //Here i set the fetchxml directly to subgrid
    alert("1");
    CasesSubgrid .control.SetParameter("fetchXml", fetchXml); //set the fetch xml to the sub grid
    alert("2");
    CasesSubgrid .control.Refresh(); //refresh the sub grid using the new fetch xml
    with that I only have the first alert who says '1'. The last alert isn't displayed and the subgrid isn't modified.
    Do you have any idea?

    hey even i am facing the same issue..apparently this works only for Internet Explorer and not chrome or firefox...
    i even  tried with  Xrm.Page.ui.controls.get() and Xrm.Page.getControl() both didn't work for me
    //var SubscriptionGrid = Xrm.Page.ui.controls.get("Subscriptions");
    //var InvoiceGrid = Xrm.Page.getControl("Invoices");
    Does anybody have any suggestions for it.

  • Disable subgrid in ms crm 2013

    Hi All,
    how to disable subgrid in ms crm 2013, using javascript when onload event.
    i try some code that I have used in 2011, but not work in 2013 version.
    thanks

    Hi,
          Found following articles which has steps and code for this.
    http://xrmguy.com/2014/03/03/crm-2013-make-all-controls-including-subgrids-disabled-onload/
    https://kishored4.wordpress.com/2014/06/04/ms-dynamics-crm-2013-disable-the-icon-on-sub-grid-based-on-status-reason/
    Hope this helps.
    Minal Dahiya
    blog : http://minaldahiya.blogspot.com.au/
    If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

Maybe you are looking for

  • Webservice

    I am new to use webservices.Please help me to call a ABAP Webservice in ABAP program and How to call a other Webservice like Java Webservice in ABAP. Thanks, Suneetha.

  • Lost files..can't edit old site!

    I created a website a about a year ago and I need to update it. I created it on my girlfriends account and went to open iWEB on her computer and my site is no longer there. My site loads fine and the web address is still working. However I cannot fin

  • After Mountain Lion update, internet connection breaks frequently.

    Anyone else experiencing this? Seems that my older AEBS is responsible for frequent disconnects? I also have a newer AX in bridge mode which appears to be operating normally. Software is up to date.

  • CS4 After Effects / Illustrator Scaling Fonts Problem

    I created an Adobe Illlustrator file consisting of three layers of text at three font sizes, 1296, 72, and 6 points on a WIndows Vista machine with CS4 (all updates) using the Impact font with no mods.  Then I used it in After Effects to create an 12

  • Sccm2012 ccmeval change the settings of windows update

    Hi I found the sccm 2012 has a daily job to run ccmeval and change windows update service to automatica start.  and the link below also show it does so. may I know why? Does sccm need windows update? Will it cause the PC to automatically download any