-
Posts
635 -
Joined
-
Last visited
-
Days Won
35
Posts posted by Jan
-
-
Hello ycollier,
Are you sure that all DataPages are assigned with the same authentication?
Could you provide URL to A and B and test credentials?
As far as I know, the "Auto-login across apps" setting is used for different authentication, that use the same table for authentication.
-
Hi ycollier,
Do you mean the bridge or an Authentication?
Does Cookies are cleared after a browser/browser folder is closed? Does a security setting close the session?
And what is the browser?
I have logged out, when log in from another PC / in another browser, but if I work in one browser (Firefox), it seems the session lasts several days.
-
Hello Cameron,
If I understand correctly, you can use a JavaScript code.
If you want to filter only by the "previous month" filter:
1) On the "Search Type" step, select "Allow users to select data using a search form";
2) On the "Select Search Fields" step, add your field with date;
3) On the "Configure Search Fields" step,
- select your field with date, select the "Month and Year" in the "Precision" dropdown;
- add Header&Footer element, select "Footer", click the "Source" button and enter the following code:
<SCRIPT LANGUAGE="JavaScript"> if(document.getElementById("caspioform")) { document.getElementById("caspioform").style.display = 'none'; var nDate = new Date(); var baseMonth = nDate.getMonth(); var nPreviousMonth = baseMonth - 1; var dPreviousMonth = new Date (nDate.setMonth(nPreviousMonth)); var searchMonth = dPreviousMonth.getMonth() + 1; if (searchMonth<10) {searchMonth = "0" + searchMonth; } var searchYear = dPreviousMonth.getFullYear(); var searchString = searchMonth + "/" + searchYear; document.getElementById("Value1_1").value=searchString; setTimeout('document.forms["caspioform"].submit()',1000); } </SCRIPT>
The code enters previous month in the Search field and clicks "Search" button. User does not see the Search page, he or she sees Results page.
If you want to filter by other fields,
1) On the "Search Type" step, select "Allow users to select data using a search form";
2) On the "Select Search Fields" step, add fields;
3) On the "Configure Search Fields" step,
- select your field with date, move it up to the first position, select "Hidden" in the "Form element" dropdown, select the "Month and Year" in the "Precision" dropdown;
- add Header&Footer element, select "Footer", click the "Source" button and enter the following code:
<SCRIPT LANGUAGE="JavaScript"> if(document.getElementById("caspioform")) { var nDate = new Date(); var baseMonth = nDate.getMonth(); var nPreviousMonth = baseMonth - 1; var dPreviousMonth = new Date (nDate.setMonth(nPreviousMonth)); var searchMonth = dPreviousMonth.getMonth() + 1; if (searchMonth<10) {searchMonth = "0" + searchMonth; } var searchYear = dPreviousMonth.getFullYear(); var searchString = searchMonth + "/" + searchYear; document.getElementById("Value1_1").value=searchString; } </SCRIPT>
The code enters previous month as one of search criteria.
Does it work for you?
-
Hi zalipresents,
I have tried your code and it works.
I have added an HTML Block, click the "Source" button and entered your code. On click, a new window opens.
To format the displaying, you can:
1) When you insert the field with a Parameter Picker, select the "Yes/No" format instead of "String". Then the code will be
[@field:Announced^]
2) Edit the Localization, that is assigned with the DataPage (or copy your Localization),
select "Formatting Standards",
select "Yes/No",
check "Enable Custom Yes/No Formatting",
select "custom",
enter "Y" and "*NO*".
I have attached the screenshot.
I hope, it helps.
-
Hi,
What type of a DataPage do you use? If it is a Submission Form, I think, you can use the following code:
<SCRIPT LANGUAGE="JavaScript"> function fillSecondField() { document.getElementById("InsertRecordField2").value = document.getElementById("InsertRecordField1").value; } document.getElementById("InsertRecordField1").onchange=fillSecondField; </SCRIPT>
Please enter names of your fields instead of Field1 and Field2.
I hope, it helps.
-
Hi Robert,
Welcome to Caspio forum!
Could you tell some more details about your cross tabulations?
I am not sure, but if I understand correctly in some cases you can use Calculated fields and SQL queries.
-
Hi,
I have one more idea, but I am not sure that it is a good idea
You can add fields to your tables with names of your parameters. These fields are not used anywhere, they are not displayed on any page. But if the name of a parameter is the same as the name of the field (even if the field is not used on the page), then parameter is not cleared after refreshing.
I hope, it makes sense.
-
Hi,
Thank you for your explanations. If I understand correctly, a user opens a Result page and clicks the Download link.
I am afraid, only names of fields of the table are used in the exported file. I cannot find another option in the article.
You can edit names of fields of your table, if it works for you.
-
Hi Cameron,
If I understand correctly, you can duplicate your DataPages and assign duplicated DataPages with another Localization.
In your Header parts you can add links from DataPages with one language to DataPages with another language.
I hope, it helps.
-
Hi Phil,
It is strange, that there is no "Right" option in Label position. I never think about it, but now it is strange
You can try the following steps:
1) On the "DataPage Data Source" step, enable "Advanced options" and "Parameters".
2) After every Text field, add a Virtual field.
3) For Virtual fields, select the "Display Only" Form Element; on the Advanced tab, check "On load: Receive value or parameter", select the "Default value" and enter the text of your label.
4) For Text Fields, on the Advanced tab, check the "Continue next element on the same line".
5 and last) For Text Fields and Virtual Fields select "No Label" for "Label position".
Now Virtual fields are displayed as "Labels" to the right of Text Fields.
I hope, it helps
-
Hi Niranjan,
As far as I know, the checkbox is greyed, when any Bulk option is selected, Edit or Delete.
Probably, Bulk options are available only with AJAX, but I am not sure.
-
Hello physassist,
Welcome to Caspio Forum!
Do you want to display a label and then a text field after this label?
This option is available for every field on the Advanced tab, in the "Layout Options" section, "Label position" - "Left".
I am sorry, I am not sure that I understand your question clearly.
-
Hello Parma2015,
I am afraid, I do not have a qualification answer, but I have a proposition
The idea to add a Calculated fields to Web Forms has 36 votes now.
You can vote for the idea, and when many users vote, I believe, this feature will be added.
-
You can also check, if AJAX is enabled on your page.
You can find this checkbox on the "Results Page Options" step, in the "Interactive Options" sction.
-
Hi Ashwini Tupe,
Welcome to Caspio Forum!
I am sorry, it seems I have some additional questions. Do you export tables or DataPages? And where the name is taken?
-
Hello ammylar,
Welcome to Caspio forum!
If I understand correctly, you can find instructions in the article or in the video.
I hope, it helps.
-
Hello Niranjan,
As far as I know, when a record is deleted the page is reloaded and all parameters that are not fit with fields are cleared.
Maybe, you can assign your parameters with some hidden fields? This hidden fields will get a parameter and pass it to the next page. Does it work for you?
-
If I understand correctly, now the following code is used:
<script language="JavaScript">
function calculate(){var v_one= parseFloat (document.getElementById("InsertRecordCrate_One_Quantity").value);var v_two= parseFloat (document.getElementById("InsertRecordCrate_Two_Quantity").value);var v_three= parseFloat (document.getElementById("InsertRecordCrate_Three_Quantity").value);var v_total = v_one + v_two + v_three;document.getElementByID(“InsertRecordTTL_Cratesâ€).value= v_total; } document.getElementById("caspioform").onsubmit=calculate;</script>There are two misprints in the following linedocument.getElementByID(“InsertRecordTTL_Cratesâ€).value= v_total; }Incorrect quotes and "ID"You can try to change the line as follows:document.getElementById("InsertRecordTTL_Crates").value= v_total; }
I hope, it helps.
-
Hello Niranjan,
Is the "100" allowed?
If not, you can go to the "Editing" tab and in the "Character length: Max:" field enter "2". Then user can enter only numbers from 0 to 99.
Does it work for you?
-
Hello Niranjan,As far as I know, you can edit your "Password Recovery" DataPage and open the "Reset Password Field" step. This step defines the page that is displayed after a user clicks the link.The "Configure Fields" step defines the page, where a user enters his username or any other unique field.
-
Hello DataCobalt,Then you can delete the ".cbFormLabelCell {text-align: left;}" line and edit the next line:#datapage-form td { display: block; }To
#datapage-form td { display: block; text-align: left !important; }
But now in "Responsive mode" all content is left-aligned, label and data.
Does it work for you?
-
Hello dmanfra,
Welcome to Caspio Forum!
I am afraid, for now formulas are not imported, only values that are results of formulas.
There is the idea in the ideabox. You can add your comment to the idea and ask to add the possibility to import formulas too.
-
Hello ccarls,
As far as I know, the frame can not reload or redirect the parent page for security reasons. Probably, the frame can not reload another frame too.
The parent page can do it, but, I am afraid, it can not know that the content of a frame is changed.
-
Hello senicholas,As far as i know, usually "Hidden" and "Text Area" fields are allowed too. There are some tricks with Dropdowns and Listboxes, Checkboxes and Radiobuttons.Which Form Element do you use?Could you provide the URL of your page?
Payroll Calculation Questions
in User JavaScript and CSS Discussions
Posted
Hello pgjacob,
If I understand correctly, there are two misprints in the code:
var v_totalreghr = (v_reghr * v_ regpay);
document.getElementById("InsertRecordPayroll_journal_Regular_Pay").value = (v_ totalreghr).toFixed(2);
Spaces break the code.
And, if you use a Virtual field, the id of Virtual field is "cbParamVirtual1" (you can see more details about Ids and Names).
I hope, it helps.