hheyhey568
Forum Replies Created
-
Forum: Plugins
In reply to: [Calculated Fields Form] Error handlingThanks a lot.
Can we give warning message on below the fieldname1 to user that “ check the input value” so that user enter the correct value ?
Pls help
Regards,
Forum: Plugins
In reply to: [Calculated Fields Form] Equal size of Column in a TableThanks a lot. Perfectly working.
Is there any way to do the following:
When I click the row of the table , it highlight the whole row so easy to read the table.Thank you,
regards,
- This reply was modified 2 years, 4 months ago by hheyhey568.
Forum: Plugins
In reply to: [Calculated Fields Form] Equal size of Column in a TableI mean to say how to add gridlines in the table? Thanks
Forum: Plugins
In reply to: [Calculated Fields Form] Equal size of Column in a TableThank you.
Is there a way to add lines also for the table? The horizontal and vertical lines in the table ?
Regards,
Forum: Plugins
In reply to: [Calculated Fields Form] Equal size of Column in a TableHello Team,
Following is the code. Need your help in how to make the lable of the table wrap text and should be of equal size column. Also is there a way to add gridlines to the table like horizontal and vertical lines.‘(function(){
var table = ‘<table><thead><tr><th> Pipe NPS </th><th> Pipe ID </th><th> Submerged Height Required(m) </th></tr></thead>’;
table += ‘<tbody>’;var values = [1.049,2.067,3.068,4.026,6.065,7.981,10.02,12,13.25,15.25,17.25,19.25,21.25,23.25,25.25,27.25,29.25,31.25,33.25,35.25,37.25,39.25,41.25,43.25,45.25,47.25];
for(var i in values)var values1 = [1.315,2.375,3.5,4.5,6.625,8.625,10.75,12.75,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48];
for(var i in values1)var values2 = [1,2,3,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48];
for(var i in values1)
{
var PipeID;
PipeID=PREC((values[i])*25.4/1000,5);var PipeOD;
PipeOD=PREC((values1[i])*25.4/1000,5);var PipeIDInch;
PipeIDInch=(values2[i]);
var CSArea;
CSArea=Math.PI/4*PipeID*PipeID;var FlowRate;
if(fieldname65==”m3/hr”) FlowRate=fieldname64;
if(fieldname65==”US GPM”) FlowRate=fieldname64*0.22712470704;var Velocity;
Velocity=(FlowRate/3600)/CSArea;var FroudeN;
FroudeN=Velocity/POW(9.81*PipeID,0.5);var Submerge;
Submerge=PipeOD*(1+2.3*FroudeN);getField(68).setVal(PREC(Submerge,2));
var OutputS;
if(fieldname66==”m”) OutputS=Submerge;
if(fieldname66==”ft”) OutputS=Submerge*3.28084;
if(fieldname66==”inch”) OutputS=Submerge*3.28084*12;OutputS = PREC(OutputS,2);
table += ‘<tr><td>’+PipeIDInch+'</td><td>’+PipeID+'</td><td>’+OutputS+'</td></tr>’;
}table += ‘</tbody></table>’;
jQuery(‘.table-here2′).html(table);return table;
})()’
- This reply was modified 2 years, 4 months ago by hheyhey568.
Forum: Plugins
In reply to: [Calculated Fields Form] Create TableThank you.
Is there a way in which we can use this table result of above example and then plot a chart based on this result table values?
X axis = PipeID
Y Axis = OutputSForum: Plugins
In reply to: [Calculated Fields Form] Create TableHello Team,
Thank you very much. It is working perfectly.Two more features to be added if possible pls.
Feature 1)
Instead of increasing the PipeID by adding 1 to fieldname14 of above example , what if I want to vary the fieldname14 by fixed value like,A) PipeID when Fieldname14=0.5
B) PipeID when Fieldname14=0.8
C) PipeID when Fieldname14=1.5 and so on upto 10 entries in the table.The reason is PipeID is calculated based on fieldname14 and filename14 is the result of two dropdown fields.
Feature 2)
Is there a possibility to vary the value of PipeID based on value of dropdown fields. Means I add a dropdown field as fieldname14 and it has values in dropdown as 0.5 , 0.8 , 1.5 , 2 and so on. So the code need to jump from one value of dropdown to another value of dropdown.
If this is not possible then above feature 1 can be used where I need to define the fixed value of fieldname14.
regards,
Forum: Plugins
In reply to: [Calculated Fields Form] Create TableThanks for quick reply.
In my case I have the following equation.(function(){
var PipeID;
PipeID=fieldname14*25.4/1000;var PipeOD;
PipeOD=fieldname62*25.4/1000;var CSArea;
CSArea=Math.PI/4*PipeID*PipeID;var FlowRate;
if(fieldname65==”m3/hr”) FlowRate=fieldname64;
if(fieldname65==”US GPM”) FlowRate=fieldname64*0.22712470704;var Velocity;
Velocity=(FlowRate/3600)/CSArea;var FroudeN;
FroudeN=Velocity/POW(9.81*PipeID,0.5);var Submerge;
Submerge=PipeOD*(1+2.3*FroudeN);getField(68).setVal(PREC(Submerge,2));
var OutputS;
if(fieldname66==”m”) OutputS=Submerge;
if(fieldname66==”ft”) OutputS=Submerge*3.28084;
if(fieldname66==”inch”) OutputS=Submerge*3.28084*12;return PREC(OutputS,2);
})()
I want to vary PipeID and prepare a table of PipeID vs OutputS.
How to do it please let me know.
thanks
Forum: Plugins
In reply to: [Calculated Fields Form] Change colour of Input field borderHello Team,
It is working but the thickness of green border is too light , hardly noticed.
Is there a way to increase the thickness of border color pls?regards,
Forum: Plugins
In reply to: [Calculated Fields Form] Input and Result field heightHello ,
You are right. I only see this on Safari Browser on ipad and iphone.
On Chrome and Edge browser , the heights are same for all fields.Thanks
Forum: Plugins
In reply to: [Calculated Fields Form] Two fields miss alignedThanks, I have top aligned all the fields in form setting and problem has been solved. it is not working with left aligned properly.
Forum: Plugins
In reply to: [Calculated Fields Form] Two fields miss alignedHello Team,
It does align the two field but in case of longer first field ( fieldname1) label , it does not show the full long label, instead it cuts down the label in mobile device.See the foll0wing page:
https://www.processfunda.com/thermal-relief-valve-expansion-rate/Fields are aligned in mobile device but in PC version , it is misaligned. Also in mobile mode , the label of fieldname1 is not shown fully.
Is there a solution for it?
regards,
- This reply was modified 2 years, 6 months ago by hheyhey568.
- This reply was modified 2 years, 6 months ago by hheyhey568.
Forum: Plugins
In reply to: [Calculated Fields Form] Two fields miss alignedHello Team,
One more issue coming. When fieldname1 is having 2 lines ( long label with two rows) of label then again the second fieldname2 (with no label) is misaligned. Is there a way for that also?regards,
- This reply was modified 2 years, 6 months ago by hheyhey568.
Forum: Plugins
In reply to: [Calculated Fields Form] Two fields miss alignedThanks a lot. It is working perfectly.
regards,
Forum: Plugins
In reply to: [Calculated Fields Form] Two fields miss alignedHello Team,
It looks ok in desktop mode but in mobile devices , it looks misaligned. Can you please check in mobile device?regards,