use ##SPID in side view defination in sybase ASE15 - sap-ase

i am not able to use ##spid inside view defination.sybase doesnot allow.
how can i implement it inside view?. my requirement is: i have one table already existing in production server named MYTABLE. which have only one record at .so any select query form this table will give same output. now i want to create a table based on ip address corresponding value will be defines. and want to drop table MYTABLE and create a VIEW with the same name
where it will use ip address to show corresponding output to based on ip address.
can anybody have idea?

Try it this way:
create view your_view as
select spid from master..sysprocesses
where hostname = 'HOSTNAME'

Related

how to enable custom list internal id in Netsuite

NetSuite custom list internal id for values is disabled by default. is there a way i can add my own id for the custom list values.
i am trying to create a custom record to save expense clain details for employee. i have many list to hold datas for diffrent category. it will be better insted of 1,2,3 i can give my own Internal id.
Brett's answer gives you a method by which you can change the text ID of the list, but you cannot change the internal ID of the list's values. This id is set automatically by NetSuite (or probably the underlying database) and is needed to ensure consistency of data within the application. Instead, consider converting the list into a custom record, which will allow you to create another field to use as an external ID, which you can add/update by CSV import (you need to use the Internal ID as key when doing this).
Once converted to a record, you could also add a new field to use as a reference, depending on how you're using it.
To convert to a record, simply check the Convert to Custom Record box on the list page shown in your screenshot and click Save.
Click the “Change Id” button
Enter the new value.
Click Save
Note: Netsuite will prefix the value you enter with ‘customlist’

Netsuite UI: Adding a Custom Address Dropdown to Sales Order

has anyone figured out how to have a custom drop down on a sales order of the customer addresses.
When creating the custom field on a Sales Order, you will notice that when you select Address or Address Book, the FILTER USING fields do not show. Only 'country' shows when you select Address and nothing shows when you select Address Book
So to Recap:
I need to create a custom address drop-down field on a sales order that contains all of the customer addresses
It might seem like more work than its worth, but if you build it properly you should be able to re-use this code anywhere else you want the ability to add custom address selection drop downs.
In your before load script user event script you will want to add a new custom field of type 'select'.
To populate the values do a search against the customer record and grab the address fields you need (if this is a new record and the customer isnt set in the before load, you can pass this off to the client script by making a selection called 'REFRESH' or something similar that triggers a post sourcing function to make the update to the field select options).
Make sure to get at least the 'addressinternalid' and the 'addresslabel' fields from the customer (you will likely want them all just in case). Add the results to an array so that you can loop through it to build your custom field select options.
From there it would just be a matter of getting the user's selection and tying it to the correct address based on internal id.
I know I did not provide any specific code examples, but that would be your part of the game to play. Hope this helps, and good luck!

How to show data in stimulesoft so that every group locate in one page?

I have a table that I want to show every data group in separate page.How can I do this?for example this is my query:
select .... group by code.
and I want to show every code's information in one page.how can I do this?
You should use the Group Header and set the New Page Before property of this header to True.

IBM Maximo Lookup selecting another value not default value

I am trying to create a lookup. I want to select from PERSON table - if I select a value through lookup, person id is selected, but I need display name value. I have tried by creating a table domain, lookup table, lookup.XML and all methods.
If you need the DisplayName copied to the local object in addition to the PersonID, then instead of a Table Domain, you need a Crossover Domain with DisplayName as a Source Field and with your local attribute that should hold the copy of Person.DisplayName as the Target Field.
If you need the DisplayName copied to the local object instead of the PersonID, then you'll need to make a lookup map on the target attribute so Maximo knows what attribute returned by the domain maps to which attribute on the local object. You set Lookup Maps with the little, white, "page" icon/button on the right side of the Attributes tab in Database Configuration for the desired target attribute.
If you just need to see the DisplayName once a PersonID is selected, then use a Mulitpart Textbox and set "Attribute for Part 2" to something like PERSON.DISPLAYNAME, where PERSON is the name of the relationship from the local object to the PERSON object.
As Preacher already mentioned, you can copy the DISPLAYNAME attribute using a lookup map - on the Database Configuration application, go to the attribute to which you want to copy - probably the one, where you used the table domain on - and click the icon.
If you have created a custom field and have no Java class on it, you will still need the table domain, so leave that on the attribute. Now, on the lookup map, you can define which fields you want to copy from the source MBO to the target MBO. You can define multiple target fields from here (so no need to define a crossover domain, even if you need to copy multiple fields) - just enter a new line for any field you want to copy from the source (Person) object.
On many versions of Maximo you will have to restart before this starts working! I believe you don't have to restart on 7.6, but on any previous version you will probably have to.
Now, about the definition in lookups.XML: if you want to show different attributes than the ones, already shown on the default "person" lookup, you need to define your own, as you did. If the default one looks fine, for you, you can just use "person" as the lookup, since the logic of copying fields is defined in the lookup map, not in lookups.XML.

FileMaker Pro pop up values from related table

I have a portal in my contacts table layout that shows related mention in a second "mentions" table. This related table has a relationship to a third "sources" table that I want the user to select from when they view the data in the "mentions" portal of my "contacts" layout. This works for the most part. The problem comes when the user changes the "source" in the portal then attempts to change the "source" in the next portal row t will change the "source" to the last select source regardless to make a selection
any ideas ?
here are some screen shots of how I have it setup
portal and specified field
and field control setup
and the relationship
You are modifying the value of the source field in the sources table, which is not what you want. You only want to use that data to populate your value list and store the serial number of that source (or the source text) in your mentions table.
1) Create a value list from sources using all values from the sources field.
2) Create a new field in the Mentions table called 'source.'
3) Add that field to the portal and remove the current sources field.
4) Apply the value list to your new field.
It sounds like your portal isn't actually the mentions table, but the sources table. Either that or the field that you're using to change the "source" is not in the mentions table, or is not the correct Table Occurrence.
The portal should be based on the Mentions table, and should contain a field in that table that refers to the sources table, not a field from the sources table.
Either way, to diagnose it further, I'd probably need more detail.

Resources