Add a Flow button in a SharePoint library

I have recently added a Flow button in a SharePoint Library. I found the code on internet (I have no experience in JSON).

I would like the button to be visible if:

  1. Document status (choice column) is different than Approved
  2. Approvers (person column) is not empty
  3. Ready for Approval (boolean column) is True

I could implement only one condition: Document status (choice column) is different than Approved

But I wonder how can I add the other 2 conditions?

Any help would more than appreciated.

The code looks like this:

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
  "elmType": "span",
  "style": {
    "color": "#001f00"
  },
  "children": (
    {
      "elmType": "button",
      "style": {
        "border": "light",
        "background-color": "Orange",
        "color": "#001f00",
        "cursor": "pointer",
        "visibility": {
          "operator": "?",
          "operands": (
            {
              "operator": "!=",
              "operands": (
                "($Document_x0020_status)",
                "Approved",
              )
            },
            "visible",
            "hidden"
          )
        }
      },
      "txtContent": "Send to Approval",
      "customRowAction": {
        "action": "executeFlow",
        "actionParams": "{"id": "53c665d0-ce12-4148-aa5a-c7202557ea78"}"
      }
    }
  )
}

unity – Some UI button script not working in apk build!

There are a lot of posts regarding this problem in various website and even in this one but no one has given a feasible solution to this problem. I have a button that has a custom sprite. I also have a custom script attached to that button which when pressed down (IPOINTER DOWN) changes the color of particular sprite renderer. All this works in pc but not on apk build. Why?
I have two canvas, so I thought there might be raycasting issues, so I disabled one but still no luck.
The buttons are in world space in canvas. So, I thought I might not use a canvas but IPointer only works on clickable UI elements.

json formatting – Open local app from button on SharePont Online list

On a SharePoint Online list I would like to add a custom button.
This button should open a local application (like Word).

When I try in my browser

ms-word://

I get they notification that my browser tries to open a local application. But when I’m using that same logic in a custom created JSON-btn on a SharePoint Online button, it just disappears and it’s not working.

The button should be formatted in JSON. And at the moment it looks like this

{
  "elmType": "a",
  "txtContent": "Open in client App",
  "attributes": {
    "target": "_blank",
    "class": "sp-field-quickAction",
    "href": "ms-word://"
  }
}

When I create a tinyurl with the same ms-word:// and put that in place it works like a charm.
Unfortunaly I’ll have to do this for like 350 different lists 🙂

Any suggestions?

plugins – Add button gutenberg help

Hello I need to add a button to the toolbar gutenberg I found this https://developer.wordpress.org/block-editor/tutorials/format-api/2-toolbar-button/ but I do not get what is wrong for the button to appear

functions.php

enter image description here

my-custom-format.js

( function( wp ) {
    var MyCustomButton = function( props ) {
        return wp.element.createElement(
            wp.editor.RichTextToolbarButton, {
                icon: 'editor-code',
                title: 'Sample output',
                onClick: function() {
                    console.log( 'toggle format' );
                },
            }
        );
    }
    wp.richText.registerFormatType(
       'my-custom-format/sample-output', {
            title: 'Sample output',
            tagName: 'samp',
            className: null,
            edit: MyCustomButton,
        }
    );
} )( window.wp );

python kivy button and triggering a function

i m relatively new to kivy and i wanted to make a app but i m stuck at how to call a function by clicking on a button but i seem to face many problems .After hours of googling i still couldn t come up with a working code . i want to display the button first and then on click the button disappears and the function is executed.

import kivy
from kivy.app import App
from kivy.uix.label import Label
from kivy.uix.gridlayout import GridLayout   
from kivy.uix.textinput import TextInput  
from kivy.uix.button import Button
from kivy.uix.widget import Widget


