javascript – How to call graph API to read SP list items from SPFx in SP Online?

I’m new to graph API and trying to use graph API to read SP list items from a custom list using the current user’s rights (not service account). But I’m getting an error. I have this so far:

In the package-solution.json file, I have this in the solution object:

"webApiPermissionRequests": (  
  {  
    "resource": "Microsoft Graph",  
    "scope": "Sites.Read.All"  
  }  
)  

In the helloworld.ts file I have this to init the graph API connection:

public async render(): Promise<void> {
const element: React.ReactElement<IHelloWorldProps> = React.createElement(
  HelloWorld,
  {
    description: this.properties.description,
    client: await this.context.msGraphClientFactory.getClient()
  }
);

ReactDom.render(element, this.domElement);
}

  public onInit(): Promise<void> {
    graph.setup({
      spfxContext: this.context
    });

  return super.onInit();
}

and in the helloworld.tsx file I have this:

let items = await props.client.api('/sites/TestSite/lists('MyFeatures')/items').get();
console.log(items);

But I see this error in the dev tools console:

Uncaught (in promise) Error: To view the information on this page, ask a global or SharePoint admin in your organization to go to the API management page in the new SharePoint admin center.
    at e.getToken (chunk.aadTokenProvider_none_3888c2e89a4ae65276c0.js:1)
    at sp-webpart-workbench-assembly_en-us_6db5d03d6aef1b7d63505cff87b165b2.js:65

I haven’t done anything on the administrative side to create any API registration or approve anything.

I was wondering do I need to do that, and if so, is there a tutorial for how to set it up? And is there anything more in the code I need to adjust like add a client id/secret or something?

hyperlinks – When Link is read by the screen reader should it read it as Link button or Link?

When a screen reader reads the links how it should pronounce ‘Link button’ or ‘Link’?

Example: Show more… (a link) should the screen reader read it as Link or Link button?

Also, how the screen reader should read an icon buttons? Should it read as Icon button or button?

javascript – Allow Iframe on pages with X-Frame header for internal use on Firefox to read external HTML – the secure way – client-side-only solution

I am trying to customize my workflow. I am working at an IT company and we are running many services for managing our customers, running on different domains. I want to embed one page to the other page using a Grease-monkey script (Javascript injection), to read values from the other page and show it on the current page. The Iframe is supposed to be a 1×1 size, since the page itself is not important.

However, as with most pages today, the Iframe on external pages is blocked. Even more strange, I cannot find any X-frame settings in the header of the page whatsoever, yet Firefox decides to block the embedding of the page.

Is there a way, to make embedding possible?

There is a plugin called Ignore X-Frame-Options Header by ThomazPom for firefox, but since there are only 15000 users, I doubt, that this can be considered safe for a production environment. Our internal systems are working with thousands of customers, so I cannot risk a data leak.

Is there a way, to locally allow the embedding of “external” pages into another using iframe?

In case you doubt my usecase: This only needs to work on my browser, since it is customized a lot.

Everything that works without totally ruining performance is acceptable.

If there is another way to read out and interact with extermal HTML, which is not visible in the viewport, without Iframe, please let me know.

How to display a Read only ID Field on a Form?

If the user can’t interact, you have 2 ways:

  • use regular text
  • use a pre-filled, disabled field

In the first case, its main advantage is that the user can notice it’s just a text and there’s no affordance that suggest she can interact with that. However, if it’s important, it might be overseen by the user

In the second case, it will be clear that this is part of the data that will be submitted with the form. However, it may cause a bit of friction if the user wants to interact with it, so you have to be very careful to style the disabled field in a way that the user realizes it’s a disabled field.

One option is to add a text explaining the user why the field is disabled. Something like this (please note the example is non-accessible, I did it this way for exampel purposes so it’s more clear, but you should follow accessibility rules):

enter image description here

Just in case, since I see you mention it, do not use labels. It goes against accessibility as well

I will teach you to read and interpret google analytics data for $50

I will teach you to read and interpret google analytics data

About This Gig
50% discount for the first 5 orders.

To be changed soon.

Please contact me before the order to clarify your goals and to have a chance of a personalized offer.

Come to me with your account in Google Analytics or learn via my account how to read data about your website.

You will learn from the expert how to read data and improve the conversions of your website by yourself.

Online audio lesson with sharing your or my screen with recording. You will learn how to read and interpret data from Google Analytics.Online audio lesson with sharing your or my screen with recording. If you need, we can create your account together and I’ll help you with all the settings or make all the changes you need in your existing account.

  • Deep analytics in GA with video

Video lesson with sharing your or my screen with recording. You will get a detailed explanation of all the figures in GA and all the help you need with your account.

.

unreal 4 – Read actor instance’s text variable for widget when triggered on different objects

What I’m trying to do:
(a ‘long story version’ is linked in comment below)

(and another user example is hyperlinked in comment below – i couldn’t post over 8 images and/or links in this first comment*)
(there are other similar user questions elsewhere I know)

