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

List page with search and custom expression

$
0
0
Hi all ,

After upgrading my project to the latest phpr 9.8 version I am having problems with fields that use List page with search as control combined with a custom expression to show , what happens is that the generated query has duplicated the column of the custom expression and of course the sql query has an error as shown below

256
Λάθος περιγραφής Source: Microsoft SQL Server Native Client 11.0
Description: The column 'rrdf1' was specified multiple times for 'a'.
URL localhost/ppmv/dbo_ACCOUNT_list.php?
Λάθος αρχείο F:\xampp7\htdocs\ppmv\connections\Connection.php
Λάθος γραμμή 661
SQL Ερώτημα select count(*) from (SELECT [ID], [COMID], [CODE], [DESCR], [FOREIGNACCOUNT], [FOREIGNDESCR], [IDPRIMARY], [GRADE], [IDCOUPLE], [ADSID], [ATYPE], [UATID], [BEHAVIOUR], [VTCID], [VATID], [MINBALANCE], [MAXBALANCE], [ISOLOG], [ISMOVING], [BALANCETRANSFER], [VDCID], [VATDOCMODE], [REMARKS], [ISACTIVE], [INSYNTHETIC], [UAGID], [ALMODE], [FLDSTRING1], [FLDSTRING2], [FLDSTRING3], [FLDSTRING4], [FLDSTRING5], [FLDSTRING6], [FLDDATE1], [FLDDATE2], [FLDDATE3], [FLDFLOAT1], [FLDFLOAT2], [FLDFLOAT3], [FLDFLOAT4], [FLDFLOAT5], [FLDFLOAT6], [FLTID1], [FLTID2], [FLTID3], [LGTAXCATEGORYID], [VATUPDMODE], [WARNING], [ISVATWHOLESALE], [ACCDIFFMODELID], [AFM], CODE+ ' - ' +DESCR as [rrdf1], CODE+ ' - ' +DESCR as [rrdf1] FROM [dbo].[ACCOUNT] WHERE ( ( CODE like '93%' and grade = 4 and comid = 1 ) ) ) a

has anyone seen this , any ideas?

Import Customer File

$
0
0
I have a question regarding importing data to a table with a field setup as a map. I originally did the geocoding on the original table. I imported some records later and noticed that
the lng/lng fields updated automatically . Is this a feature with PHPrunner 9.7 + or did they update auto because the address fields were filled out from raw table . I thought I would have to select those records first then hit save all to update. If not that's great. Reason I needed to confirm as I also have duplicates and can find them after import if the lat/lng fields were not filled in , but guess not . I guess that's good , will have to run a special query to find dup's as event to not add dups on two fields before insert times out. Can someone confirm that phprunner does this or it is just picking up the lat/lng because address is filled out in import file? it's makes a difference on how I design the query to check for duplicate records . Thanks

Date Dropdown as number not month text

$
0
0
I would like to change the date picker month drop down to be numerical (1-12) instead of the month names.

Is this possible?

SQL code help

$
0
0
hi
SQL code help
Update the existing table field according to the value of a different table

---------------------
SELECT
daire.id,
daire.blok,
daire.daire_no,
daire.daire_tipi,
daire.dairem2,
daire.blok_adi,
daire.dolu,
(UPDATE daire SET daire.dolu='1' WHERE sakinler.aktif='1')
FROM daire
, sakinler

OpenXML

$
0
0
Is it possible to use OpenXML with ASPRunner.net? I have an automated Excel import that needs to be coded and I'm looking at options.

Parameters are this:
There are about 8 different ranges that need to be imported at different times. User will press a button to start import which will correspond to the section of the template that needs to be imported. Everything will get imported into the same table. The table itself has 71 records per ID and rows are labeled 0-70 with 20 different fields in each row corresponding to different sections on the spreadsheet.

