Blazor server adding one component content to another, instead to reload and open a new page - blazor-server-side

I have an issue with my Blazor Server. I have two components in the "Page" folder. The first one is "TimeLine.razor" and the second one is a "OrderSetup.razor". From the first one I want to navigate and open the second one. For this purpose I added #page "/ordersetup" directive to my "OrderSetup" component. Then inside the "TimeLine" I added a link(<a href="setup"..) When I click over the link, the content of the "OrderSetup" component add(merge) it self inside the "TimeLine" component content. I expected the "TimeLine" page to reload and to open only the "OrderSetup" content - not both contents in one after another in the TimeLine page...e.g.:

Related

Pagination in vue Js

When I add and I'm on page 2, for example, it loads a page and goes back to the first page. How can I prevent myself from being moved to the first page after the creation process?

How to remove reloading of page when user click on components in sidebar of vue-styleguidist

I am currently using "vue-styleguidist": "^4.36.1" version and I have some string params in URL.It is loading perfectly fine until click event happens on components in side bar of vue-styleguidist.
Once click event happens, whole page reloads ad string params in URL are getting lost.
Please check in this link:
https://vue-styleguidist.github.io/basic/index.html?name=zzz
Once page loads click on any component in side-bar and we can see that name parameter is getting removed from URL. But I need to have those to make condition based rendering
Any help would be appreciated

open new vue page from vue homepage through button click so that contents of homepage dont appear

Hi I am working on application built in vue. I have observed that whenever we route to new vue page from homepage(app page) using route, the contents of homepage are still visible in the next page such as heading i.e: new page loads with previous headings from homepage still visible. I want to completely open new vue page so that only contents of that page are visible(not the homepage or app page).please see below image for example
In above pics your can see that black header is common in every page. I want to open completely new page so that previous content don't show
It was done by hiding the div which contains the contents of the homepage and displaying the div which contains the contents of the desired page. I used below code to hide or show the div
document.getElementById("id").style="display:none;" // if I want to hide a div
document.getElementById("id").style="display:block;" // if I want to show a div

SAP Spartacus Create login popup

I neet to create registration/login popup.
The header component is on all pages.
I have login btn in header.
I have page /login/register with a slot BodyContentSlot-register
I don’t know how many components can be added to BodyContentSlot-register, but I need to click on the icon in the header to show the registration form in a modal window without going to the registration page. And show in a modal window all the components of this slot.
To achieve directly what you've described:
In the modal:
you need to make a call using CMS service to get page data (that calls backend for CMS page data) OR get the data if you've loaded it before (as an optimizaiton only)
display the slot's content you want to show, i.e. using cx-page-slot component statically in your modal and passing the position as an input
The tricky part is that this component gets from CmsService the slots of the current page, i.e. cart page (based on routing /cart), but not the page data you've loaded programatically in your modal. So you need to customize CmsService to return you the CMS data for specific slot of given page (register), even if it's not a part of current page data.

CRM 2013 WebResource IFrame

I have an HTML web resource in an opportunity that produces a css tab control containing all children opportunity to the current record.
I do this through Ajax and javascript and everything works fine, a new tab is made for each child and it shows an opportunity record inside; the only issue is that it will only show the current record inside of this tab - effectively creating an endless loop.
If I paste the URL from the IFrame into the browser it shows the proper record using the right form that I specify(one that doesn't contain another web resource).
Does anyone know why it wouldn't show the same form as it navigates to? If I try google.com it works, just not for this URL:
http://server/CRM/main.aspx?etn=opportunity&pagetype=entityrecord&navbar=off&id=%7B"+val.OpportunityId+"%7D&extraqs=formid%3DC1EC704C-D29B-4786-806F-195D0A80CF07%0D%0A#255409204
Try constructing the URL with this format:
http://server/CRM/main.aspx?etc=3&extraqs=formid%3dC1EC704C-D29B-4786-806F-195D‌​0A80CF07%7d&id=%7b<EnterOppIdHere>%7d&pagetype=entityrecord
Use the Entity Type Code (etc parameter) instead of the Name (etn) and note that everything after that should be part of the extraqs parameter.