How to use a searchfield in a dashboard widget?

Hi,
I would to use the Searchfield component in my widget, but I'm not sure how it works. I already know it's a NSSearchField, but that's it.
The purpose for this search field is searching within an array of strings and presenting the results in a sort of dropdown list (from the searchfield object). Like the one I see in several weather widgets.
Any tips or suggestions ?
With regards,
Rutger van Dijk
The Netherlands
Message was edited by: rlvdijk

rlvdijk wrote:
Any tips or suggestions ?
Find a Widget (or more Widgets) that does what you want and search its code. It will help you to get started.
Mihalis.

Similar Messages

  • How to update a previously submitted, selling Dashboard Widget?

    did neither find a way to upload a new dashboard widget nor to update an existing one.. any advise or hint is appreciated!
    Thank you.

    Thanks for posting... I'm experiencing the same thing, it's nice to know I'm not going crazy. 
    I've periodically attempted to update my widget in the past year... It's free, I make no money from it, and neither does Apple, but it's not about me or Apple, it's about the people who want to use the app, and learn how to play the piano.
    I've invested a few hours attempting to move forwards on this issue, and if it's truely not possible... then that seems like a large shortfall in customer service; it's not just the developers wasting time, it's the customers looking for the products.
    If I'm missing something, please let me know.

  • How to capture an HTML snippet like dashboard widget?

    How do you copy a website html to paste into an iWeb 09 html snippet? Is there a copy command in the Safari browser like when you clip a snippet to make a Dashboard widget? That would be too easy. Do I need some other software for copying the html?

    Photog Dog wrote:
    How do you copy a website html to paste into an iWeb 09 html snippet?
    Drag your pointer over the embed code so that it is all highlighted in blue. Then do ⌘C to copy it and then paste it into iWeb's HTML Snippet window by doing ⌘V.
    Is there a copy command in the Safari browser like when you clip a snippet to make a Dashboard widget?
    No — Only the general ⌘C and ⌘V editing commands mentioned above.
    Do I need some other software for copying the html?
    No.

  • How come Safari will not open the dashboard widgets?

    I need some help I was trying to open some dashboard widgets I kept getting a error message from Safari.  Stating that this page was not able to open?  Any help would be greatly appreciated!! Please any suggestion

    Could be the com.apple.Safari.plisy file in ~/Library/Preferences/. Try removing that first. If no change, move ~/Library/Safari/ to your desktop. If no change, try creating/logging into a test user account.

  • How to use multiple connections for xcelsius dashboard via toggle button

    Can anyone shed some light on how to apply a toggle button for multiple connections using xcelsius dashboard.
    I created two SAP connections in my xcelsius dashboard.  The first connection uses query 1 (bottom ten customers) and the second connection uses query 2 (top ten customers).  I wanted to use a toggle button where the user would click Top Ten customers versus Bottom Ten customers.  Which ever the user clicks in the toggle botton would run that query.
    If the toggle button is not the way to handle this can someone explain a better approach to run either query in the same dashboard.
    Thanks,
    Joe

    Hi,
    I've never had to do this so have no practical experience.  However in theory you should be able to do the following (assuming the data connection type youu2019re using has the "Usage" tab):
    Set up the two connections as normal - On the usage tab set the detail query to Refresh before components are loaded and make sure that this is unchecked for the other query.  Set both queries to populate the same range so that one query will overwrite the other in the Xcelsius spreadsheet.
    Bind a toggle button to a cell e.g. A1
    Back to the data connections again and set the "Refresh on trigger" trigger cell to A1.  And set the "When Value Becomes" to either "On" or "Off" dependent on how you've set up the toggle button.  Repeat for the other query.
    Hope this helps,
    Paul

  • How do i get back the original dashboard widgets without a software cd?

    I know you can choose lots of widgets but i much preferred the original and there is so many to choose from, is the originals in there somewhere? not looking for loads, i think i chose to have a world time thing, a calculator and a weather thing..but im used to them and i dont want any of the others you can choose from! Sorry im stuck in my ways, its like that coffee advert, "we dont like change"

    Never mind...somehow i got them just by messing around and trying different things...im quite excited...almost got my idvd problem fixed as well, making progress anyway which is wonderful. I feel like im talking to myself by writing this but i dont care, i had been sooo fustrated trying to fix these things and now im getting somewhere. Its a good day even though its not..(coz its raining)

  • How do I save preferences/values using javascript in dashboard widget?

    How do I save preferences/values using javascript in dashboard widget? I apologize if this is a stupid question but I simply cant seem to find a way. For example, if on teh back side of the widget teh user chooses the color of the widget, where or how do I save that value so it is retained the next time the user goes to the dashboard. Also, once saved, how do I read the value?
    Thanks a mil....

    Please look into
    /Developer/Examples/Dashboard/Goodbye World/3-Saving Preferences directory for a comple example.
    Otherwise, wait until the following book is published :-))
    http://www.apress.com/book/bookDisplay.html?bID=10173
    Mihalis.

  • How to use the admin user account in reports and dashboards?

    Hi Everyone,
    I want to use the admin user account in report and dashboard connections. But the Hyperion is automatically using the current user's credentials to fetch data.
    Hyperion 11.1.1.1
    Thanks
    Syantan

    This has been posted in the essbase forum > How to use the admin user account in reports and dashboards?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to use Dashboard as a cut & paste software

    Hi !
    I´ve hard to understand the function of "Dashboard" - I thought that the software could be a help for me to cut/copy pictures on websites for an example - I thought that I could mark an area on a site, copy the are and save it to iPhoto or copy it to Pager or other programs but it didn´t work that way. So now I´m looking forward to get an introduction in "how to use Dashboard" from someone who knows more about Mac and the programs than I do.
    Best regards / Marlene

    Dashboard exists to display the various widgets such as clocks, weather or Stock Market info, dictionary, etc.etc.
    You don't need it for what you want to do. Most pictures on websites can be saved simply by dragging them to the Desktop - try it with the picture on the right. Otherwise, hit command-shift-4 and click drag the mouse over the area you want to save: an image will be saved to your Desktop.

  • How to merge calendar month dimension on dashboard??

    Hi All
    can anyone get me solution for below issue?
    Report : Vendor Performance
    Reporting tool : Dashboard
    Selection : Vendor1
    Requirement : Should show the report as you see in pic 1
    1. I have three different KPI's which has to be shown in same table like u see in Pic 1 and each KPI values comes from different queries.
    2. When i map this data to excel i am getting values as you see in Pic 2, Pic 3 and Pic 4.
    3. if you see Pic 1 (data comes from query 1)  there is data for JAN where as we dont have JAN data for Pic 2( or query 2).
    Now my question is how we can combine all this values as we see in Pic 1?.. I need all values to be shown for respective month. for example if there is no data for march and it should be blank.
    Can it be done on BW side if not in BO?\
    Note : I am able to done this on webi report by merging calendar month for all three query.
    Thanks in advance

    Hi Vijay
    It can be on BW side also. Check with your BW team if all three queries are built on different infoproviders if yes built a multiprovider on top of all infoproviders and create a new query. This query will have calendar month and your KPI1, KPI 2 and KPI3 key figures in it.
    You can use this single query in Dashboard now.
    As suggested by others you can use webi merged dimension functionality or HLOOKUP also.
    Regards
    Shabnam

  • How to: Embed YouTube in Ibook/Location of File, Open in Dashboard Widget Code?

    Hi,
    I am new to the whole Mac experience and loving it after 25 years locked into the MSGATES paradigm. I have been playing around with Ibook and have made a book. I would like to embed a You Tube file and it seems it is not as simple as slecting an HTML widget and then dropping in the Youtube embed code. Or is it?
    Instructions are to create a widget and then drag the widget code into the HTML widget in iBooks. I was able to make it as far as to learn I can make my YouTube video a custom dashboard widget using the "File," "Open in Dashboard" method in Safari.
    Once I did this I was able to select the portion of the YouTUBE page and click to make the YouTube widget. Presto, easy as pie. But where is the .wdgt file (and/or other related files to this custom dashboard widget) stored? I was able to find the widget directory in my root but only the preinstalled widgets were there--not the the widget I was able to make with the "File," "Open in Dashboard" method.
    Is this the most straightforward way to embed a You Tube file, or is there another way?
    It seems this should/can be as easy as just dropping the embed code into the HTML widget in iBooks. perhaps a consideration for the next version of iBooks...
    Lov'in the Apple experience

    We use a container thats ratio matches the video and insert following format into the folio overlay controls for Web Content: https://www.youtube.com/embed/ jyOFS5lAG68    *PLEASE NOTE: there is a space between the embed/ the video ID.  Remove it to see how the video looks when you paste the link.
    We found this works on both iOS and Android.
    -Ry-

  • How to use logic:present tag in struts el tag

    Hi
    I am trying to use struts el tags in the jsp page.I am struggling with the following exception: Cannot find bean: "result" in any scope.I couldn't understand why this error is coming even i had the property "result" in my ActionForm.
    ActionForm:
    package com.finocus.cam.struts.bean;
    import java.util.List;
    import javax.servlet.http.HttpServletRequest;
    import org.apache.struts.action.ActionError;
    import org.apache.struts.action.ActionErrors;
    import org.apache.struts.action.ActionMapping;
    import com.finocus.cam.common.ValidateFormat;
    public class DetailsForm extends org.apache.struts.action.ActionForm {
         private final static String LOG_TAG = DetailsForm.class.getName() + ".";
         private static final long serialVersionUID = 1L;
         // VARIABLES DECLARATION
         private String name = null;
         private String searchField = null;
         private String searchCriteria = null;
         private String phonenumber = "";
         private String email = "";
         private List results = null;
         private String adminUserName = "";
         private String adminUserEmail = "";
         public DetailsForm() {
         // GETTER AND SETTER METHODS
         public String getName() {
              return name;
         public void setName(String name) {
              this.name = name;
         public String getSearchCriteria() {
              return searchCriteria;
         public void setSearchCriteria(String searchCriteria) {
              this.searchCriteria = searchCriteria;
         public String getSearchField() {
              return searchField;
         public void setSearchField(String searchField) {
              this.searchField = searchField;
         public String getEmail() {
              return email;
         public void setEmail(String email) {
              this.email = email;
         public List getResults() {
              return results;
         public void setResults(List results) {
              this.results = results;
         public String getPhonenumber() {
              return phonenumber;
         public void setPhonenumber(String phonenumber) {
              this.phonenumber = phonenumber;
         public String getAdminUserEmail() {
              return adminUserEmail;
         public void setAdminUserEmail(String adminUserEmail) {
              this.adminUserEmail = adminUserEmail;
         public String getAdminUserName() {
              return adminUserName;
         public void setAdminUserName(String adminUserName) {
              this.adminUserName = adminUserName;
         // DUMPING THE VALUES IN THE CONSOLE
         public void dumpValues() {
              StringBuffer sb = new StringBuffer();
              sb.append("Name'");
              sb.append(name);
              sb.append("SearchField");
              sb.append(searchField);
              sb.append("searchCriteria");
              sb.append(searchCriteria);
              sb.append("'");
              sb.append(" ");
              System.out.println(sb.toString());
         // RESET() METHOD IS USED FOR STORE FORM'S CURRENT VARIABLES DECLARATION
         public void reset(ActionMapping actionMapping, HttpServletRequest request) {
              System.out.println("reset() method is called");
              this.email = null;
              this.searchCriteria = null;
              this.searchField = null;
              this.results = null;
         // VALIDATE() METHOD IS USED TO VALIDATE THE FORM DATA
         public ActionErrors validate(ActionMapping actionMapping,
                   HttpServletRequest request) {
              ActionErrors errors = new ActionErrors();
              System.out.println("Validate()is called");
              // Determine if name has been entered.
              if (getName() == null || getName().length() == 0
                        || getName().equals(" ")) {
                   errors.add("accountText", new ActionError("searchText.error"));
              } else if ((getSearchField().equals("name") == true)
                        && (ValidateFormat.isValidText(getName()) == false)) {
                   errors.add("validAccountName", new ActionError("validName.error"));
              if (getSearchField() == null || getSearchField().length() == 0) {
                   errors.add("accountSearchField", new ActionError(
                             "searchField.error"));
              } else if ((getSearchField().equals("email") == true)
                        && (ValidateFormat.isValidEmail(getName()) == false)) {
                   errors
                             .add("validAccountEmail", new ActionError(
                                       "validEmail.error"));
              } else if ((getSearchField().equals("phonenumber") == true)
                        && (ValidateFormat.isValidPhoneNoFormat(getName()) == false)) {
                   errors.add("validPhoneFormat", new ActionError(
                             "validPhoneFormat.error"));
              if ((getSearchField().equals("searchallfields"))
                        && ((ValidateFormat.isValidText(getName()) == false)
                                  && (ValidateFormat.isValidEmail(getName()) == false) && (ValidateFormat
                                  .isValidPhoneNoFormat(getName()) == false))) {
                   errors.add("validNameEmail",
                             new ActionError("validNameEmail.error"));
              return errors;
    Action class:
    package com.finocus.cam.struts.action;
    import java.util.ArrayList;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    import com.finocus.cam.db.CAMDbAccess;
    import com.finocus.cam.struts.bean.DetailsForm;
    public class DetailsAction extends org.apache.struts.action.Action implements
              com.finocus.cam.common.CAMConstants {
         private final static String LOG_TAG = DetailsAction.class.getName() + ".";
         // Global Forwards
         public static final String GLOBAL_FORWARD_search = "login";
         // Local Forwards
         public static final String SUCCESS_search = "success";
         private boolean dumpRequestParams = true;
         public DetailsAction() {
         public ActionForward execute(ActionMapping mapping, ActionForm form,
                   HttpServletRequest request, HttpServletResponse response)
                   throws Exception {
              System.out.println("SearchAccount execute() is called");
              HttpSession session = request.getSession(true);
              ArrayList results = null;
              DetailsForm search = (DetailsForm) form;
              String name = search.getName();
              String searchField = search.getSearchField();
              String searchCriteria = search.getSearchCriteria();
              // Dumping the values of input patameters
              if (dumpRequestParams == true) {
                   request.setAttribute("SearchCriteria", searchCriteria);
                   request.setAttribute("SearchField", searchField);
                   request.setAttribute("Text", name);
                   search.dumpValues();
              // Perform search based on what criteria and search Field was entered.
              CAMDbAccess dbAccess = CAMDbAccess.getInstance();
              if (null != searchCriteria && searchField != null) {
                   System.out.println("Search Criteria =" + searchCriteria
                             + "Selected Option =" + searchField);
                   if (searchCriteria.equals(Search_Account) && searchField != null) {
                        results = dbAccess.searchByAccountInfo(name, searchCriteria,
                                  searchField);
                        System.out.println(" Search criteria :Exact Match was selected.<BR>");
              // Place search results in SearchForm for access by JSP.
              search.setResults(results);
              // Forward control to this Action's input page.
              return mapping.findForward(SUCCESS_search);
    My jsp page:
    <%@ taglib uri="/WEB-INF/tld/struts-bean" prefix="bean" %>
    <%@ taglib prefix="logic" uri="http://struts.apache.org/tags-logic-el" %>
    <%@ taglib uri="/WEB-INF/tld/struts-html" prefix="html" %>
    <html:html>
    <head>
    <title>Search Page</title>
    </head>
    <body colorants="LightGreen">
         <table width="100%" bgcolor="LightGreen">
              <tr>
                   <td align="left"><font color="brown"><h3><b>Search Info</b></h3></font><hr></td>
              </tr>
                   <tr>
              <td align="left"><h4><font color="brown"><b>Search Text:</b></font><%=request.getAttribute("Text")%></h4></td>
                   </tr><tr>
              <td align="left"><h4><font color="brown"><b>Search Field:</b></font><%=request.getAttribute("SearchField")%></h4></td>
              </tr><tr>
                   <td align="left"><h4><font color="brown"><b>Search Criteria:</b></font><%=request.getAttribute("SearchCriteria")%></h4></td>
                   </tr><tr>
                   <html:form action="/results.do">
                        <td><center><html:submit value="AllSearchOptions " /></center></td>
                        </html:form>
                   </tr>
              <tr>
                   <td align="left"><font color="brown"><hr><h2><b>Search Results</b></h2></font></td>
              </tr>
              <tr>
              <td>
              <table border="1" cellspacing="1" cellpadding="3" width="70%"
                   bgcolor="white">
                   <logic:present name="searchbyaccount" property="results">
                   Results exists
                        <c:if test="${size==0 }">
                   <center><font color="red"><b>No Results Found</b></font></center>
                   </c:if>
                   <br>
                        <c:if test="${size>0}">
                        Size is greater than ZERO
                             <table border="1" cellspacing="1" cellpadding="3" width="70%"
                                  bgcolor="white">
                                  <tr>
                                      <th>Customerid</th>
                                       <th>First Name</th>
                                       <th>Last Name</th>
                                       <th>Email</th>
                                       <th>phone Number</th>
                                       <th>Details</th>
                                  </tr>
                                       <c:forEach var="result" items="${results}">
                                        <c:out value="${result}"/>
                                       <tr>
                                            <td><bean:write name="result" property="customerid"></bean:write></td>
                                            <td><bean:write name="result"
                                                 property="accountAdminFirstName"></bean:write></td>
                                            <td><bean:write name="result"
                                                 property="accountAdminLastName" /></td>
                                            <td><bean:write name="result" property="accountability" /></td>
                                            <td><bean:write name="result" property="accountAdminPhone" /></td>
                                            <td><html:form action="/accountDetails.do">
                                                      <html:submit value="Details" />
                                            </html:form></td>
                                       </tr>
                                  </c:forEach>
                             </table>
                        </c:if>
              </logic:present>
              </table>
              </td>
              </tr>
         </table>
    </body>
    </html:html> Please refer me where i done a mistake.Thanks in Advance

    hi all,
    I am doing programs in sturts. My program
    My program purpose is to retrieve data from the
    database.My database is MySql. I know that we can
    write connection code in Action Class, it is ok for
    some less prog's if i want to use the sane connection
    code in more Action Classes it is vasting time and
    so.I don't think it's a good idea to put database code in Action classes. (That's one of the biggest drawbacks of Struts - it's completely tied to Actions, HTTP, and the Web.) Better to move that code into plain old Java objects and let the Actions call them.
    You'll be able to test them without the container or Struts, and you'll be able to reuse those objects in other, non-Web contexts.
    So i want to use <data-sources> tag that is available
    in struts-config.xml. I know that thre is tag withThis is the wrong place to configure a connection pool, too. Struts should have nothing to do with it. What if you change Web frameworks to WebWork or Spring? The connection pool should be configured in the container that hosts your app, not Struts.
    this name, but the problem is i don't know how to use
    this tag. If any budy know how to use this please
    tell me the syntax or any example.
    plese... reply soon..Don't do it. Think about doing it in your container, not Struts.
    %

  • How to use CSS option in Answers

    Hi,
    I have around 5 Dashboards, which includes close to 20 Reports.
    I would like to learn how I can format column name (like Font, Size) and data appearance in each report.
    Currently am doing it manually, one column by one column. I would like to know how to use CSS option.
    Regards,
    Jitendra

    The easiest way is to do this is to create a new "skin" for your dashboards or either modify the default. The location of the default folder is /res/s_oracle10/b_mozilla/views.css. The view.css file is where you can go and customize the classes. For example, if you want to customize the Pivot Table Row Header, search for .PTRH and then you can alter the existing formatting or add additional specifications.

  • How to use Stored Procedure in RPD

    In the physical layer we have a option for procedure when we select a tables general tab.I created the procedure
    but i am not able to retrieve values in the Dashboard.
    Could anyone help me with this as how to use procedure.

    Oracle stored procedure don't return recordssets. You have to put the result of the stored procedure in a global temp table and reference the rpd to that table. the execution of the stored procedure can be triggerd form the "execute before query" part in the connection pool.
    regards
    John
    http://obiee101.blogspot.com/

  • Hardware compressor and am not quite sure how to use it in logic express 9. Please help???

    I recently bought a dbx hardware compressor and am not quite sure how to use it in logic express 9. I hav a focusrite saffire 6 usb audio interface and am not sure how to use it in logic. Please help???

    Hi Ujjawal,
    Use the Tab-order property of IR object.
    In design mode, select the any command button, right click and select the property. you will find the window for "Tab-Order". It lists all the objects available in that dashboard. Here you can arrange the tab order..
    Hope it will help you.
    Thanks & Regards,
    Mohit Jain

Maybe you are looking for