Results 1 to 1 of 1

Thread: How to Specify TempFeatures on the AIS Connect String

  1. #1
    Join Date
    Sep 2006
    Posts
    216
    Rep Power
    10

    Default How to Specify TempFeatures on the AIS Connect String

    AIS supports a special configuration option that allows for setting rarely used features of the product which are not present in the product configuration schema.

    This configuration option is called "Temp Feature". A temp feature is typically set as part of the product binding environment definition like the following example:


    PHP Code:
    <?xml version='1.0' encoding='windows-1252'?>
    <navobj version='5.3.2.0'>
        <environment name='NAV'>
            <misc exposeXmlField='true' language='eng'/>
            ...
            <tempFeatures>
                <tempFeature id='usingAccess2000' value='true'/>
                <tempFeature id='somethingElse' value='789'/>
            </tempFeatures>
        </environment>
    </navobj>
    In some cases, one may want to define temp features dynamically without using an environment definition. One such example may be the case of the Attunity thin ODBC client which does not use any local environment definition.

    For such cases, the ODBC (and OLEDB) connection string may contain the temp feature definition in the form:

    PHP Code:
    /tempFeatures/tempFeature=name/val;/tempFeatures/tempFeature1=name/value;... 
    The XML example above can be written in the connection string with:

    PHP Code:
    /misc/exposeXmlField=true;/misc/language=eng;
    tempFeatures/tempFeature=usingAccess2000/true;
    tempFeatures/tempFeature1=somethingElse/789 
    Note that the tempFeature items are numbered so that there would not be multiple connection string items with the same name.

    One important thing to remember when using the tempFeatures mechanism is that the feature names are entirely dynamic so if you specify a temp feature and misspell the name, no error will be given to tell you about this error. In order to tell whether a temp feature got used, one must check the server log file and look for a line of the following form:

    Info: Temporary feature 'zeroBasedDateAsEmptyString' is enabled with a value of 'false'
    If there is no such line with the temporary feature defined then that temp feature either was not use (the line appears on first actual use), its name did not match or the temp feature is not available in the specific version of AIS currently running.
    Last edited by DrorHarari; 05-06-2012 at 08:30 AM. Reason: Added troubleshooting information
    By Dror Harari

    To Find Out more About Attunity Technology:
    Attunity
    or:
    Contact Us

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255