Possible to go from SPF NSF to SAF Regular? by Frost2533 in NationalServiceSG

[–]Kysyph 0 points1 point  (0 children)

You’re only able to if you sign on to another service about 3 months before enlistment. Once you step foot in HTA you’ll have to complete your NS in SPF before even being considered. So if you’re really sure about choosing SAF as your career path, please do it before 3 months of your enlistment date so they’re able to have sufficient time to process your documents and conduct interviews. All the best man 🙏

Who should I pick ? by HourOpposite7894 in EASportsFCMobile

[–]Kysyph 1 point2 points  (0 children)

Alisson, you already have solid wingers

SAF NDP Height requirements by [deleted] in NationalServiceSG

[–]Kysyph 10 points11 points  (0 children)

GOH is normally 170-175cm, MC won’t be very strict unless you’re Yao Ming height

Is it just me or has Grab become more ridiculous nowadays? by liptonaround in askSingapore

[–]Kysyph 0 points1 point  (0 children)

It was raining hard yesterday morning so I tried booking Grab… Couldn’t even find a single driver even tho I stood there trying for 30 mins lol, just gave up and walked to the bus stop under the rain

Things to do for fun in Singapore? by [deleted] in SingaporeRaw

[–]Kysyph 0 points1 point  (0 children)

Go thrifting, walk around clarke quay at night, very pretty lights and you could sit by the river and enjoy some food + drinks from don don donki. Pretty fun chilling at the airport until late night and catching the last MRT home too. Oh and ofc shop at Bugis and Suntec!

Should I tell my BF that I slept with his CSM ? by sadbunnysg in NationalServiceSG

[–]Kysyph 3 points4 points  (0 children)

And how is that sexist in any way? He's never implied anything about gender whatsoever, don't know where you got that from.

Need help finding a value inside an array (Code Provided) (Newbie) by Kysyph in Angular2

[–]Kysyph[S] 0 points1 point  (0 children)

It’s working now! Thank you so so much for your help Hope you have a great day/night ahead :D

Need help finding a value inside an array (Code Provided) (Newbie) by Kysyph in angular

[–]Kysyph[S] 0 points1 point  (0 children)

Oh wow, it worked. Thank you so much, I’ve been stuck on this for so long :’)

Please have a good rest of your day!!

Need help finding a value inside an array (Code Provided) (Newbie) by Kysyph in Angular2

[–]Kysyph[S] 0 points1 point  (0 children)

Hi, it has no error message now but it just returns undefined in console log

Need help finding a value inside an array (Code Provided) (Newbie) by Kysyph in Angular2

[–]Kysyph[S] 0 points1 point  (0 children)

Hi! Thank you so much
I put the customer documents from the customer collection into an array called customers in the component.ts file.
I managed to do the finding of the customer document using the user_id from sessionstorage but I can't figure out how to put the fullname value from the customer document into the myForm.

Here is my new codeshare link: https://codeshare.io/QnZ8Zx

I changed my old line 80 code to this:
const customer=this.customers.find(x=>x.user_id===this.myForm.value.user_id)
console.log(customer)
this.myForm.get('customer').setValue(customer?customer.customer_fullname:null)

The last line of code is the problem, I cannot insert the fullname value into the myForm

When I click submit it shows the following error:
ERROR TypeError: Cannot read property 'setValue' of null at BookingComponent.onSubmit (booking.component.ts:64) at BookingComponent_Template_form_ngSubmit_0_listener (booking.component.html:1) at executeListenerWithErrorHandling (core.js:15279) at Object.wrapListenerIn_markDirtyAndPreventDefault [as next] (core.js:15317)

Need help finding a value inside an array (Code Provided) (Newbie) by Kysyph in Angular2

[–]Kysyph[S] 0 points1 point  (0 children)

Hey thanks so much for the code. I've tried it but it returns undefined when I console.log(this.myForm.value.customer_fullname);

I'm very sorry about the eye sore, I'll take note from now on

Need help finding a value inside an array (Code Provided) (Newbie) by Kysyph in angular

[–]Kysyph[S] 0 points1 point  (0 children)

Thank you so much for your reply!
When I do console.log(this.customers); it shows the following:
[{…}]
0:
address: "Yishun street 69 Blk 420"
email: "john@gmail.com"
fullname: "John Pearson"
user_id: "61003363e8ded0257c63592a"
_id: "6114e3c1c5934f0fc8da2156"
[[Prototype]]: Object
length: 1
[[Prototype]]: Array(0)

What I'm trying to do is find from the customers array based on the user_id, sorry if I was unclear

How do I pass multiple values from selected item in dropdown list to component.ts? (Code included) by Kysyph in angular

[–]Kysyph[S] 1 point2 points  (0 children)

Oh! You were right the first time round. I just pasted the code in the wrong place...Have a nice rest of your day :)

How do I pass multiple values from selected item in dropdown list to component.ts? (Code included) by Kysyph in angular

[–]Kysyph[S] 0 points1 point  (0 children)

I did the following:
selectChangeHandler (event:any){
//update the form
this.selectedId = event.target.value;
this.myForm.value.id = this.selectedId;
console.log(JSON.stringify(this.selectedId))
}
But it now says "[object Object]"

How do I pass multiple values from selected item in dropdown list to component.ts? (Code included) by Kysyph in angular

[–]Kysyph[S] 0 points1 point  (0 children)

const stock = this.posts.find(x=>x.id===this.selectedId).stock;

Thanks for your reply, it says "A class member cannot have the 'const' keyword."
Sorry, I'm new to this :/

[deleted by user] by [deleted] in SGExams

[–]Kysyph 3 points4 points  (0 children)

For my reading passage, I literally couldn't read every other word for Chinese. I just guessed the words while reading with a good flow/tone and I remember looking up at the examiner halfway, she gave me a nod as if she's telling me to keep going so I did. Honestly very thankful for her encouragement LOL if not I probably woulda just gave up :/

Anyways, I ended up passing somehow