Jump to content
  • 0

Use a datapage with different styles


innov2e
 Share

Question

I know that when you define a datapage you can decide which style has to be used. But it is possible to use the style as parameter?

I use two differen styles: one for display pages and another one to print them, I wish to use the same datapage passing it the style to be used. Obvioulsy it whould be possible to double the datapages, but this mean that for every change one has to remember to modify also its twin page.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Since Caspio's Styles works similar to a CSS stylesheet, if you can manage to get all classes and elements of the the style that you want to use then I believe you can use them as App Parameters. But the difficult part would be coming up with a script to call that app parameter and apply it to the page first before starting the download/print since you will technically need to refresh the page in order for the styles to apply.

You can also, instead of manually modifying the twin page every single time you updated something on the original, just duplicate the original and change the style so every changes are applied to the twin automatically.
 

Link to comment
Share on other sites

  • 0

I agree with Tubby, it would be difficult if it would be coming up with a script to call the app parameter. However, you can have a custom style for each DataPage in the 'Style' tab on your end. In this case, you can use a custom CSS but be aware that it is on your own risk to do so. Here are some of their articles that I read so far:

 https://howto.caspio.com/styles/creating-or-editing-style/ 

https://howto.caspio.com/apps/app-parameters/app-parameters/

Cheers! I hope this helps. :D 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...