Jump to content

Rafael P

uniGUI Subscriber
  • Posts

    72
  • Joined

  • Last visited

1 Follower

Profile Information

  • Gender
    Male
  • Location
    Brazil

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Rafael P's Achievements

Member

Member (2/4)

7

Reputation

  1. And how can i get values from multiple checkboxes selected in a dbgrid and display in a ShowMessage, for example?
  2. Hi everyone! Is there any solution to hide parameters like 'xxx.DLL' in mobile navigation on uniGUI? I mean, everytime we start the application on mobile he loads the main site and his .DLL. I want to hide all captions after '.com', including the 'ABCDEF.DLL' part. In desktop everything looks regular, but as soon we start to use mobile, he show all parameters... P.S: i've already see this link, including the solution from IIS, and doesn't work. Thanks!
  3. Thanks, but apparently there's no solution (yet) for this... Have you tried something?
  4. Hi everyone! Its gonna be difficult to explain this, but i will give a try: We have our template application (landing page) builded in a web app called 'Site 123' and uniGUI have this template deployed inside a container (TUniURLFrame). What happens is already saved this settings in the search engine inside the platform app (Site 123) and we want to achieve the most high access (clicks) into our website, but unfortunately, doesn't work as we think before. Is there any kind of setting to increase the searches of our website inside on uniGUI, so the application can give more 'visibility' to the user who is searching for the specific terms on the internet? Thanks to anyone who can answer this!
  5. I have tried to do this in OnCreate Event, but it didn't work. And unfortunately, DBListGrid on Mobile doesn't have the OnDrawnColumnCell event which will be possible to change the color of the rows using Attributes from the grid (color or font, for example)....
  6. Excuse-me if i asking you 'how to do' other things... But, now i'm trying to change some specifically row from the grid in run-time according to the status. For example, if status = 5 then *change the 7 column of the grid in run time to color red* in this case. Because the color that you're currently see, its just defined in html. So i pretend to change according to the status... There's some event of the grid that i can do this? If Yes, how can i supposed to do? Thanks again!
  7. First of all, thank you for your help. It works, but parcially. I pretend to put some images to display in a grid in under circustances. There's 5 images, but only 2 has appeared to display... Here's my source. Hope you can help me to solve this, i can't find where is the error... - DataSource (OnCalcFields): procedure TDmNFe.SQL_Lista_NFeCalcFields(DataSet: TDataSet); var APath : String; begin if SQL_Lista_NFeid_status.AsInteger = cNFeFaltaEnviar then begin if not DirectoryExists(APath) then begin DataSet.FieldByName('status_mobile').AsString := '/files/f.png'; end; end; if SQL_Lista_NFeid_status.AsInteger = cNFeCancelado then begin if not DirectoryExists(APath) then begin DataSet.FieldByName('status_mobile').AsString := '/files/c.png'; end; end; if SQL_Lista_NFeid_status.AsInteger = cNFeAutorizado then begin if not DirectoryExists(APath) then begin DataSet.FieldByName('status_mobile').AsString := '/files/a.png'; end; end; if SQL_Lista_NFeid_status.AsInteger = cNFeUsoDenegado then begin if not DirectoryExists(APath) then begin DataSet.FieldByName('status_mobile').AsString := '/files/d.png'; end; end; if SQL_Lista_NFeid_status.AsInteger = cNFeContingencia then begin if not DirectoryExists(APath) then begin DataSet.FieldByName('status_mobile').AsString := '/files/co.png'; end; end; end; These images that are marked with a row needed to display a third image (cNFeAutorizado), and unfortunately shows (cNFeFaltaEnviar). - The second image down below is the final result that i want to achieve (Desktop).
  8. I've already chose the column to display the image... Unfortunately, did not work.
  9. Ok, do you have any example of how can i use some images to attach on the grid? I mean, in the 7 index of my grid, i want to display some different images to distinct the row status. But, i'm using the Event OnFieldImage direct from the grid. Here's my scenario, hope you understand: - Grid: function beforeInit(sender, config) { function randomIntFromInterval(min, max) { return Math.floor(Math.random() * (max - min + 1) + min); } config.selectedCls=''; config.deleteRow=function(indx){ ajaxRequest(MNotaFiscal.window,'deleteRow',['index='+indx.toString()]); }; var clrs=['#5acb98','#72b3e3','#f98689','#fcca67','#d3b894','#f491bc']; var clrIndx=0; var htmlRow='<div class="myrow" style="background-color:#FAF6F5";height:auto">'+ '<table style="width:100%;height:100%;vertical-align:middle;margin-top:8px;margin-bottom:8px;">'+ '<tr>'+ '<td style="width:100%;text-align:center;color:#3093c7;font-family:verdana;font-size:16px;">'+ '<span style="color:#0092f4;width:100%;display:inline-block;"> {0} - {1}</span>'+ '<span style="color:#000;width:100%;display:inline-block;"> {2}</span>'+ '<span style="color:#000;width:300px;display:inline-block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"> {4}</span>'+ '<span style="color:#000;width:100%;display:inline-block;">Valor: {6}</span>'+ '<span style="color:#000;width:100%;display:inline-block;">Status: {7}</span>'+ '</td>'+ '<td style="width:5px;text-align:center;">'+ '{[this.getNumber()]}'+ /*'<img src="files/images/up.svg" style="width:12px;height12px;margin:auto;"/>'+ '<span style="color:#f00;font-size:12px;">+ 150</span>'+*/ '</td>'+ '</tr>'+ '</table>'+ '</div>'; config.itemTpl= new Ext.XTemplate( htmlRow, { getColor: function(){ if(clrIndx>5){clrIndx=0;} return clrs[clrIndx++]; } } ); } OnFieldImage Event from the Grid: procedure TMNotaFiscal.dbListGridPadraoFieldImage( const Column: TunimDBListGridColumn; const AField: TField; var OutImage: TGraphic; var DoNotDispose: Boolean; var ATransparent: TUniTransparentOption); begin inherited; if SameText(AField.FieldName, 'status_mobile') then begin DoNotDispose := True; if AField.AsInteger = cNFeFaltaEnviar then OutImage := pImageFaltaEnviar.Picture.Graphic; end; end; But, in fact, the grid shows blank data, with no current image... Here's the example: I appreciate any help!
  10. Same here... There's any workaround for this?
  11. Someone has discovered how to attach some images?
  12. I made a test case for this issue. Unigui_Mobile_Listview.rar
  13. Hi Everyone! I'm using the component UnimDBGrid to create some ListView according to this tutorial created by Mohamad Sadek. But, unfortunately, seems not working using UnimDbGrid, under the BeforeInit Event... The Grid seems not to render the custom html... What could possible i can do for this? Ps: see the attachment below. Thanks!
×
×
  • Create New...