[Jo...] Posted December 13 Share Posted December 13 Is there away to get the Piweb template name being used?  I have a PCM text file that will take the default names of all our pdf reports, change them to what we want and store them in different directories. Now with the "multiple report" option it will output with extensions (1).(2), etc.... that is fine but i would like to change the names of them based on what type it is ie for (1) this will be the main report so basically remove the (1). (2) remove the (2) add "_graph" (3) remove (3) add "_bubble".... easy... but problem occurs if we mix and match in different orders.. ie run a main report and a bubble report Logic is that if PCM could read the report name i can change it to what i want with that variable instead of the (1), (2), (3) in my PCM code.... Link to comment Share on other sites More sharing options...
[Mi...] Posted December 16 Share Posted December 16 Please sign in to view this quote. Your proceeding sounds a bit special, at least as far as I got it right 🙂. Maybe this bring you forward: usedTemplate=baseSystem().machine.inspection.protocol.protocolSettings.multiProtDefName multiProtList=baseSystem().machine.inspection.protocol.protDefSett.multiProtDefinitionList protList=getParameterNamed(multiProtList,usedTemplate) for i=1 to protList.size dict=getParameterNamed(protList,i).value pType="protType" // PR, CP or WP protTyp=getParameterNamed(dict,pType.asSymbol).asString display(protTyp) // PiWeb protocol template outFormat="outputFormatPR" piWebProt=getParameterNamed(dict,outFormat.asSymbol).value display(piWebProt) next i  1 1 Link to comment Share on other sites More sharing options...
[An...] Posted December 16 Share Posted December 16 Today I learned you can also access dictionaries and dictionary-like object key/value pairs using getParameterNamed() 🤯 Thank you for the show & tell, Please sign in to view this username. !! Link to comment Share on other sites More sharing options...
[Jo...] Posted 7 hours ago Author Share Posted 7 hours ago thankyou.. i will give it a shot... so far Calypso 2025 has been the worse version in a long time... looks like they broke planner all the way back to 4.10... the movements are almost identical now that was in 4.10.  Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in