Jump to content

Domco

Members
  • Posts

    6
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Like
    Domco reacted to MayMusic in Reduce Row Hight   
    It is good to know the order for padding which is :
     
    padding: top right bottom left
  2. Like
    Domco reacted to MayMusic in Borders Between Rows When I Deploy To Wordpress   
    In the style under Form/Details >> Layout make sure you do not have border for label cells, field cells and etc
  3. Like
    Domco reacted to MayMusic in Conditionally Show/hide Html Based On User Access Level   
    This line is missing closing "]"
    var type_manager = '[@authfield:manager]'; and in your code you have added } by mistake
  4. Like
    Domco reacted to bahar_vm in Refresh Parent Window After Closing A Popup Window   
    One reason is the security restrictions since parent and child windows have different domain names. This happens if the parent/opener DataPage is embedded in your domain (yousite.com) and the popup DataPage (the one which is auto submitted) is called by direct URL (bn.caspio.com).
     
    To fix the issue, deploy the popup DataPage (the one which is auto submitted) on same domain as the opener and then use the following code in Destination and Triggers screen inside Display a Message text/HTML area:
    <script> window.close(); window.onunload = function(){ window.opener.location.reload();} </script>
  5. Like
    Domco got a reaction from jonathanr in Reduce Row Hight   
    Hello Leadma!
     
    You are able to change your row height with CSS in the Styles tab. 
     
    Find the Style that your DataPage is linked to, then click the Table Layout element. From there you can edit the three values i've highlighted to make your rows larger or smaller.
     

     
    Let me know if this works for you!
     
    Thanks!
     
    -Seth
  6. Like
    Domco reacted to MayMusic in Expired Records   
    Instead of the date field add an HTML Block to the Configure Results Page Fields screen and use this code:
    <script> if  (Date.parse('[@field:DateFieldName*]') > Date.parse('[@cbTimeStamp*]')) { document.write("<div style='color:red;'>[@field:DateFieldName]</div>"); } else { document.write("[@field:DateFieldName]"); } </script> Make sure you have enabled parameters and select [@field:DateFieldName] from the picker
  7. Like
    Domco reacted to MayMusic in Rich Text Area   
    1. Your table has a text 64k field called "html_text". Your DP includes the field and form element is text area.
    2. Place the following code in the DP header:
     
    <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.5.2/build/assets/skins/sam/skin.css"> <!-- Utility Dependencies --> <script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/yahoo-dom-event/yahoo-dom-event.js"></script> <script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/element/element-beta-min.js"></script> <!-- Needed for Menus, Buttons and Overlays used in the Toolbar --> <script src="http://yui.yahooapis.com/2.5.2/build/container/container_core-min.js"></script> <script src="http://yui.yahooapis.com/2.5.2/build/menu/menu-min.js"></script> <script src="http://yui.yahooapis.com/2.5.2/build/button/button-min.js"></script> <!-- Source file for Rich Text Editor--> <script src="http://yui.yahooapis.com/2.5.2/build/editor/editor-beta-min.js"></script>
    3. Place the following code in the DP footer:
     
    <script> window.onload = function() { var myEditor = new YAHOO.widget.Editor('InsertRecordhtml_text', {    height: '400px',    width: '600px',    dompath: true,    animate: true         }); myEditor.render();                 document.getElementById("caspioform").onsubmit = function() {                     myEditor.saveHTML(); //var myHTML = myEditor.get('element').value;                 }             } </script>
    4. Your webpage should have <body class="yui-skin-sam">

    5. The 'InsertRecordhtml_text' should be updated with your field name reference.


    ----- On Update page and Details Page -----

    Repeat Steps 1 through 4.
    on Step 5 replace 'InsertRecordhtml_text' with 'EditRecordhtml_text' where the html_text is your field name.


    Now if you wish to dispaly data on your DataPage as "Dispaly only" format make sure to Render the value as "HTML". Data is being saved into the table along with HTML tags.
  8. Like
    Domco reacted to MayMusic in Field Length   
    This is possible by setting fixed width for results page label and data elements in the style. To do so, follow the steps below:

    1-    Edit the Style and enable "Show advanced options (CSS Source)"
    2-    Move on to the Settings screen and expand Results Page
    3-    Select Label, switch to Source tab and find ".cbResultSetLabel". Add the following:

    display: inline-block;
    width: 70px;

    4-    Select Data and find ".cbResultSetData". Add the following:

    display: inline-block;
    width: 100px;

    You can play with the width number to get the best fit for your page.

    NOTE: inline-block style should NOT be applied to Tabular DataPage labels/data fields.

    *** Changes you make in a style will affect all the pages that are using it. It is strongly recommended to make a copy of the style, apply it to your DataPage and make the changes in the copy one.
  9. Like
    Domco reacted to MayMusic in Conditionally Show/hide Html Based On User Access Level   
    Did you try to add a div and give it an ID then hide the div like
     
    document.getElementById('DIV ID').style.display = 'none';
     
    and show other:
    document.getElementById('DIV ID').style.display = 'block';
×
×
  • Create New...