Jump to content

Rafael P

uniGUI Subscriber
  • Posts

    88
  • Joined

  • Last visited

Posts posted by Rafael P

  1. 1 hour ago, mikromundo said:

    @Rafael P

    O que o Sherzod está lhe pedindo é que vc anexe o script js e poste aqui o link do Google onde vc o baixou.

    melhor ainda seria vc criar um projeto limpo, adicionar o script( pra simular o que vc quer ) que vc tem e enviar esse projeto.

     

    what Sherzod is asking is that you attach the js script and post here the Google link where you downloaded it.

    even better would be for you to create a clean project, add the script (to simulate what you want) that you have and send this project.

    Opa amigo, então eu havia adicionado o link mas apaguei depois da resposta dele. É pra colocar esse script após o confirm do botão, só que não faço ideia de como colocá-lo porque é de uma ferramenta de analytics de marketing do Google. Nos foi dado durante uma reunião e chegou até mim somente dessa forma. Então não sei se isso é realmente possível. 

  2. 4 minutes ago, Sherzod said:

    If the file is located in the web directory, and after including it in CutomFiles, if the file contains a running script, then it will already run.

    I think i will need to specify more details from my project.

    First, this script was provided by Google and all he have to do is capture many of people who access our website and register on it, so he can help us to know where we can put our efforts in publicity, gain access, etc... it's a Marketing tool.

    And the instructions is telling us to put this script right after user click on register or confirm button. 

    But i can't see a easy way to implement this...  it was supposed to be something trivial but it wasn't until now... 

  3. Just now, Rafael P said:

    Nope. I mean, i want to display a message on UnimDbListGrid when click on OnClick Event. By default, there's no Propertie like on UnimDbGrid (LoadMask).

     

    image.png.430c170fbd1228ac761b767998ece8fd.png

    Simple display a message to "data is loading" once he clicked

  4. 16 minutes ago, Sherzod said:

    Okay. Do you want to manage it? Enable/Disable, change loadmask text?

    Nope. I mean, i want to display a message on UnimDbListGrid when click on OnClick Event. By default, there's no Propertie like on UnimDbGrid (LoadMask).

     

    image.png.430c170fbd1228ac761b767998ece8fd.png

  5. 4 minutes ago, Sherzod said:

    Ok, np.

    And what you wanted?

    Simillar to LoadMask on DBGrid, i want to display a message for "data is loading" into OnClick Event to show a user that data is loading when clicked on mobile in UnimDbListGrid...

    image.png.3ec699bcf7a698a95bd3ac07ec2d6051.png

  6. Hello everyone!

    i'm searching for a property on UnimDbListGrid to input a mask for display a message for "data is loading" when OnClick Event is triggered but i don't find anything that could be useful here. In properties there's no InputMask function like desktop component... 

    Any idea?

    Thank you so much!

  7. On 10/12/2020 at 8:30 AM, irigsoft said:

    for i := 0 to grdUser.SelectedRows.Count-1 do begin

           grdUser.DataSource.DataSet.GotoBookmark(TUniBookmarkList (grdUser.SelectedRows[I]));

           SelectedIDLIst.Add (grdUser.DataSource.DataSet.RecNo);

    end;

    And how can i get values from multiple checkboxes selected in a dbgrid and display in a ShowMessage, for example? 

  8. 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!

    image.png

  9. 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!

    • Upvote 1
  10. On 1/22/2021 at 10:02 AM, x11 said:

    if still relevant

    use functions

    
    function beforeInit(sender, config){
    	config.loadMask = false;
    	config.loadingText = 'загрузка...';
    	config.emptyText = 'даних немає'; 
    	config.grouped = false;
    	
    	var descr = '<table class="tblResDescr">' +
                        '<tr>' +
    						'<td class="tdDbgRowLogin">{[this.getVal(values, "NAME")]} {[this.getArc(values)]}</td>' +
    							'<td class="tdBtnPopup"><button class="btnPopup" user-id="{[this.getVal(values, "ID")]}"><i class="fas fa-angle-down"></i></td>' +
    						'</tr>' +                     
                        '<tr>' +
                            '<td colspan="2">ID {[this.getVal(values, "ID")]}</td>' +
                        '</tr>' +                   
                        '<tr>' +
                            '<td colspan="2" class="tdDbgRowDescr">'+
    						'<a href="tel://{[this.getVal(values, "PHONE1")]}" target="_blank">{[this.getVal(values, "PHONE1")]}</a>   /   '+
    						'<a href="tel://{[this.getVal(values, "PHONE2")]}" target="_blank">{[this.getVal(values, "PHONE2")]}</a>   /   '+
    						'{[this.getVal(values, "E_MAIL")]}    Обране: {[this.getVal(values, "COUNT_FAVORIT")]}</td>' +
                        '</tr>' +
                        '<tr>' +
    					'<td colspan="2">' +
    					'<div style="display: flex; justify-content: space-between">' +
                            '<div class="tdDbgRow">{[this.getVal(values, "GROUP_NAME")]}</div>' +
    						'<div class="tdDbgRowArea">{[this.getFullName(values)]}</div>' +
    					'</div>' +
    					'</td>' +
                        '</tr>'+
                    '</table>';
      
    	config.itemTpl = new Ext.XTemplate( descr ,
    				{
    					getFullName: function(values){
    						return values[sender.fieldsNames.indexOf("FIRST_NAME")] + ' ' + values[sender.fieldsNames.indexOf("LAST_NAME")]
    					},					
    					getVal: function(val, fieldName) {
    						if (sender.fieldsNames.indexOf(fieldName) >= 0){
    							return val[sender.fieldsNames.indexOf(fieldName)];
    						} else {
    							console.error(fieldName + " not found");
    						}
    						;
    					},
    					getArc: function(values){
    						if (values[sender.fieldsNames.indexOf("DELETED")]){
    						return '<td class="tdDbgRowArc">[архів]</td>'}
    					}
            
    				}
    	);
    }

     

    getArc: function(values){
                            if (values[sender.fieldsNames.indexOf("DELETED")]){
                            return '<td class="tdDbgRowArc">[user deleted to arc]</td>'}
                        }

    in CSS

    .tdDbgRowArc{
        color:red;
    }

     

     

     

     

    Perfect! This will come in handy. 

  11. 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)....

    image.png

  12. 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!

     

    image.png.b37814ad19f12c678aa4e3cb2936e86a.png

  13. 3 hours ago, x11 said:

    1. You forgot to specify the value of the APath variable.

    2. Why CONSTANTLY check the path?

    3. Replace "if SQL_Lista_NFeid_status.AsInteger =" with case
     

    
    Case SQL_Lista_NFeid_status.AsInteger of
    
      cNFeFaltaEnviar: DataSet.FieldByName('status_mobile').AsString := '/files/f.png';
      cNFeCancelado: DataSet.FieldByName('status_mobile').AsString := '/files/c.png';
      cNFeAutorizado: DataSet.FieldByName('status_mobile').AsString := '/files/a.png';
    
    ...
    
    ...
    
    else
    
      cNFeAutorizado: DataSet.FieldByName('status_mobile').AsString := '/files/fileNotExists.png';
    
    end;

    4. Make your code simpler.

    Thank you! It works great! 

  14. 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).

    Capturar.PNG

    Capturar 2.PNG

×
×
  • Create New...