Jump to content

Niranjan

Caspio Ninja
  • Content Count

    26
  • Joined

  • Last visited

  • Days Won

    1

Niranjan last won the day on April 12 2016

Niranjan had the most liked content!

About Niranjan

  • Rank
    Member

Recent Profile Visitors

342 profile views
  1. :-) how did you discover this! sounds like a feasible Plan B if they can't fix it for me....thanks again
  2. OK good point, so I checked this out and the results are: - I don't have any bulk options enabled. However, thinking conceptually grid edit is the same thing so I tried to check for that. - I do use grid edit often, and yes the AJAX "ticked and greyed" does depend on whether you have grid edit on or off. - Having said that, turning off grid edit did not help solve for the original problem. Plus even if it did, that would be some progress but still short of where I need to be because I do need to use grid edit. Any other ideas? This is really helpful and really appreciated. The original issue will hopefully get fixed but these ancillary discoveries are useful in their own right! Best regards
  3. Thanks Jan, in fact I had a call with Expert Services and another with Professional Services at Caspio, we investigated the same setting - AJAX - incidentally it is ticked and greyed out, so I can't change it. But the important thing is that it is ticked so it should have worked. PS folks are looking into why it was ticked and greyed out automatically, and more importantly why it is not working even with a tick here. Best regards N
  4. Actually too many parameters and putting them in field across too many pages will need a lot of renormalisation which I was trying to avoid. Also this reload refresh is not consistent - when I explicitly refresh parent from a pop-up sub window this problem doesn't happen!
  5. Ok - not ideal because I may need to allow 100 as a valid number, but must say creative thinking and good plan B if nothing else works thanks :-) how about preventing negative values?
  6. I am solving for dropping of external parameters when rows are deleted in-line in a tabular report. I have noticed that actions taken in a pop-up sub window do not create this issue, so I am thinking of replacing the native "in line delete" with a custom link which opens a pop-up and brings up another tabular report listing with just that one record (selected on primary key being passed in as parameter) which is where the delete happens, after which perhaps I can fire a "refresh parent" command before exiting that pop-up. The problem is that the user will be forced to re-confirm the delete, which given this scenario will feel like they were asked the same question twice. Is there a way to disable this delete-confirmation window?
  7. When a user resets their password they get an email and a link in it. On using that link, a page comes up with just the password field and it's confirmation field. How can I add header / footer / branding / formatting to this page? Note that this is NOT the password reset page, but the page that fires after using the password reset page.
  8. I need to ensure that values in a column in a tabular report are between 0 and 100 (They are meant to be a percentage impact figure to be entered by the user). I studied the JS example of creating column totals in a tabular report (see http://forums.caspio.com/index.php/topic/3171-js-calculate-column-sum-in-the-result-page/ ) and modified the code as follows, but I cannot get the script to fire at all. I added a number of debugging statements to no avail. I have tried an "onsubmit" type of call as well, apart from the below example. Ideally there should be a way to fire this at the end of adding / editing each row, but I could live with at the end of the whole page as well. At the end of the Header: <div id="cb_checkImpact"> At the beginning of the Footer: </div> <script> function f_check() { alert('Inside function'); var v_impact = 0; var cas_form = document.getElementById("cb_checkImpact"); if (cas_form.getElementsByTagName("table").length > 0) { alert('Found records'); var cas_rows = cas_form.getElementsByTagName("table")[1].getElementsByTagName("tr"); for(var rowIndex=1; rowIndex < cas_rows.length; rowIndex++) { alert('Inside row loop'); var cells = cas_rows[rowIndex].getElementsByTagName("td"); /* 1 – change value inside brackets to choose column to perform validation */ v_impact = cells[2].innerHTML; alert('Found value:'); alert(v_impact); if ( parseFloat(v_impact) < 0 || parseFloat(v_impact) > 100){ alert('Value in %Impact field must be between 0 and 100'); return(false); } alert('No issues found'); } } alert('About to call function'); f_check(); alert('Finished function'); </script>
  9. I have a number of instances of the user moving from one tabular report on a parent entity, by clicking on one of the records, to go another tabular report on the child entity. I am passing parameters through the query string. I have noted that if I happen to delete a record in the parent tabular report, and THEN click on some other record to drill into the child tabular report, then only the parameters of type [@field:XXX] get passed correctly, and other parameters of type [@XYZ] get dropped. This dropping does not happen if I have not deleted any record in the parent tabular report. This functionality is deep inside the app and you can't replicate the issue by simply going directly to that page so I am not including any URL at this stage. I have raised a trouble ticket as well in parallel. This has become urgent, appreciate the help.
  10. There doesn't appear to be any way to bulk insert records in the API - is there a way to achieve that other than to loop through in the code at the other end?
  11. I am trying to implement logic on search fields such that the same column needs to be compared to two different values with an OR in between - like USERNAME = null OR USERNAME = [@authfield:USERNAME]. It is not accepting such entries; the auto editor keeps changing both the OR branches to equate to the same thing. Is there a way to implement such logic?
  12. Hi Jan I have found the issue (yay!), certainly this particular page is fixed now and I will use this to address all other instances and hopefully not come across a new problem. Not surprisingly it was a silly coding error! When I changed from getElementByID to getElementByNames[0], I had forgotten that in the syntax of getting "by name", the word "name" is plural which is different from "ID" which is in singular. So my code was saying getElementByName instead of getElementByNames. !!!! Regards Niranjan
  13. Hi Jan Just tried that too, put alerts after each statement and also tried with both the old style email in the code as well as completely removed, and still got no alerts at all. Then I tried just a "I am here" alert in the script before any other statement and that worked! Which means the script is firing, but actually neither method of extracting the email is working. I tested with just Project ID and that worked fine, of course it does not achieve the purpose of the whole step. So basically I am unable to extract the email field by either method and JS just stops there without error messages. Thanks for persisting with my problem! Best regards Niranjan
  14. Hi Jan, I tried but to no avail. Interestingly, I did the following, and the alert did not fire at all suggesting the on submit call is not firing for some reason at all. I also put both ways of accessing the value, just in case, but like I said no alerts came to the screen. <SCRIPT LANGUAGE="JavaScript"> function concatenate() { var PermittedUserEmail = document.getElementByName("InsertRecordPermittedUserEmail")[0].value; var oldstyleemail = document.getElementByID("InsertRecordPermittedUserEmail").value; var ProjectID = document.getElementById("InsertRecordProjectID").value; var ChkUnique = PermittedUserEmail + ProjectID; document.getElementById("InsertRecordChkUnique").value = ChkUnique; alert(PermittedUserEmail); alert(oldstyleemail); alert(ProjectID); alert(ChkUnique); } document.getElementById("caspioform").onsubmit=concatenate; </SCRIPT>
  15. I am working on a Details page (but the same question can apply to Submission and Single Record Update also) and need to control the width of each "column" when I set a section to have more than one column. Without this control, the columns that are being auto generated are too wide and create a horizontal scrolling situation on the page which is avoidable because there is a lot of vacant space. I could not find a place to control the width of columns in a section.
×
×
  • Create New...