Multiple dataset fields lookup

This is an example of using a Spry region to implement Zuggest like results.
http://labs.adobe.com/technologies/spry/samples/data_region/ZuggestSample.html
However, I want the text can be searched into multiple fields in the dataset.
I simply tried adding a "category" to the array of fields to be searched
and hope the array should be passed as the fifth argument.
But It doesn't work~~
=====
Before
=====
<script language="JavaScript" type="text/javascript">
var ac2 = new Spry.Widget.SimpleAutoSuggest("productTF", "productMenu", function(acWidget, str) { MyQueryFunc(acWidget, str, document.getElementById("productCB").checked, dsProducts, "name"); });
</script>
====
After
====
<script language="JavaScript" type="text/javascript">
var ac2 = new Spry.Widget.SimpleAutoSuggest("productTF", "productMenu", function(acWidget, str) { MyQueryFunc(acWidget, str, document.getElementById("productCB").checked, dsProducts, {"name","category"}); });
</script>

Try
// FilterData() and StartFilterTimer()
function MyQueryFunc() {
    var tf = document.getElementById("productTF");
    if (!tf.value)
        // If the text field is empty, remove any filter
        // that is set on the data set.
        dsProducts.filter(null);
        return;
    // Set a filter on the data set that matches any row
    // that begins with the string in the text field.
    var regExpStr = tf.value;
    if (!document.getElementById("productCB").checked)
        regExpStr = "^" + regExpStr;  
    var regExp = new RegExp(regExpStr, "i");
    var filterFunc = function(ds, row, rowNumber)
        var str = row["name"];
        if (str && str.search(regExp) != -1)
            return row;
        var str = row["category"];
        if (str && str.search(regExp) != -1)
            return row;
        return null;
    dsProducts.filter(filterFunc);
function StartFilterTimer() {
    if (StartFilterTimer.timerID)
        clearTimeout(StartFilterTimer.timerID);
    StartFilterTimer.timerID = setTimeout(function() { StartFilterTimer.timerID = null; MyQueryFunc(); }, 100);
Gramps

Similar Messages

  • Updating/setting multiple values in lookup field through powershell

    I'm trying to set multiple values to lookup column. I can get it to set one value but multiple values don't work
    see below
    [Microsoft.SharePoint.SPFieldLookupValueCollection] $itemValues = New-Object Microsoft.SharePoint.SPFieldLookupValueCollection
    [Microsoft.SharePoint.SPFieldLookupValue] $lookupvalue = New-Object Microsoft.SharePoint.SPFieldLookupValue
    $lookupvalue.LookupId = 1
    $lookupvalue.LookupId = 2
    $itemValues.Add($lookupvalue)
    $CMRSItems["Event Type"] = $itemValues
    $CMRSItems.Update()
    I was expecting the LookupID 1 and 2 to update but it doesn't. When i specify LookupId = 1 it works
    What am i doing wrong.
    Thanks in Advance

    Hi Patrick, 
    In your script above you're using the same object to set both ID's on. Setting the ID of $lookupvalue, then adding it to the lookupvaluecollection, before changing the ID value to 2, then adding that to the collection. 
    I wrote an article on setting fields using PowerShell, but it doesn't include multiple lookup values. It does contain multiple choice and taxonomy values though, which is a similar concept. It's here if you want to take a look: http://social.technet.microsoft.com/wiki/contents/articles/20831.sharepoint-a-complete-guide-to-getting-and-setting-fields-using-powershell.aspx
    Regards, Matthew
    MCPD | MCITP
    My Blog
    View
    Matthew Yarlett's profile
    See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

  • Lookup or Filter multiple datasets in an Expression?

    Hi 
    I am new to Visual Studio and am trying to find my feet.
    I have a totals form which I can use an Expression to select all the data from multiple datasets fine, but I am wanting to filter the results to just show a single user at a time on my form. (Dataset shows Users and Grand Totals)
    Is it possible to use an Expression to say (Select ["Grand Totals" from Dataset1] where ["User" from Dataset1] = "Julie Smith") ?
    Thank you 
    Tracey

    Hello Tracey,
    Your issue is out of support range of VS General Question forum which mainly discusses the usage issue of Visual Studio IDE such as
    WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    I am moving your question to the moderator forum ("Where is the forum for..?"). The owner of the forum will direct you to a right forum.
    In addition, If you are working with Windows Forms app, you can consult on Windows Forms Forum:http://social.msdn.microsoft.com/Forums/windows/en-US/home?category=windowsforms
    If you are working with WPF app, you can choose WPF forum:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wpf
    If you are working with ASP.NET Web Application, I suggest that you can consult your issue on ASP.NET forum:
    http://forums.asp.net/
     for better solution and support.
    Visual Studio Language Forums:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=vslanguages
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Creating a Month dropdown list for a report with multiple datasets

    I am currently working on a report that contains many charts that rely on multiple datasets. Currently, I have parameters @StartDate and @EndDate to display the information of the previous month across all the charts as my default value. Now, I would like
    to create a dropdown list so that the user can pick any month, and have the report display the data across all the charts for that particular month, while keeping the display of the previous month as the default value. Can anyone help as to how I can approach
    this. Would I have to use an expression when I specify my available values, or would I have to create a dataset to get the value of all 12 months? Any help would be greatly appreciated.

    This is essentially where I am having some trouble, as in creating the dataset that returns the individual months of the year as I am relatively to the use of SSRS. Could you possibly elaborate on how I can do so? Thank you in advance!
    Create a dataset in SSRS
    Inside dataset properties map datasource and then inside give command like
    DECLARE @Month int = 5 --example value
    SELECT ...
    FROM Table
    WHERE datefield >= DATEADD(mm,DATEDIFF(yy,0,GETDATE())*12 +(@Month-2),0)
    AND datefield < DATEADD(mm,DATEDIFF(yy,0,GETDATE())*12 +(@Month-1),0)
    then on refresh it will take field information and parameter information by itself.
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Delimiter for multiple display fields

    Hi ,
    Is there any way in MDM so we can change the delimiter for multiple display fields.
    Suppose for a lookup table code and description both are display fields.In Data manager when we select main table as our current table ,value in that lookup field will appear as code,description ,but as per the requirement it should be hyphen separated i.e code- description.
    Is there any way we can change the delimiter.
    Thanks in Advance
    Regards,
    Neethu Joy

    Hi Neethu,
    No, there is no way to change the delimiter but I can suggest you some workaround.
    Create one more field in same lookup table and mark it as display field. Create one assignment with the expression code&"-"&Description and put it in workflow having trigger action = Record Create and Record Update with Automatic launch action. With this, whenever you modify lookup data i.e. either code or description workflow will automatically update the third filed.
    Just check if this fits in your requirement.
    Regards,
    Jitesh Talreja

  • No content with multiple datasets in detailregion

    I have a detailregion, in which I don't just want to display
    data, but want to enable data maintenance via a form. There are
    some dynamic select fields, so their datasets are declared together
    with the main dataset when the detail region is set up. T
    The code used to declare the detailregion is
    <div spry:detailregion="routerlist_xml edit_country_xml
    edit_region_xml">
    The detailregion that should be under the list display is
    well - not showing.
    When I take the datasets for the select fields away so the
    line looks like
    <div spry:detailregion="routerlist_xml">
    the detailregion displays as expected.
    (Of course the browser will complain about the missing
    datasets, but that is not the point here).
    Is it not possible to have multiple datasets in a
    detailregion? If not, what is a workaraound to get a dynamic select
    into a detailed field? If yes, is there anything wrong in my code?
    Or is there a bug in the Spry framework?
    Any pointers are welcome.
    Thanks

    Trial and error solved the problem.
    When there is an error XML the dataset for the dynamic select
    field is based on, then the whole region in to which the dataset
    was linked will not be shown.
    The 'error' in my case, it appears, were non-US keyboard
    characters (from a german keyboard). The underlying database mysql
    is set to UTF8-unicode, and the xml-export function has
    $xmlExportObj->setDBEncoding("UTF-8");
    $xmlExportObj->setXMLEncoding("UTF-8");
    in its code.
    Once those characters were removed, it all worked fine.
    To make things even more confusing was the fact that the page
    worked fine in Firefox when the detailed region just would not show
    in IE7 due to the special characters.
    A bug or a compatibality issue for the Adobe crew to check
    out ?
    Comments welcome...

  • Multiple text fields in Print Module

    Allow multiple text fields in Print Module with flexible editing.

    I'm with you on this. LR 3 has come along way on the print module but placing text anywhere on the page at any angle using any system font would go long way in making a great looking album page. If you are in the senior market you could add the customers name to a wallet sized image.

  • Populate drop-down list from multiple text fields.

    Just to begin, I am brand new to this application and brand new to coding in general. Anyways, this is what I am trying to accomplish. I need to populate a drop-down list from multiple text fields. I am able to populate one item using this in the calculate event:
    TextField1.rawValue
    After I type text in TextField1 and hit enter, it displays the text in the drop-down list. I need to do this but with more than just one text field to populate more options for the drop-down list. I will also need to do something similar with populating a drop-down list from selections made in multiple other drop-down lists.
    Thanks for any help you can give me.

    Thank you for your suggestion Geo Kaiser. With that, I was able to populate my drop-down lists, but now when I select an option from the drop-down list, the selection dissapears. The selection will appear briefly in the box but then dissapears although my drop-down list options remain there. Here is the code I am using for my text field to drop-down list:
    DropDownList1.clearItems()
    DropDownList1.addItem(TextField1)
    DropDownList1.addItem(TextField2)
    And here is my code for my drop-down list to populate another drop-down list:
    DropDownList3.clearItems()
    DropDownList3.addItem(DropDownList1)
    DropDownList3.additem(DropDownList2)
    Thanks again for your help. By the way, I am using Adobe Designer 7.0.

  • How to get multiple selected fields in list

    Hello all,
    I am trying to get multiple selected value from a list but i dont know how to get multiple selected fields from a list though AS3.
    Actually i want to pass the selected fields to php, so for that i need to get the selections and send to php.
    Thankx..

    i want to put the selected fields of list in an array through AS3....
    actually......i figured it out how to do that...........
    Its simple......use
    list.selectedItems[index]
    and to get the number of items selected......
    list.selectedItems.length
    simple.....

  • Is it possible to create a form with multiple form fields on a single line?

    Is it possible to create a form with multiple form fields on a single line?  I can't find anything in the documentation or a template that does this.
    I am trying to create a "documents received" checklist with a check box on the left margin, a date-received field to the right of the check box and and a description of the document (Formatted Text) on the far right.
    In the past I have entered the Fixed Text with a word processor, published it to a PDF file, then added the check box and date fields with the Acrobat Forms editor.  I would prefer to use FormsCentral if it is possible.

    We now support multiple fields on one line. This post provides a brief overview.
    Give it a try and send us your feedback.
    Sorry it took so long.
    Randy

  • Reg Query For Multiple Text Fields

    Hi all
    I am New to this forum..
    I am developing an application for generating reports.
    In my application i have multiple text fields.
    The user might enter any of the textfields or even enter all the fields.
    In those cases how to use the query when some fields are empty??

    Welcome to the forum.
    It always helps to post a small, simplified example of what it is you're trying to achieve.
    (When posting examples, put the {noformat}{noformat} tag before and after the example, so it will get posted formatted on this forum.)
    In those cases how to use the query when some fields are empty??If your textfields serve as parameters/bind variables for you query, then you could use NVL.
    Something like:select ...
    from some_table
    where col1 = nvl(p_col1, col1)
    and col2 = nvl(p_col2, col2)
    And how about wildcards (the '%' or '_' sign), by the way? Are they allowed as well?
    You also might want to read about this approach:
    http://www.oracle.com/technology/oramag/oracle/09-jul/o49asktom.html                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Multiple report fields from single physical column.

    Hi Experts,
    I have a physical table like below. Multiple records for a single customer id. The no of Address_type may increase in future.
    Customer_id     Address_Type         Address
    101                  Primary                   abcdefgh
    101                  Secondary               234oij3mb4
    101                  Billing                      mdmnweoij4
    102................etc.
    My Requirement on OBIEE is to display report as below.
    Customer_ID, Primary_Address, Secondary_Address, Billing_Address.
    101                 abcdefgh            234oij3mb4               mdmnweoij4
    Multiple report fields ( Primary_Address, Secondary_Address, Billing_Address ) are derived from same physical column ADDRESS.
    I tried to duplicate the Address column on the report thrice and added conditions like Address_Type = Primary/Secondary/Billing for those three fields respectively.
    But only of the field is getting correct data and rest of duplicate columns are null.
    Tried FILTER function on OBI Answers, but the function fails saying it should be used only on measures.
    Thought the alternative would be to define multiple logical columns at BMM layer. Created multiple alias for same table at physical layer and correspondingly created LTS for each on a single logical table. Defined Fragmentation/Where conditions.
    LTS1 - Address_Type = PRIMARY
    LTS2 - Address_Type - SECONDARY
    LTS3 - Address_Type - BILLING
    Created multiple logical columns from each LTS like Primary_Address, Secondary_Address, Billing_Address from LTS1, LTS2, LTS3 respectively.
    This time, am getting data for all the fields on the report but getting cartesian result.
    Can someone guide me whether my approach is correct or any other alternate best approach to achieve the desired result.
    Note: I have the data Address on multiple physical rows for a customer, rather Not in a single row. which is causing me problem.
    Thanks...
    Ramchand.

    Hi Srini VEERAVALLI,
    I have lot many other fields in the same report coming from other tables.
    Does the Pivot table option for above mentioned Address fields affect other columns?
    If Yes, Can there be any other alternative? Am thinking of Opaque View at Physical layer to bring all Addresses on a single row.
    Thanks...
    Ramchand.

  • Best Solution for Creating an Onlne Purchase order form with multiple calculation fields

    I am a bit confused.  Our school has a Forms Central account which works great for our registration forms but I need to find a solution for creating an online purchase form with multiple calculation fields - I know that forms central does not support calculation fields (too bad) but I know that Acrobat Pro does... soooo...
    Can you create the forms in Acrobat and then somehow integrate the advanced features into forms central?  Do they talk to each other?  Is this easy to do? .... I guess another way to putting it is can you create the forms in Acrobat including all of the advanced features for payment calculation and then host it online using Forms Central to manage and collect the data? (I guess that really is my question)
    Thanks (how does this compare to a solution like Formstack?)

    Hi, thanks.
    The naming convention was the consistant up until a point when I read that you need a '.' syntax (?!) - does anyone know if this is true?
    Attached is a version with Bernd Alheit's suggestion and with all the naming of the fields being consistant. It's still not working for me though after doing this and I'm stuck as to why, because I think it should work. I've also tried writing the calcualting line of code in the same manner that Bernd Alheit suggests before I came on here, and it wouldn't work then.
    As with any coding, it must be something to which I have done, but I can't see it anywhere
    Any ideas? Thanks for helping me
    Cheers

  • Digital Signature - Auto-Populate Multiple Signature Fields

    Hello,
    I am in the process of testing digital signatures with PDFs.  I have a Topaz Signature Pad working in conjunction with Acrobat 9 and Reader 9 so that I can insert digital signatures with no problems.
    We are wanting to take this a step further and streamline a particular business process.  Does anyone know of a way to have a digital signature auto-populate multiple designated signature fields?  We have about 15 documents that require an employee signature in multiple places and rather than having someone sign a document over and over again, we'd like the option for a single signature that auto-fills in all the required signature fields.
    This doesn't necessarily have to work with Topaz Signature Pads.  I am completely open to other suggestions, products or methodologies for making this work as long as something can be automated to auto-fill multiple signature fields.
    Many thanks to the forum!
    Regards,
    Geoff

    Hi Geoff,
    Maybe there is no need to re-inent the wheel. Auto-population of forms is a feature of SignDoc - se http://www.signplus.com/en/products/signdoc/features.php#Form_Preparation
    Auto-filling of forms is requirement which can be achieved through various processes.
    In combination with Adobe LiveCycle this is executed in the case study of Adobe/SOFTPRO.
    http://blogs.adobe.com/security/2010/01/adobe_secured_customer_showcas_8.html
    http://www.adobe.com/cfusion/showcase/index.cfm?event=casestudydetail&casestudyid=762388&l oc=en_us
    However there are also other ways to move forward depending on the envrionment you are using.
    If you are based in the US you may want to get in touch with Rod Vesling SOFTPROs E-Signature Specialist, based in CA near LA, for a chat. His office phone is 805 435 1214. His email is [email protected]
    Depoending on the deice of Topaz you are usinfg you may start right away as quite a decent number of Topaz tablets are supported by SignDoc. However the best idea might be to give Rod a ring and idscus your business requirements in detail.
    Kind regards
    Joerg

  • How to change font in multiple form fields?

    I am creating a form - there are about 2 dozen form fields that are set up.
    I had Acrobat detect form fields.
    Is there a way I can select multiple form fields and change the font in all of them?
    I have tried selecting all the fields [cmd A] and double clicking to get to the appearance tab.
    The only changes the font in the 1 field I double click.
    thanks everyone!

    matthewmcneil wrote:
    I am creating a form - there are about 2 dozen form fields that are set up.
    I had Acrobat detect form fields.
    Is there a way I can select multiple form fields and change the font in all of them?
    I have tried selecting all the fields [cmd A] and double clicking to get to the appearance tab.
    The only changes the font in the 1 field I double click.
    thanks everyone!
    Select all the form fields , select first the hold shift key and select the rest Then right click or control click and choose properties. then look for "Fonts" choose desired font. If this works your all set otherwise you will have to choose each indivually and change.

Maybe you are looking for

  • Erro Transferência em duas etapas MM T.Mov 833/835

    Pessoal, Estou enfrentando um problema estranho aqui, cujo qual já pesquisei por notas, aqui no fórum e demais recursos. Utilizo o cenário de transf. em duas etapas, com solução standard de NFe. Na geração da NF do centro de origem (via mov.merc) oco

  • Is there a Limit to the amount of Pages in one file?

    I am building a large site with over 800 pages and counting. I am at 80 + and am already incountering slow down. Will I have issues with crashing and file errors the larger the site gets? If there is a limit, I need to know now as I have already inve

  • I am getting a message in Lightroom 5 that keeps popping up.  Please help!

    I am getting a message in Lightroom 5 that keeps popping up.  I don't understand it.  It says Aux Backup has something to say...   unable to check for newer version of 'rc Aux Backup' - Web server did not respond to http request

  • Help!!!! with DatagridColumn Header

    Hi all! This is my problem... I have a datagrid with itemrenderers in the header of some columns allowing to filter the results. The item renderer consist in a label and a custom control that displays a list with checks to select multiple values. I w

  • Data migration from 4.7 system to ECC 6.0

    Hi All, I am a Solution Architect. Currently working on a typical pursuit requirement. the requirement is as below: One of our customer is currently on SAP 4.7 system.  Their current system is shared by 2 companies & the companies got demerged now. H