Not able to getting the result in grid-view after i text enter in text-box in SPFx

Not able to getting the result in grid-view after i text enter in text-box in SPFx.

Framework: no-java-script framework selected

this is my code:

import { Version } from ‘@microsoft/sp-core-library’; import { BaseClientSideWebPart, IPropertyPaneConfiguration, PropertyPaneTextField } from ‘@microsoft/sp-webpart-base’; import { escape } from ‘@microsoft/sp-lodash-subset’;

import styles from ‘./SearchgridviewWebPart.module.scss’; import * as strings from ‘SearchgridviewWebPartStrings’; import { SPHttpClient, SPHttpClientResponse } from ‘@microsoft/sp-http’;

export interface ISearchgridviewWebPartProps { description: string; } export interface ISPLists { value: ISPList[]; } export interface ISPList { PR_Number: string; Description: string; Request_Date: string; }

export default class SearchgridviewWebPart extends BaseClientSideWebPart {

private _getListData(): Promise { let queryString: string = ”; let queryStringforPR: string = ”; let searchboxVal: string=(this.domElement.querySelector(‘#searchbox’) as HTMLInputElement).value; if(searchboxVal!=””){ queryString=”$ filter=((substringof(‘”+searchboxVal+”‘,PR_Number)))”; queryStringforPR= searchboxVal; console.log(“qurery string value is ” + queryString); } return this.context.spHttpClient.get(this.context.pageContext.web.absoluteUrl + /_api/web/lists/GetByTitle('PurchaseRequest')/Items?$ {queryString}, SPHttpClient.configurations.v1) .then((response: SPHttpClientResponse) => { // debugger; return response.json(); }); }

private _renderListAsync(): void {
this._getListData() .then((response) => { console.log(“respone is ” + this._renderList(response.value)) this._renderList(response.value); }); }

private _renderList(items: ISPList[]): void { let html: string = ”; html += <th>PR_Number</th><th>Description</th><th>Request_Date</th>; items.forEach((item: ISPList) => { html += <tr> <td>$ {item.PR_Number}</td> <td>$ {item.Description}</td> <td>$ {item.Request_Date}</td> </tr> ; }); html += </table>; const listContainer: Element = this.domElement.querySelector(‘#spListContainer’); listContainer.innerHTML = html; }

private _setSearchBtnEventHandlers(): void { this.domElement.querySelector(‘#searchBtn’).addEventListener(‘click’, () => {
this._renderListAsync(); }); }

public render(): void { this.domElement.innerHTML = <div class="$ {styles.gListItems}"> <div class="$ {styles.container}"> <div class="ms-Grid-row ms-fontColor-white $ {styles.row}"> <div class="ms-Grid-col ms-u-lg10 ms-u-xl8 ms-u-xlPush2 ms-u-lgPush1">
<p class="ms-font-l ms-fontColor-white" style="text-align: center">Demo : Retrieve Data from SharePoint List</p> </div> </div> <div class="ms-Grid-row ms-fontColor-white $ {styles.row}"> <input id="searchbox" type="textbox"/><input id="searchBtn" type="button" value="Search"/>
<br> <div id="spListContainer" /> </div> </div> </div>
; this._renderListAsync(); this._setSearchBtnEventHandlers(); }

protected get dataVersion(): Version { return Version.parse(‘1.0’); }

protected getPropertyPaneConfiguration(): IPropertyPaneConfiguration { return { pages: [ { header: { description: strings.PropertyPaneDescription }, groups: [ { groupName: strings.BasicGroupName, groupFields: [ PropertyPaneTextField(‘description’, { label: strings.DescriptionFieldLabel }) ] } ] } ] }; } }

enter image description here

When I am uploading a Word Document in Document Library – Custom Columns values are getting blank

I have uploaded the Word document on SharePoint Document Library (Modern Site), my Library has following columns:

  • Title

  • ADDS

  • LBB

  • Category

Step 1: After uploading the file for the first time, I have filled the values in these columns on SharePoint.

Step 2: Again, I have uploaded the same file, now above columns values got blank.

Issue with Title > I can understand this…. Title is MS Word property as well and it will be overwritten (As per this – Document Properties not carry to new version).

But why my other custom columns values are getting blank???

Note: This issue is coming only for MS Office files (DOC, PPT, XLS, etc.). However it’s working as expected for other file formats – .pdf, .jpg, .zip, etc

Playing on IRC, getting started [on hold]

I live where no tabletop has ever been played, thus I had to search elsewhere for some games, namely the Internet. I’ve spent a lot of time browsing the web but the best communities I could find were filled with young, Anime-obsessed fellows.

I am looking for a serious, immersive game, but I know nobody and I don’t know where to find players. Do you know any good IRC networks/channels for roleplayers? I am totally clueless as to where I should get started, my experience with RPGs is extremely limited and the sea of web pages I’ve visited aren’t helping. I refuse to believe that the Internet isn’t some kind of gateway for RPG players from all over the world so please, can someone help me out?

Additionally, if you know some good play by post communities, you might as well tell me. I’ve read other answers (like How can I find PBP games? – now deleted, 10k rep only) but I’d like to hear from someone with some experience on those sites rather than just a list of names.

What is a good algorithm for generating a linear regression of positions in 3D space? (for getting the direction of a thrown object in VR)

I’m trying to get throwing to feel right in my VR game. I don’t plan on actually using physics to do this; my idea is to accurately determine the lateral direction of the throw, then move the object in the intended direction (with a doctored Y value) at a speed dependent on other factors.

The language of the code doesn’t matter too much, but I’m using Godot, so something that wouldn’t require me to import a bunch of different math libraries (by converting them to Godot’s Python-style GDScript) would be ideal. It doesn’t need to be robust.

To give you an idea of what I was thinking, my original plan was to save the position of the grabbing controller every frame while an object is being held, removing old positions if the controller is moving backwards, then averaging out the movement deltas over the last 10 or 15 frames or so before letting go (it should be consistent since Godot has a fixed-timestep “update” function available) and normalizing the vector to get the direction the object should travel in.

However, this blog post got me thinking that spending the time learning how to do the linear regression in a more robust way, then applying that to 3D/VR, might be worthwhile. I just wonder if, since I don’t need the actual linear or angular velocity, it might be overkill in terms of time spent on the feature.

Getting SharePoint news using rest API in SharePoint Online

Is there any rest API available to get the recent updates or news related to a site in SharePoint Online.

https://www.c-sharpcorner.com/article/how-to-read-the-sharepoint-news-using-rest-api-in-spfx/

I have found this post but it does not work for me as hitting the API’s only gives error or irrelevant XML data.

So, I wanted to know if there is any way to get the news of SharePoint site using rest API?

Getting around massive preventing of damage [on hold]

I’m currently running a game where one of the players has the ability to reduce/prevent a ton of damage. I’m looking for ways around this, such as the old school wights that did ability score damage, things like Ray of Enfeeblement that grants a strength penalty, diseases, etc.

Is there something I can search in the compendium, or is there a list somewhere online, that could save me hours of digging through every monster in 4e to find new and interesting ways to damage players other than just dishing out huge amounts of damage?

Search results not getting refined using multi refinement sharepoint online

I have added refinement web part and selected multi refinement.

When I give the refiner value which has symbol(‘-‘) in other value text box results are not getting refined.If i check the same refiner value check box ,results are getting refined.Anyone can help on this why this is happening.

Search results not getting refined using multi refinement sharepoint online

I have added refinement web part and selected multi refinement.

When I give the refiner value which has symbol(‘-‘) in other value text box results are not getting refined.If i check the same refiner value check box ,results are getting refined.Anyone can help on this why this is happening.

Getting advice on getting my project off the ground.

Hi, everybody:

I wonder if this is a good forum for advice on how to get a money-making website project off the ground, dealing with issues a coder like me is not so familiar with. Things like which service can collect donations for me without endangering me, how best to measure size and growth of the user base, whether to manage user data best with a CMS or database-API or some own code for server-or-cookie storage, etc.

My current project has 7 issues to deal with right now. Should I…

Getting advice on getting my project off the ground.

Getting SP list item versions in Powershell doesn’t work

I’ve used PowerShell code similar to this Reference which gets a SP list and iterates thru the items (note that I use PnP). This works fine except that the loop that gets versions of list items doesn’t execute at all b/c the Versions member doesn’t seem to exist. I’m sure there is version info. I’m using SP 2013. Any ideas appreciated!

Connect-PnPOnline –Url "http://MyServer/MySite" –Credentials (Get-Credential) $  ItemsColl = (Get-PnPListItem -List "MySPList")  #Loop through each item foreach ($  item in $  ItemsColl) {     write-host $  ($  item["MyFieldName"])      # WORKS FINE!      #Iterate each version        foreach($  version in $  item.Versions) # FAILS! THIS OBJECT IS ALWAYS NULL (ALTHOUGH VERSIONS DO EXIST ON THIS SITE/LIST) SO LOOP DOESN'T EXECUTE.     {          write-host $  ($  version.VersionLabel)     } }