class maingame(GridLayout):
  def __init__(self, **kwargs):
    super().__init__(**kwargs)
    self.cols = 1
    self.rows = 1 
  def potato(self):
  
    self.add_widget(Label(text="potato is great")



class myApp(App):

  def build(self):
    cake = maingame()
    btn = Button(text="start " ,size=(90,90))
    btn.bind(on_press=cake.potato)
    cake.add_widget(btn)
    return maingame()

        

if __name__ == "__main__":

  myApp().run()

Button per line in Custom Post Types

Since several hours ago I am trying to solve this issue but I don’t know what I am doing wrong in the code.

I have a Custom Post Type with several records, then I wrote a php script to show the content as a table:

Query Table

At the end of each row there is a button, the idea is to pass the row’s POST_ID value to other form and php script. However, after you click this button, it opens a new tab with the URL including the name of the site and Post_id value like https://telework/wp-admin/admin.php?Id=2749&submit_btn=Pagar.

The button’s code is:

<td> <form type="post"><input type="hidden" name="Id" value="<?php echo $post_id; ?>"><input type="submit" name="submit_btn" value="Pagar"></form></td>

I’ve tried to insert action=”process.php” inside <form>, then change the type=”post” to method=”post” but gives me error 500.
How and where can I include the code to open the new form and php script?
Thank you for your help and have a good day.

Marcelo

why does my mouse act like a home button

When i connect my Bluetooth Mouse or Wireless and I press right click or press down the scroll wheel it acts like a home button.

I tried changing Bluetooth AVRCP Version to 1.3,1.4,1.5,1.6 nothing works.

button – Como fazer com que uma imagem (jpg) seja exibida via lightbox após o botão em CSS Script ser clicado em um site hospedado na plataforma blogspot?

Eu estou tentando ajudar na implementação de um recurso (botão CSS que ao ser clicado exibe uma imagem em lightbox) no site de vagas de emprego da minha irmã, no entanto (como vocês vão ver adiante) eu não tenho muito conhecimento.

O site funciona no limitado Blogspot.
Nesse site, os posts das vagas de emprego possuem 3 informações principais:

¹Vaga: ****

²Local: **/

³Empresa: ****

⁴CANDIDATE-SE (Botão verde em CSS Script)

EXEMPLO:

inserir a descrição da imagem aqui

Abaixo do campo que menciona a empresa³ está um botão verde em CSS Script⁴ que ao ser clicado, direciona a pessoa interessada pela vaga ao site de cadastro de currículo da empresa contratante. Dessa maneira, o site funciona de forma beeem simples.

No entanto, algumas empresas utilizam imagens (.jpg) que descrevem os requisitos das vagas de emprego e no final informam o e-mail onde o currículo deve ser enviado. A implementação que eu estou tentando fazer consiste em fazer o botão verde CANDIDATE-SE⁴, ao ser clicado, exibir a imagem (.jpg) que contêm os requisitos da vaga em um lightbox.

Ou seja, quando o botão fosse clicado, eu gostaria que a imagem (.jpg) fosse exibida em um lightbox, com a página atual em segundo plano. Mas infelizmente eu não estou conseguindo construir o código da implementação de forma correta, já procurei me instruir no YouTube e Google, no entanto, não obtive sucesso.

Como devo proceder? Eu gostaria de entender melhor qual parte do código eu fiz errado.

Esse é o código do botão utilizado no site do Blogspot, que está acima do “))></b:skin>”:

