Jump to content

cristianotestai

uniGUI Subscriber
  • Posts

    374
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by cristianotestai

  1. Hello Lema! My second question was resolved, thanks. But, i found a small situation with InfoWindow demo. The position of InfWindow is being generated exactly by Latitude and Longitude of the mark, getting InfoWindow above the mark. For API documentation, think it should be passed to the open parameter, the marker identifier, as link below: "When you create an info window, it is not displayed automatically on the map. To make the info window visible, you need to call the open() method on the InfoWindow, passing it the Map on which to open, and optionally, the Marker with which to anchor it. If no marker is provided, the info window will open at its position property". (https://developers.google.com/maps/documentation/javascript/infowindows) In the example the link below, InfoWindow appear correctly just above the marker icon. https://developers.google.com/maps/documentation/javascript/examples/infowindow-simple I tried in various ways to indicate the marker to the open method, as: 'markerEx_' + IntToStr(MyMarker.Id); but all without sucess. You could see this case? Thanks again!
  2. Hi Lema, Very Thanks! I'll see the demo tonight. You also saw my second question in the last post? Best Regards! Cristiano
  3. Hi Lema, I have two questions in using the content to display in InfoWindow: 1) I am trying to assign the following code in UniMemo: Where occours the ajax error: missing } after property list The bold line is correct, where use elsewhere. I debug and saw that the error occurs because you have double quotes within the content that is generated for the InfoWindow the content attribute. I tried a number of ways to change the generation of the line above, but does not work. How to not conflict the double quotation marks this code? 2) Do you know how close an open InfoWindow when a second window is generated? I need only ever show one at a time. Thanks for help!
  4. Lema, There is another situation: I need to get the Left and Top of the mark in relation the Form/Frame Parent when the user clicks on the mark for me to display a UniPanel just below the mark with some information about the mark. I thought I'd add in markerExClick Listener two more variables that could return to the parameters in ajax event, something like: 'xpos =' + e.ClientX, '+ 'ypos =' + e.ClientY ' Could you add something like this for me to have the position of the mark in relation to its Parent component for above purpose? Thanks!
  5. Hello Lema, I believe to have found the problem, which can be a possible bug. I debug and found that the ajax events are fired in the UniGMap MainForm component, not the component that is in the frame, which is the object that should respond to map events. It is probable that this possible bug occurs when using the Frames that are loaded in the main form, and for some reason, the events are captured by the object(UniGmap) of the main form of the application. Another thing, there is a way to report to the Title property of the mark to contain concatenated two words, one under the other? Ex: I tried Title: = varName1 + '<br>' + varName2 + '</br>'; but he gets everything as a single string. Thanks again!
  6. No, ajaxevent not fired. The js files are in \files directory, basic configuration are correct and work, but ajax event not fired.
  7. Hi, My project with UniGMap is not firing the AjaxEvent. I create marks for the map, make a click on the mark and drag, and does not fire any Ajax Event. I checked the settings in the UniGmap Demo and there is nothing different, where the Demo events are fired. Any idea what could be? Delphi XE6 UniGui 0.97
  8. Hi Lema! I plan to have a clean panel with the name in bold, the address with normal font below and below a link to the contact page. I believe that with CSS would be more elegant than create its own form just for this, more i'm not sure how to accomplish this with UniGmap component. In the image of the previous post, shows just how I like to have the information. Thank you in advance. Best Regards.
  9. Hi Lema and All, Thanks for comment .. really, the user must enter a well-formed address. I have other situation: In the demo UniGMap component, is shown the use of Labels for Marks on Map where you can associate a CSS style or CSS class. It is possible to create a more elegant panel for the mark on the map as can be seen in the attached image? I need that when the user clicks on the mark, a panel with some information (similar to the example image) are presented as used by Google Maps. Could you indicate if possible, how to perform the effect i need? Thanks!
  10. Happy New Year! God Bless All !!
  11. Hello Lema! My table has the following fields, for example: Name, Address, City, State or Province, Latitude, Longitude. I have some questions about the best way to store the Latitude and Longitude: 1) At the moment of Insert, before storing in the database, I must make a call to the Google Maps API to get the Latitude and Longitude registry, to store in the table, right? So, how to handle, if the user only informed the Address without informing the city or state? Or if he only informed the City, without informing the address? I ask these questions because it is not necessarily required to inform the full address. 2) In each update of a record, I'll need to monitor if there was a change in one of the above fields to again call the API to get the latitude and longitude and update the registry. This is the best or only way to achieve? Thanks for your comment.
  12. Hi Lema, To search the data and create the marks on the map, you store in the database the Latitude and Longitude information of each location, or at runtime, you search on Google API this information regarding the address to create the marks? Regards, Cristiano Testai Brazil
  13. Hi Lema, I will try to do according to my need, and then I post the result. Thanks, Cristiano
  14. Hello, Anyone know how to use the Google Maps to do for example: I have a contact list categorized by neighborhood or street and would like to display on the map all my contacts that are of particular street or neighborhood of a city. What I need is to have a view on a map indicating the contacts, and hover at some point, show the contact name for example. Someone already did something similar or have any idea perhaps using the UniGmap? Thanks.
  15. Hi Farshad, Cool! When can we have this feature in UniDBGrid?
  16. Yes, Farshad, a sub grid colapsible. Is feasible to implement? Would be a functional feature. Thanks.
  17. Hi All, I have a UniDBGrid that displays records from a simple list of customers, with Name, Email and Phone columns. I want this grid, have a column(collapible) before the Name, content with symbol "+", which, when clicked on it, appears below another grid(detail) containing the information of the location of the customer, with the columns City, State and Country. If the User click again (symbol "-"), the detail grid disappears, because it must be colapisible. I know that currently in UniGui, this feature does not exist but is very similar to the example of the Grouping, only need to show the columns of City, State and Country in a grid below, which should appear when the user selects the indicated column with the "+" symbol. Attached I show an image with the feature that need to have. It would be possible to do this in some way? Any Idea? Thanks, Cristiano Brazil
  18. Hi Farshad, The appearance of the EXT JS 5 is awesome! It seems there was a significant improvement in design (CSS with Crisp Theme and resources) of the framework. The link below shows an example: http://dev.sencha.com/ext/5.0.0/examples/executive-dashboard/index.html#!kpi/clicks http://dev.sencha.com/ext/5.0.0/examples/executive-dashboard/index.html#!quarterly/AAPL Farshad, there any idea of time to support EXT JS 5? Thanks.
  19. Hi Oliver! Seconds after I post, I remember that I needed to reference the form and component related the "sender", and it worked correctly, Thanks! Bellow the code: Text := '<span style="text-decoration: underline; color: #004891; cursor: pointer" ' + ' onclick="ajaxRequest(fmAccount.btSearch, '+QuotedStr('search')+');">Edit</span>';
  20. Hi Oliver, I tried using ajaxRequest, but without success. My code is in the OnGetText TField event, located in MainModule, as follows: procedure TMainModule.cdsAccounteditGetText(Sender: TField; var Text: string; DisplayText: Boolean); begin Text := '<span style="text-decoration: underline; color: #004891; cursor: pointer" ' + ' onclick="ajaxRequest(sender, '+QuotedStr('search')+');">Edit</span>'; end; How do I capture the ajaxRequest? In theory, not have OnAjaxEvent for this text. Thanks for your help.
  21. Hello, In a UniDBGrid, I have a field that content is a plain text (String). How can I set up an event "click" for performing a ajaxRequest this text? The attached image shows an example where the text "Edit" I need to perform a ajaxRequest to open another form. Anyone have any ideas?
  22. I also agree with Erich. We know that this is the ExtJS Framework, and not UniGui(i'm correct?), but it is a confused html, off patterns and embedded css. Cristiano Testai
  23. Hi, Just a tip: This type of manipulation interface should be implemented by client scripting: ClientEvents. All code implemented in class procedures are performed on the server side because UniGui is 100% server side, which may cause some delay when many iterations are performed by the user. Best Regards, Cristiano Testai
×
×
  • Create New...