Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space PRINSAG and version 9.0
Sv translation
languageen

You can write code that reads values from job info sheets.

To find the latest job info sheet:

' InSite stores the multiple versions of the JobInfoSheet in the Control
file Dir
Dim JobInfoSheetHome As String =
System.IO.Path.Combine(triggerEvent.Job.JobHome, _
"Control\VersionedJobInformationSheets")
' Get a string array with the directory names of all the versioned
JobInfoSheets
Dim VerInfoSheets As String() =
System.IO.Directory.GetDirectories(JobInfoSheetHome)
' The directory names are date and time (for example,
2005.06.29.15.29.43), so sort them
Array.Sort(VerInfoSheets)
' The most recent JobInfoSheet should be in the last folder of the sorted
array
Dim LatestInfoSheet As String = _
System.IO.Path.Combine(VerInfoSheets(VerInfoSheets.Length -1),
"JobInfoSheet.xml")


To read values from a job info sheet:

' Create an XML document object
Dim myXmlDocument As System.Xml.XmlDataDocument = New
System.Xml.XmlDataDocument
' Load the object with the XML file
myXmlDocument.Load(xmlFile)
' Search for the first node in the document that matches an Xpath query
Dim node As System.Xml.XmlNode = myXmlDocument.SelectSingleNode("/JobSpec/
JobOnSpoke")
' If the search was successful, copy the XML node contents into a string
Dim myXmlResult As String = Nothing
If (Not node Is Nothing) Then
myXmlResult = node.InnerText.Trim()
End If

Sv translation
languagede

Sie können Code schreiben, der Werte aus Job-Informationsbögen liest.
So suchen Sie den aktuellen Job-Informationsbogen:
' InSite stores the multiple versions of the JobInfoSheet in the Control file Dir
Dim JobInfoSheetHome As String = System.IO.Path.Combine(triggerEvent.Job.JobHome, _
"Control\VersionedJobInformationSheets")
' Get a string array with the directory names of all the versioned JobInfoSheets
Dim VerInfoSheets As String() = System.IO.Directory.GetDirectories(JobInfoSheetHome)
' The directory names are date and time (for example, 2005.06.29.15.29.43), so sort them
Array.Sort(VerInfoSheets)
' The most recent JobInfoSheet should be in the last folder of the sorted array
Dim LatestInfoSheet As String = _
System.IO.Path.Combine(VerInfoSheets(VerInfoSheets.Length -1), "JobInfoSheet.xml")
So lesen Sie Werte aus einem Job-Informationsbogen aus:
' Create an XML document object
Dim myXmlDocument As System.Xml.XmlDataDocument = New System.Xml.XmlDataDocument
' Load the object with the XML file
myXmlDocument.Load(xmlFile)
' Search for the first node in the document that matches an Xpath query
Dim node As System.Xml.XmlNode = myXmlDocument.SelectSingleNode("/JobSpec/JobOnSpoke")
' If the search was successful, copy the XML node contents into a string
Dim myXmlResult As String = Nothing
If (Not node Is Nothing) Then
myXmlResult = node.InnerText.Trim()
End If

Sv translation
languagezh

可以编写从作业信息页读取值的代码。
查找最新的作业信息页:
' InSite stores the multiple versions of the JobInfoSheet in the Control file Dir
Dim JobInfoSheetHome As String = System.IO.Path.Combine(triggerEvent.Job.JobHome, _
"Control\VersionedJobInformationSheets")
' Get a string array with the directory names of all the versioned JobInfoSheets
Dim VerInfoSheets As String() = System.IO.Directory.GetDirectories(JobInfoSheetHome)
' The directory names are date and time (for example, 2005.06.29.15.29.43), so sort them
Array.Sort(VerInfoSheets)
' The most recent JobInfoSheet should be in the last folder of the sorted array
Dim LatestInfoSheet As String = _
System.IO.Path.Combine(VerInfoSheets(VerInfoSheets.Length -1), "JobInfoSheet.xml")
从作业信息页读取值:
' Create an XML document object
Dim myXmlDocument As System.Xml.XmlDataDocument = New System.Xml.XmlDataDocument
' Load the object with the XML file
myXmlDocument.Load(xmlFile)
' Search for the first node in the document that matches an Xpath query
Dim node As System.Xml.XmlNode = myXmlDocument.SelectSingleNode("/JobSpec/JobOnSpoke")
' If the search was successful, copy the XML node contents into a string
Dim myXmlResult As String = Nothing
If (Not node Is Nothing) Then
myXmlResult = node.InnerText.Trim()
End If

Sv translation
languagees

Es posible escribir código que lea valores de las hojas de información del trabajo.
Para obtener la hoja de información más reciente de un trabajo:
' InSite stores the multiple versions of the JobInfoSheet in the Control file Dir
Dim JobInfoSheetHome As String = System.IO.Path.Combine(triggerEvent.Job.JobHome, _
"Control\VersionedJobInformationSheets")
' Get a string array with the directory names of all the versioned JobInfoSheets
Dim VerInfoSheets As String() = System.IO.Directory.GetDirectories(JobInfoSheetHome)
' The directory names are date and time (for example, 2005.06.29.15.29.43), so sort them
Array.Sort(VerInfoSheets)
' The most recent JobInfoSheet should be in the last folder of the sorted array
Dim LatestInfoSheet As String = _
System.IO.Path.Combine(VerInfoSheets(VerInfoSheets.Length -1), "JobInfoSheet.xml")
Para leer los valores de la hoja de información de un trabajo:
' Create an XML document object
Dim myXmlDocument As System.Xml.XmlDataDocument = New System.Xml.XmlDataDocument
' Load the object with the XML file
myXmlDocument.Load(xmlFile)
' Search for the first node in the document that matches an Xpath query
Dim node As System.Xml.XmlNode = myXmlDocument.SelectSingleNode("/JobSpec/JobOnSpoke")
' If the search was successful, copy the XML node contents into a string
Dim myXmlResult As String = Nothing
If (Not node Is Nothing) Then
myXmlResult = node.InnerText.Trim()
End If

Sv translation
languagefr

Vous pouvez écrire un code qui lit les valeurs à partir des fiches d'information sur le travail.
Pour trouver la dernière fiche d'information sur le travail :
' InSite stores the multiple versions of the JobInfoSheet in the Control file Dir
Dim JobInfoSheetHome As String = System.IO.Path.Combine(triggerEvent.Job.JobHome, _
"Control\VersionedJobInformationSheets")
' Get a string array with the directory names of all the versioned JobInfoSheets
Dim VerInfoSheets As String() = System.IO.Directory.GetDirectories(JobInfoSheetHome)
' The directory names are date and time (for example, 2005.06.29.15.29.43), so sort them
Array.Sort(VerInfoSheets)
' The most recent JobInfoSheet should be in the last folder of the sorted array
Dim LatestInfoSheet As String = _
System.IO.Path.Combine(VerInfoSheets(VerInfoSheets.Length -1), "JobInfoSheet.xml")
Pour lire les valeurs d'une fiche d'information sur le travail :
' Create an XML document object
Dim myXmlDocument As System.Xml.XmlDataDocument = New System.Xml.XmlDataDocument
' Load the object with the XML file
myXmlDocument.Load(xmlFile)
' Search for the first node in the document that matches an Xpath query
Dim node As System.Xml.XmlNode = myXmlDocument.SelectSingleNode("/JobSpec/JobOnSpoke")
' If the search was successful, copy the XML node contents into a string
Dim myXmlResult As String = Nothing
If (Not node Is Nothing) Then
myXmlResult = node.InnerText.Trim()
End If

Sv translation
languageja

ジョブ情報シートから値を読み取るコードを記述できます。
最新のジョブ情報シートを検索するには:
' InSite stores the multiple versions of the JobInfoSheet in the Control file Dir
Dim JobInfoSheetHome As String = System.IO.Path.Combine(triggerEvent.Job.JobHome, _
"Control\VersionedJobInformationSheets")
' Get a string array with the directory names of all the versioned JobInfoSheets
Dim VerInfoSheets As String() = System.IO.Directory.GetDirectories(JobInfoSheetHome)
' The directory names are date and time (for example, 2005.06.29.15.29.43), so sort them
Array.Sort(VerInfoSheets)
' The most recent JobInfoSheet should be in the last folder of the sorted array
Dim LatestInfoSheet As String = _
System.IO.Path.Combine(VerInfoSheets(VerInfoSheets.Length -1), "JobInfoSheet.xml")
ジョブ情報シートの値を読み取るには:
' Create an XML document object
Dim myXmlDocument As System.Xml.XmlDataDocument = New System.Xml.XmlDataDocument
' Load the object with the XML file
myXmlDocument.Load(xmlFile)
' Search for the first node in the document that matches an Xpath query
Dim node As System.Xml.XmlNode = myXmlDocument.SelectSingleNode("/JobSpec/JobOnSpoke")
' If the search was successful, copy the XML node contents into a string
Dim myXmlResult As String = Nothing
If (Not node Is Nothing) Then
myXmlResult = node.InnerText.Trim()
End If