Example: \\xxx-Ellipsometry Spots.xlsx
If User is on Form A: then from spreadsheet above ranges a1:c4 (no headers are needed). The sequence is as follows User Clicks button,Search for spreadsheet in static location, if exists then:

Table A, xxx{ID}, Update
Row 1: FIELD2 = A1, FIELD3 = B1, FIELD4 = C1
Row 2: FIELD2 = A2, FIELD3 = B2, FIELD4 = C2
Row 3: FIELD2 = A3, FIELD3 = B3, FIELD4 = C3
Row 4: FIELD2 = A4, FIELD3 = B4, FIELD4 = C4

Oracle connection issue

$
0
0
I'm using phprunner 9.7 and Oracle 12?. I can connect to create the application, however when i try to run it I get the following error.
Fatal error: 12154 - ORA-12154: TNS:could not resolve the connect identifier specified in D:\Web\phproot\PORTMAN\connections\Connection.php on line 642.

I know the c0onnection is good because when I create the application, I see all the tables etc.. Please advise, thank you.

Pop-Up Window Size

$
0
0
I've only seen this for PHPRunner but not for ASPRunner.net. How do I increase the size of a pop-up window. It's way too small.

DateTime.Today.AddDays

$
0
0
I need help. I want to prevent a date from being less than 21 days from today. I tried this on before record added event and it doesn't work - it always returns false. Any help would be appreciated. Thanks.

if (values["DesiredDate"] < DateTime.Today.AddDays(21).ToString())
{
message = "We need a minimum of a 21 day notice";
return false;
}
else
{
values["Added"] = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
return true;
}

PHPrunner 9.8 version 29139 - create report - crach dump

$
0
0
When you use this QUERY with subquery it is in Report crash dump. If the same query is used in a normal view, it works fine.

In phprunner 8.1 version, in a report, it works fine.

What can we do to migrate to version 9.8?

Query:

select
Q1.idpemd_proyecto,
Q1.Ano,
Q1.idpemd_sapps_tipo_gasto,
Q1.ImportePresupuestoOriginal,
Q1.ImportePresupuestoActual,
Q1.ImportePresupuestoModificacion,
Q2.Importe,
p.pemd_eje_idpemd_eje,
p.pemd_linea_idpemd_linea,
p.pemd_programa_idpemd_programa,
p.pemd_subdireccion_idpemd_subdireccion,
p.pemd_direccion_idpemd_direccion,
ifnull(p.pemd_area_idpemd_area, ' ') AS pemd_area_idpemd_area,
p.pemd_consejeria_idpemd_consejeria,
p.pemd_dir_general_idpemd_dir_general,
p.pemd_organo_idpemd_organo,
p.CodigoProyecto,
p.CodigoPEMD,
p.TituloProyecto,
p.pemd_estado_idpemd_estado,
p.EsEstrategicoPEMD,
p.EsTransformacionDigital,
p.EsObjetivoEstrategico,
p.TieneRelacionPEIM,
( Q1.ImportePresupuestoActual - Q2.Importe ) AS Pendiente
FROM
pemd_proyecto AS p
join
(SELECT
aaa.idpemd_proyecto,
aaa.Ano,
aaa.idpemd_sapps_tipo_gasto,
SUM(ifnull(ppp.`ImportePresupuestoOriginal`, 0)) AS ImportePresupuestoOriginal,
SUM(ifnull(ppp.`ImportePresupuestoActual`, 0)) AS ImportePresupuestoActual,
SUM(ifnull(ppp.`ImportePresupuestoModificacion`, 0)) AS ImportePresupuestoModificacion
FROM (
SELECT
pp.idpemd_proyecto,
tt.idpemd_sapps_tipo_gasto,
aa.Ano
FROM pemd_sapps_tipo_gasto AS tt
join pemd_sapps_anos AS aa
join pemd_proyecto AS pp
) AS aaa
LEFT JOIN pemd_contrato_presup AS ppp
ON (ppp.Ano = aaa.`Ano`
AND aaa.idpemd_sapps_tipo_gasto = ppp.`pemd_sapps_tipo_gasto_idpemd_sapps_tipo_gasto`
AND aaa.idpemd_proyecto = ppp.`pemd_proyecto_idpemd_proyecto`)
GROUP BY 1, 2, 3
) AS Q1 on (p.idpemd_proyecto = Q1.idpemd_proyecto)
join
( SELECT
a3.idpemd_proyecto,
a3.idpemd_sapps_tipo_gasto,
a3.Ano,
SUM(ifnull(g2.`Importe`, 0)) AS Importe
FROM
( SELECT
p2.idpemd_proyecto,
t2.idpemd_sapps_tipo_gasto,
a2.Ano
FROM pemd_sapps_tipo_gasto AS t2
join pemd_sapps_anos AS a2
join pemd_proyecto AS p2
) AS a3
join pemd_sapps_registro AS r2 ON (r2.Activo = 1)
left join pemd_sapps_gasto AS g2
ON (a3.idpemd_proyecto = g2.`pemd_proyecto_sapps_idpemd_proyecto_sapps`
AND a3.idpemd_sapps_tipo_gasto = g2.`pemd_sapps_tipo_gasto_idpemd_sapps_tipo_gasto`
AND a3.Ano = g2.`Ano`
AND g2.pemd_sapps_registro_idpemd_sapps_registro = r2.`idpemd_sapps_registro`)
GROUP BY 1, 2, 3
) AS Q2 on (Q1.idpemd_proyecto = Q2.idpemd_proyecto AND Q1.Ano = Q2.Ano AND Q1.idpemd_sapps_tipo_gasto = Q2.idpemd_sapps_tipo_gasto )


