on 03-20-2024 9:04 PM
Hi!
I need to remove incorrectly loaded data on expression of index columns.
I started the VBScript bellow but when the expression is altered to empty, the code is altered to empty too. Is there a way to change this?
Thanks in advance.
Set Mdl = ActiveModel
For Each t In Mdl.Tables
'Indexes
For Each i In t.Indexes
For Each io In i.IndexColumns
Dim auxValue, auxICol
auxValue = Trim(io.Expression)
If auxValue <> "" Then
Output i.Code + "." + io.Code
auxICol = io.Code
io.Expression = ""
' Error
'io.Code = auxICol
'io.Delete
End If
Next
Next
Next
Hi,
at first, always enter your PD version and in your case used definition file (DBMS) is also good to know. Not all definition files allow expressions in their indexes. I tested it with Oracle 19c definition file. Expression and Code of index column are connected. Name, Code and DisplayName are read-only attributes, i.e. you cannot modify them directly. You can modify only expression. What you enter into the expresssion, goes to the Code too. At least for Oracle 19c. What is the final goal you are trying to achieve by this? Perhaps there might be different way...
Regards,
Ondrej Divis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.