Short story: I’m trying to make a widget that is triggered by an actor blueprint, and I want the widget to display different text that reflects the public-variable-text edits I make in the editor.

My latest progress includes actors that are titled somewhat according to the hyperlinked user case above so, I have a “door_trigger” and a “doorWidget”. I have altered the pin connections so much that I am just going to copy and paste all my screen shots below.

I got to change text asset DoorName by making a public variable called “name,” as you’ll see. I can make the trigger show this text on screen and have it disappear when the user leaves the trigger actor, BUT EVERY INSTANCE ALSO SHOWS THIS TEXT VALUE, EVEN THOUGH I CHANGE IT

In the screenshots (some in comment following too) you’ll see the text “3” appear on screen, and it does this for all three of the dummy boxes I made; notice how the second box is supposed to show “dd” (I was just typing random filler content).

ALL HELP SO APPRECIATED!!!!! Thank you!!!

alt textalt textalt textalt textalt text

enter image description here
enter image description here
enter image description here
enter image description here
enter image description here
enter image description here

enter image description here
enter image description here

json – Cannot read property ‘title’ of null using vuejs 3

i am new to vuejs3, i tried using json with vuejs3, i displayed the courses in view blog / index, and when clicking on a course in an index it redirect to details of that course clicks, in my case it gives me error: Uncaught (in promise) TypeError: Cannot read property 'title' of null.

blog/index.vue

<template lang="">
    <div class="row">
       <div class="col-md-6" v-for="post in posts">
          <h1><router-link :to="{ name: 'post-show', params: { id: post.id, slug: post.slug }}">{{ post.title }}</router-link></h1>
          <p class="lead">{{ post.content }}</p>
       </div>
    </div>
</template>
<script>
export default {
    data() {
      return {
         posts: ()
      }
    },
    mounted() {
       fetch('http://localhost:5000/posts')
          .then(res => res.json())
          .then(data => this.posts = data)
          .catch(err => console.log(err))
    },
}
</script>

blog/show.vue

<template lang="">
   <h1>{{ post.title }}</h1>
   <p>{{ post.content }}</p>
</template>
<script>
export default {

    props: ('id', 'slug'),
    data(){
        return {
            post: null
        }
    },
    mounted() {
        fetch(`http://localhost:5000/posts/${this.id}`)
          .then(res => res.json())
          .then(data => this.post = data)
          .catch(err => console.log(err))
    }
}
</script>

Router/index.js

  {
        path: '/blog/:id/:slug',
        name: 'post-show',
        component: Show,
        props: true
      },
**data/db.json**
{
    "posts": (
        {
           "id": 1,
           "title"  : "learn angular",
           "slug"   : "learn-angular",
           "content": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Ratione, possimus."
        },
        {
           "id": 2,
           "title"  : "learn react",
           "slug"   : "learn-react",
           "content": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Ratione, possimus."
        },
        {
           "id": 3,
           "title"  : "learn laravel",
           "slug"   : "learn-laravel",
           "content": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Ratione, possimus."
        },
        {
           "id": 4,
           "title"  : "learn symfony",
           "slug"   : "learn-symfony",
           "content": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Ratione, possimus."
        },
        {
           "id": 5,
           "title"  : "learn jee",
           "slug"   : "learn-jee",
           "content": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Ratione, possimus."
        },
        {
           "id": 6,
           "title"  : "learn php",
           "slug"   : "learn-oracle",
           "content": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Ratione, possimus."
        }
     ),
     "users": ()
}

Can I tweak an app’s storage permission and allow it to write on the phone but deny read?

The example I’ll use is with an internet browser app — let’s say Opera. If I allow its storage permission, I can download files on my phone (write) but the app can read its storage as well (I verified this by hitting file:///storage/emulated/0/ in the pathbar and I could freely browse all files on my phone).

If I deny its storage permission, it can no longer access 0/ but it also cannot download files.

If the download directory is pre-determined by the user, can we force it to only write and not read, thus being able to download files, without risking leaking data from our files to the app? I’m guessing maybe through ADB or something?

dnd 5e – As of D&D 5e, how do you read the the tables?

dnd 5e – As of D&D 5e, how do you read the the tables? – Role-playing Games Stack Exchange

linux – pg_restore: error: could not read from input file (DBeaver for PostGreSQL in Oracle Virtual Machine), for .tar file

Using DBeaver21.0.3 for PostGreSQL13.2, on Oracle Virtual Machine on Oracle VirtualBox with Oracle linux7.9, in MacOS Catalina: (Did not install PgAdmin):

Trying to restore dvdrental.tar with following Restore Settings:

Format: custom
Backup File: /home/oracle/Downloads/dvdrental.tar
local client: /usr/bin

Getting error:

pg_restore: error: could not read from input file

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive Proxies-free.com New Proxy Lists Every Day Proxies123