ORDER BY
p.pemd_subdireccion_idpemd_subdireccion,
p.pemd_direccion_idpemd_direccion,
p.pemd_area_idpemd_area,
p.CodigoPEMD,
Q1.idpemd_sapps_tipo_gasto,
Q1.Ano

total from details table to master table field

$
0
0
I have a master table "TimeCard" and a details table "timeClock"

Both have a field called "hoursWorked" which is a sql calculated field in the details table and multiple entries are allowed within the same day.

In both tables the primary key field is "id", and the detail key is "timeCardId"

I'm trying to use this code to populate the "hoursWorked" field in the master table, and it doesn't seem to be working (no errors either.) Can anyone see what I'm doing incorrectly?

global $strTableName,$dal;
$rs = CustomQuery("select sum(hoursWorked)from timeClock where timeCardId=".$_SESSION[$strTableName."_masterkey1"]);
$data = db_fetch_numarray($rs);

$dal->Table('TimeCard')->Value["hoursWorked"] = $data[0];
$dal->Table('TimeCard')->Param["id"] = $_SESSION[$strTableName."_masterkey1"];
$dal->Table('TimeCard')->Update();

Import error and connection pool size

$
0
0
Hello,

I'm having an issue with importing. It appears that when a record errors on import, a new DB connection is created and the previous one is not closed. I can see this when I query my DB server as the import is in progress. With each error, the total connections goes up by 1. If there are more than 100 records that error, the web app throws a "time out. connection pool max reached" error. I realize it'd be nice if the import file didn't have more than 100 records that error, but sometimes it does (these imports are more than 30K records).

Is there anything that can be done about this issue? Do I have to create a custom connection and set the max connection higher? Or should the import process be releasing these connections when an error occurs?

Thanks,
Tim

add page show in popup => doesn't show

$
0
0
add page show in popup doesn't show

PHPRunner build 29139

error message:

