Part 20 - Adding Comments on KB Article Page
[Music] hey guys welcome back to ui builder video series and the last one we saw that that uh how we can ha how we can utilize sn http service instead of calling our data brokers and now in this one what we gonna see is that on this uh knowledge article page we have we have most of the things covered but now we need to have something known as comment so we want to show the comments as well as uh post comment functionality so in this video we gonna see that how we can play around with that one so to do that what i need to do is i need to add a container so let me add a container here so add the container after your container too yup so i'm gonna add container another container and inside this container i am going to add what i say i'm going to add so let's first change its uh property again so if we go and check the mean section of this container again it says column let's change it through and save it and here [Music] why it's always happened to me and why it's not why it's not work with me okay i don't know why it is having issues with me so let's do one thing no no you have an alternative there so uh where you have this main right yeah just click on there add component so here what i need to do is i need to search for comments and i have something known as nested comments so you see that we got the comments now but it's still it's not hooked up so for that i'll first save it and uh and uh oh it's my bad akash but i guess we need to change it back to the column the row and that's the reason it's happening like that but can you change it back to column because we want to utilize the entire space yeah i did that so now what we're gonna do is that we gonna go into data resource and we're gonna create uh one data broker again and we will utilize this create record or not we can delete this one i don't see any uh delete method here delete button no there is there is a delete on the top you see that uh yes yeah that's the one you're gonna use so let's add one so let's search for knowledge and in this search for knowledge so there is something known as retrieve knowledge comments we're gonna add this one execution field wow so uh don't worry sometime it's happen because it still does not have any of the article id so what we're gonna do is that we're gonna hook up our article id so i'm gonna put context dot prop dot society now that error is gone and uh it is showing us the empty edit because right now this uh article does not have any kind of comments associated with it so correct uh what we can do is that okay let's save it so our json is empty now let's hook it up if we need to hook it up so what i'm gonna do is that i am going to come on to this nested components and here where is our and it will populate this retrieve knowledge one let me see if it is in the last knowledge comments yes sorry in the action it should not be anything save it so that's how we what we have done is we have created a new data broker to retrieve our knowledge comments and what we have done is that in this comments one we have hooked it up uh it's pretty simple pretty straightforward and in the next one we gonna see that uh how we can post a comment and we will do with we will play with the section one but right now for this uh knowledge article we will just retrieve the comments to see that in action what we can do is that we can go back to our one thing you might want to add here is the actions so basically uh you so when you open any comment existing comment what you want to do right you can delete it as well so that you can add it in the actions uh you have to copy i mean you have to you need that json on a certain format and if you copy that paste it yeah yeah so basically it is saying like what would be the icon and stuff like that and then you just say apply and save it it's basically for deleting our command and save it and if i refresh it so i'll not be seeing any of the comments because this article still does not have any comment order to see the comment also we need to do one more thing which we will do in the next video yeah and in the next one we are also add some comments on this article so that we can see that uh if those comments are coming or not yeah that's it for this video folks in the next one we gonna see the rest of the stuff that how we can retrieve the comment and how we can save the comments thank you thank you you
http://www.youtube.com/watch?v=UfjNWoM8Cbg