Quantcast
Channel: ASPRunner forums
Viewing all 2586 articles
Browse latest View live

PDF viewer cannot loading the PDF file in win Edge browser

$
0
0
When I using the Microsoft10 Edge browser to open a PDF file use the PDF viewer, but cannot loading and show up an error occurred while loading the PDF " PDF.js v2.2.228 (build: d7afb74a)
Message: PDFDocument: Stream must have data", but I use the Chrome browser is OK. How can I fixing it.

[SOLVED] How can save the project without fully close the program

Checking result set from DB::Query

$
0
0
I am a newbie to PHPRunner. I use DB::Query to read a table with a where clause. How can quickly check if the result set is empty before doing a while loop to fetch data? Thanks.

[ASK} automatic sum from other table

$
0
0
please help, i'm newbie
need automatic sum from other table
Posted Image
i'm use manual checkbox update selected
global $conn;
$sql="SELECT Sum(rincian.jumlah) Total FROM rincian WHERE rincian.idspt = ".$oldvalues['idspt'] . " AND rincian.idpelaksana = ".$oldvalues['id'];
$resql=db_query($sql,$conn);
$data=db_fetch_array($resql);
$values['jumlahrincian']= $data['Total'];


thanks

Custom input pages

$
0
0
I create output PDFs using a PDF template (empty PDF form) and setasign FPDF/ FPDI.
Using setasign I can position field values accurately along with images (signatures).
This works very well.

I would like to be able to make the add/ edit pages resemble the PDF form/template, but I don't know
if its possible or where to start making the input pages (add/ edit) look like the output PDF.

Has anyone created custom Add/ Edit pages that resemble real PDF forms ... is it possible ?

Regards
Steve

Tri-part events

$
0
0
I am trying to work with some buttons on a list page that is inserted with each record listed. The button is supposed to verify the user's intentions by asking them if they are sure they want to perform the function desired. That works. But, the desired function is not being performed.

Here is my code.

Client Before:
var r = confirm("Are you sure you want to unsubscribe this sacrament?");
if (r == true) {
params["unsubscribe"] = "Yes";
} else {
params["unsubscribe"] = "No";
}

Server:
global $conn;

$result["unsubscribe"] = $params["unsubscribe"];

IF($params["unsubscribe"] == "Yes")
{
$userName = Security::getUserName();
$today = date('Y-m-d');
$record = $button->getCurrentRecord();
$sql = "UPDATE recruit SET unsubscribed = 'Y', unsubscribedDate = now(), unsubscribedBy = '" . $user . "', WHERE recruitID = '" . $record["recruitID"] . "'";
$db_exec($sql, $conn);
}

The Client Before is working. The Server is not. I've checked the $sql by plugging in the correct values and it does work.

I've got something wrong somewhere, but can't seem to figure it out.

Deleted table elements still causing problems

$
0
0
I have a table in my project where I deleted 3 elements: rescheduledBy, rescheduledDate, rescheduledFrom

However, I'm still seeing them appear in the sacraments_settings.php file.

Specifically, they appear in the line that defines: $tdatasacraments[".strClickActionJSON"] = ...

Can someone tell me where in the project I can find the elements that I need to remove?

multi language SESSION default don't work

$
0
0
hi,
i create a multi language application with default language as English
when i log in without choosing a language, all appears in English as default but my drop-down base on the language doesn't work, i get a blank drop down that says please select. i have to select other language like Spanish or Italian and then go back to select English in order of my drop down to work

im using
  languages=':SESSION.language' 
to locate the language in use.

when manually select any other language works Ok

any idea how can i solve this? thank you

Bug in 10.3? Yellow screen error: "An object or column name is missing or empty"

$
0
0
Is this a bug? An application built with 10.2 that was working perfectly now generates a runtime yellow screen error:


An object or column name is missing or empty. For SELECT INTO statements, verify each column has a name. For other statements, look for empty alias names. Aliases defined as "" or [] are not allowed. Change the alias to a valid name.

Looking at the SQL profiler, I can see that the login SQL query is malformed:


select [TableName], [AccessMask], [] from [dbo].[_user_ugrights] where [GroupID] in (-3)


For some reason, the GroupID column name is not getting inserted into the select clause. I'm using dynamic permissions and AD authentication.

SESSION at login from settings table

$
0
0
Hi again,
im trying to create a SESSION("") at login from a specific table call SETTINGS base on ID so i can use it thru out the pages.

table name SETTINGS

