cancel
Showing results for 
Search instead for 
Did you mean: 

"Show Page Map" fo results in "Could not find any SAP Fiori projects in workspace"

gregorw
Active Contributor
1,971

Hallo BAS Team,

can you please help me and the CAP Team to update cloud-cap-samples so that this problem is solved:

I've cloned the sample project to my BAS Trial instance and I try to open the Page Map via the context menu:

This results in the following warning:

What are the pre-requisites to get the page map displayed? Please send a PR to correct this in the sample repository or help here so that I can create such a pull request.

Best regards
Gregor

Accepted Solutions (1)

Accepted Solutions (1)

tashley
Product and Topic Expert
Product and Topic Expert

Hi Gregor,

The steps are in the screen shot as shown above ('packagejason.png'). Essentially, you need to list out the app in the samples/fiori/package.json so SAP Fiori tools can recognize these apps as SAP Fiori tools relevant.

Example:

"sapux": [

"app/browse",

"app/admin"

]

After doing this, if you right click on the "samples" folder to start Page Map, you should get the project picker prompting you to choose between these two apps.

Rohit_520
Advisor
Advisor
0 Kudos

Hello Ashley.

I am also facing the same issue but on a different project. I followed all the above steps and still got the issue "Could not find any SAP Fiori projects in workspace". Attaching the screenshot of the package.json file for your reference. Just another thing, I have three annotations-based application hence three entries are there for "sapux" Array.

Answers (3)

Answers (3)

klaus_keller
Advisor
Advisor

Hi gregorw,

I'm in contact with the owners of repository https://github.com/SAP-samples/cloud-cap-samples to make it easier to use SAP Fiori tools. For now you'll need to perform following steps to be able to work with Fiori tools, such as the page map for this repository.

git clone https://github.com/SAP-samples/cloud-cap-samples
cd cloud-cap-samples
npm install
cd fiori
npm install @sap/ux-specification --save-dev
code .

In VSCode open the package.json file, and add the following lines, e.g. after devDependencies: {}

"sapux": [
  "app/browse",
  "app/admin"
]

You should now be able to start the page map and page editor now, e.g. by using command:

"Fiori: Show Page Map"

Hope this helps.

Cheers,
Klaus

tashley
Product and Topic Expert
Product and Topic Expert

Here is the screen shot

tashley
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Gregor,

Thanks for reaching out. The reason for the error is that these sample projects were not recognized as SAP Fiori tools projects. We will discuss on how to update the samples projects. In the meantime, to use SAP Fiori tools, please add the projects to the samples/fiori/package.json as follows:

gregorw
Active Contributor
0 Kudos

Hi Ashley,

unfortunately your instructions didn't make it through. Can you please check again?

Best regards
Gregor