Uncaught TypeError: $modal.modal is not a function
at constructor.createBSWin (RunnerAll.js:1195)
at constructor.createPopup (RunnerAll.js:1113)
at constructor.goInitQueue (RunnerAll.js:1287)
at Object.initPage (RunnerAll.js:1130)
at Object.<anonymous> (RunnerAll.js:1133)
at Object.<anonymous> (RunnerAll.js:2)
at Runner.util.Event.fire (RunnerAll.js:5)
at constructor.fireEvent (RunnerAll.js:10)
at constructor.postLoad (RunnerAll.js:48)
at constructor.loadJS (RunnerAll.js:39)

Please help, Thanks.

Hide .php extension

$
0
0
Hello,

Can anyone guive me some directions for how to hide the ".php" extension? I´m using URL Rewrite (IIS) and I´ve tried a lot of diferents codes without sucess.

Thanks in advance,

Marcelo

set inline calendar selected date on click from a variable

$
0
0
I am attempting to set the default selected date on an inline calendar control when the user clicks on it. I have the value I want to use in a variable. I don't want the user to see this value, ie the default value property, until it is clicked. I am wanting it to behave so that the line remains blank until the user selects the box and the inline calendar appears with the date pre-selected using the value I have in a variable. I am sure I am missing it someplace but I have not found an example or a property to set. I am a stumped newbie. Thanks in advance.

Each user can access cities and towns according to his / her region....

$
0
0
I want the user to have authority to access cities and townships according to the region they are in.
I want you to have access to the towns and villages of these cities only to the cities that are located in their own territories.
I created a structure for it below, but I can only do it on the city charts.

How can I make this effect in other tables by making use of the relationships in cities?

If this is not possible, I will add the "bolgesi" field in the other table.
thank you so much.

respects.

Database diagram screen shoot (as png file)

https://drive.google.com/open?id=0B79rUTj4GAXabGZZQUpTdllvTzA

Bolgesi = Region
IL_ADI = city
ILCE_ADI = town
MAHALLE_ADI = village

Change size of markers in open street maps

$
0
0
How can i change the size of the markers when using open street maps.

I have found the official api for it, but how can it be controlled for phprunner.?

Upgrading to use DotNet Framework 4.5/4.6

$
0
0
Is there any methods to upgrade the version of .Net framework the project builds as within the ASPRunner application? Other than opening the output in VS and re-compiling there.

Thanks.

[SOLVED] Add image to Add New Page

$
0
0
Hi guys.
I want an image on the add New page so people can see from the image what they need to do. Any ideas how to embed this into a certain area?
Cheers

Found it :)

[SOLVED] View field on condition

$
0
0
I can use this code in events / add page / Javascript onload event to hide a field, and only show it if the answer of the other field is "yes".
pageObj.hideField("describe");
var ctrlOne = Runner.getControl(pageid, 'injured'); 
ctrlOne.on('change', function(e) {

  if (this.getValue() == "yes"){
       pageObj.showField("describe");
	} else {
		 pageObj.hideField("describe");
   }
});


I've now changed the first field to a checkbox instead of a "yes" or "no" dropdown. I can't seem to get the conditional code to work anymore. I thought it should look something like this:
pageObj.hideField("describe");
var ctrlOne = Runner.getControl(pageid, 'injured'); 
ctrlOne.on('change', function(e) {

  if (this.getValue() == 1){
       pageObj.showField("describe");
	} else {
		 pageObj.hideField("describe");
   }
});

but that doesn't work. I've tried it a bunch of other ways and still haven't gotten it correct. Any ideas on what I'm doing wrong?

Thanks!

Display Issue on List Pages

$
0
0
Good morning All,

We have approximately 350 shops which we want to display on a summary page on Google Maps across a broad geographical area.

We have no issues generating the shops on the Google maps however the display on the actual map is limited to the number of shops on each "list page".

So we have 20 records (by default) on each page.

We don’t want to change the pagination to have all 350 on the one "list" page however we do require the entire 350 records to appear at once on the map, while retaining the current pagination display.

Any assistance would be appreciated.

Thank you.
Viewing all 2520 articles
Browse latest View live