ID Color quantity total
1 Blue
2 2
3 100
so in any table if i use SESSION("color") i get it from record ID=1 and SESSION("quantity") will be get from ID=2

i try the following in after login but didn't work
 dim sql
sql = "Select Color FROM Settings WHERE ID='1'"
CustomQuery(sql)
SESSION("Color")= sql


any help on this ? thank you

How do I use a user's login value in a query

$
0
0
We have, what I believe, is a simple setup. On Microsoft Azure we have 2 tables. One is a list of Customer info and the other is what they bought (so a one to many relationship). I can connect to it from the ASPRunner.net project window so that is good. What I need to know how to do is to connect the user login value to the tables.

We have about 6 locations. When a Manager from Alpha location logs in using the login "Alpha", I want the word "Alpha" to be used as a filter on the Customer table always (any other filters would be added to this, the filter by location HAS TO stay on, we do not want managers seeing customers from other locations). This way people from the Alpha office can ONLY see customers from the Alpha office. Same if a person from Beta location logs in, the program takes the word "Beta" and uses it as a filtering parameter. The goal is to have all our customers in one table with a field called "Sales Location" (which would have the word Alpha, Beta, Gamma, Delta, Epsilon, Zeta).

Otherwise I guess I would have to have 6 customer tables and 6 connected purchased tables which I really do not want to do because expansion would be tough.

Does anyone know how I pass the userid variable?

Thanks!

[SOLVED] multiple wysiwyg editors on edit page cause 403 Forbidden error?

$
0
0
Is it possible to have multiple rich editors on one page?

I'm still troubleshooting this, but here is what I know so far.

I have a table with five fields. Three of those fields need to have html in them. So, I put in the ckeditor (also tried innova editor with same result).

All three editors show up on edit screen fine. You can put html in first and plain text in the other two and it will save fine. If you make any change to the 2nd or 3rd editors that adds html (make something bold) and try to save you get this error (below) field types are exact same, permissions on server are same.

Forbidden
You don't have permission to access this resource.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.4.41 (cPanel) OpenSSL/1.0.2t mod_bwlimited/1.4 Server at avade-wpvassessment.com Port 80

URL for new pages

$
0
0
If I add another page to my project like a second Add page, where can I determine the direct url to that page?

How to get the URL of the file uploaded in phprunner application

$
0
0
How to get the URL of the file uploaded in phprunner application? I need to use the url to construct a custom link on one of the view page.

Thanks

[SOLVED] Trucate option........missing?

$
0
0
Hi all :)
I've seen, in last versione, 10.3, in Miscellaneous page, the check option "Trucate..." is missing :( What's happened?
Need to view all contents in a specified field wihout any "read more....." message :)
Many, many thanks in advance :)

LDAP email

$
0
0
Hello. I am using Asprunner Enterprise 9.6 (Build 28257). I have a problem. can't get user email info via LDAP. Your After successful login code doesn't work.
I wanted to display the email address on the list page for testing purposes and I wrote the following code.

email= Session("UserEmail")
Response.Write "Test "&email&""


but I can't get a result.
Please help me.
Thanks

cllass css

$
0
0
hello please some very kind someone the name of the clss css for Thumbnails hover background color
Thank you

Text field showing FULLTEXT in LIST page

$
0
0
Hello,

Is there somewhere in the project to set special variables like this: $fulltext?

In LIST page when one TEXT field is too large, it adds a "MORE..." link, that I don´t want.
I would like to show all the text.

I saw that exist one variable that do this job very well.
In the output file "ViewControlsContainer.php" in the CLASSES folder I found a variable called "$fulltext" that does exactly what I need, showing all the text content without putting the "more ..." link.
However, the default is settled to false. If I change to true manually directly in the output php file, it works very well.
But every time I build, this variable is overwritten to false.
Can anyone tell me where I can adjust this variable to true without worrying about building, over and over...?
I could not find this feature in help files.

thanks,

Marcos

Would like to send an email when a date field is populated

$
0
0
I have a single request table with a date field of "Date_Completed" and I have an edit page that staff will use to fill in the completed date of the record once it has been acted on. What I would like to do is send the customer an email that lets them know we have taken care of their request when the completed date field is populated. I think I need to add script to the Events section but unsure of the code and on which event would be the best trigger. I can use the "Send email with new data" add action but I need some help with the If statement on the date field.

Thank you in advance for any suggestions

Sticky Navbar

Viewing all 2586 articles
Browse latest View live