/* Demo Download Button By BlogOrnate
------------------------------------------------------ */
.boddbtn {text-align:center;color:#fff !important;list-style:none;margin:10px !important;padding:10px !important;font-size:14px;display:inline-block;text-decoration:none !important;clear:both;}
.boddbtn ul {padding:0;margin:0;}
.boddbtn li {list-style:none;display:inline;padding:0;margin:5px;}
.demobtn,.downloadbtn{color:#fff !important;padding:12px 15px !important;font-size:13px;font-weight:700;font-family:oswald;text-transform:uppercase;text-align:center;border-radius:3px;border:0;letter-spacing:1px;transition: all 0.2s ease-out;text-decoration:none !important;}
.demobtn {background-color: #E84C3D;}
.downloadbtn {background-color: #82BF57}
.demobtn:hover {background-color: #C83821;color: #fff;}
.downloadbtn:hover {background-color: #6FA34A;color: #fff;}

Modelo de postagem atual:

<div style="text-align: center;">
<span style="font-family: &quot;helvetica neue&quot;, arial, helvetica, sans-serif;">Vaga: Padeiro</span><br />
<span style="font-family: &quot;helvetica neue&quot;, arial, helvetica, sans-serif;">Local: Curitiba/PR</span><br />
<span style="font-family: &quot;helvetica neue&quot;, arial, helvetica, sans-serif;">Empresa: Padaria do Tio Careca</span><br />
<span style="font-family: &quot;helvetica neue&quot;, arial, helvetica, sans-serif;"><br /></span></div>
<div style="text-align: center;">
<ul class="boddbtn">
<li><a class="downloadbtn" href="https://www.linkdositedaempresacontratante.com.br" rel="nofollow" target="_blank"><span style="font-size: large;">CANDIDATAR-SE</span></a></li>
</ul>
<div style="text-align: left;">
<span style="font-family: &quot;helvetica neue&quot;, arial, helvetica, sans-serif;"><br /></span></div>
<span style="font-family: &quot;helvetica neue&quot;, arial, helvetica, sans-serif;"><div style="text-align: left;">Essa vaga de emprego receberá candidaturas até a seguinte data: 30/06/20</div></span>
<div style="text-align: left;">
</div></div>

Modelo de postagem “futuro”, que ainda está sendo desenvolvido:

<div style="text-align: center;">
<span style="font-family: &quot;helvetica neue&quot;, arial, helvetica, sans-serif;">Vaga: Padeiro</span><br />
<span style="font-family: &quot;helvetica neue&quot;, arial, helvetica, sans-serif;">Local: Curitiba/PR</span><br />
<span style="font-family: &quot;helvetica neue&quot;, arial, helvetica, sans-serif;">Empresa: Padaria do Tio Careca</span><br />
<span style="font-family: &quot;helvetica neue&quot;, arial, helvetica, sans-serif;"><br /></span></div>
<div style="text-align: center;">
<ul class="boddbtn">
<li><a class="downloadbtn" href="https://4.bp.blogspot.com/-TSZartdwvPw/Xm59vLz_chI/AAAAAAAAFcc/bfEWFnowt4crnyvJ1igHSRpLWG4jj4MLgCLcBGAsYHQ/s1600/Cadastro%2Bde%2BVagas.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="360" data-original-width="640" height="80" src="https://4.bp.blogspot.com/-TSZartdwvPw/Xm59vLz_chI/AAAAAAAAFcc/bfEWFnowt4crnyvJ1igHSRpLWG4jj4MLgCLcBGAsYHQ/s1600/Cadastro%2Bde%2BVagas.png" width="140" rel="nofollow" target="_top"><span style="font-size: large;">CANDIDATAR-SE</span></a></li>
</ul>
<div style="text-align: left;">
<span style="font-family: &quot;helvetica neue&quot;, arial, helvetica, sans-serif;"><br /></span></div>
<span style="font-family: &quot;helvetica neue&quot;, arial, helvetica, sans-serif;"><div style="text-align: left;">Essa vaga de emprego receberá candidaturas até a seguinte data: 30/06/20</div></span>
<div style="text-align: left;">
</div></div>

Conforme pode ser visto no print abaixo, o Modelo de postagem futuro está péssimo, pois a imagem que deveria estar embutida ficou amostra no botão.. E quando o botão verde é clicado, a página acaba sendo modificada para o link da imagem, fazendo com que o usuário saia do site e entre no link real da imagem.

inserir a descrição da imagem aqui

Is there a way to disable the power button on Android 9?

I have an alarm clock app that disables the power button when alarming (to prevent from turning off the phone). This option works fine on my ancient android phone, but it doesn’t work somehow on Honor8a (Android 9).

If it could be working that would be perfect. But if it’s impossible with android 9, I look for an opportunity to disable the power button (the restarting and the turning off options) permanently. But I need to save the locking on option though.

macos – Font color for SAVE button in Open/Save Dialog window

Stack Exchange Network


Stack Exchange network consists of 177 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange